Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: SadisticSid on January 06, 2004, 01:59:34 pm

Title: Ballistic primary question
Post by: SadisticSid on January 06, 2004, 01:59:34 pm
Problem: I've got a fighter with a $PBank Capacity (300, 300). I have a ballistic gattling cannon with a $Cargo Size: 0.5. Except in game I only have 2 shots per bank. Am I using the wrong flag to specify cargo size? How do I set things so this fighter has 600 shots in both banks?

It's not explained in the readme.
Title: Ballistic primary question
Post by: Lightspeed on January 06, 2004, 02:50:15 pm
I dont know if it works with huge numbers like 300
Title: Ballistic primary question
Post by: phreak on January 06, 2004, 03:20:18 pm
Goober screwed up the convention.  it should be +PBank Capacity.  i think i may have changed it.  you may have it in the wrong place.  this is why i want that wiki entries for everything done

edit: it is "$Pbank Capacity:". it goes after "$Default PBanks:" and before "$Allowed SBanks:"

i also looked at the code at it really should be "$Pbank Capacity:" the b is not capitalized. but i dont know if the parser is case sensitive.

edit 2: parser is not case sensitive.
Title: Ballistic primary question
Post by: Flipside on January 06, 2004, 03:22:54 pm
Good point Phreak, thanks for the Heads up, I've been neglecting my work on the Wiki.
I'll fix that and get something set up this week.

Sorry guys :)
Title: Ballistic primary question
Post by: Goober5000 on January 06, 2004, 05:01:48 pm
Ignore Phreak; SadisticSid did everything right.  In the parser code, the capacity is forced to 1, regardless of what's specified.  Therefore, 1 divided by 0.5 = 2.

Now, the convention I had in mind would be that the capacities specified on fighters would all be 1, because you are loading one magazine onto a fighter.  The magazine size is directly determined by the "cargo size" specified in the weapon entry.  So in this case there would be two bullets per magazine.

But just because this is the convention doesn't mean everyone has to do it this way.  So it's a bug.  Put it on Mantis. :)
Title: Ballistic primary question
Post by: Solatar on January 06, 2004, 05:04:51 pm
no

I have some fighters using different numbers. I have sizes specified in the 12_05 version so that every '1" gives them 1000 ammo. I have heavy bombers carrying more than light fighters and such for the Avenger. Works fine.
Title: Ballistic primary question
Post by: Lightspeed on January 06, 2004, 05:23:32 pm
Quote
Originally posted by Goober5000
Ignore Phreak; SadisticSid did everything right.  In the parser code, the capacity is forced to 1, regardless of what's specified.  Therefore, 1 divided by 0.5 = 2.

Now, the convention I had in mind would be that the capacities specified on fighters would all be 1, because you are loading one magazine onto a fighter.  The magazine size is directly determined by the "cargo size" specified in the weapon entry.  So in this case there would be two bullets per magazine.

But just because this is the convention doesn't mean everyone has to do it this way.  So it's a bug.  Put it on Mantis. :)


and I can set it to 2 and oh-the-miracle have doubly my ammonition.

dont listen to Goober :p
Title: Ballistic primary question
Post by: Goober5000 on January 06, 2004, 06:05:16 pm
:wtf: What build are you using?
Title: Ballistic primary question
Post by: Solatar on January 06, 2004, 06:09:45 pm
12_05_2003...read my post. Think Lightspeed is using the same one.
Title: Ballistic primary question
Post by: SadisticSid on January 07, 2004, 03:16:26 am
For reference: $PBank Capacity: (n, n) in ships.tbl and $Cargo Size: n in weapons.tbl are the ones that do the trick. Thanks guys.
Title: Ballistic primary question
Post by: kasperl on January 07, 2004, 09:49:04 am
see the link in my title?

using that and doing some edit's would be awsome.
Title: Ballistic primary question
Post by: Lightspeed on January 07, 2004, 10:12:18 am
Quote
Originally posted by Goober5000
:wtf: What build are you using?


FS2_shivan_xtra_evil.exe -- why? :lol:

Ever since i first tried using ballistic weapons those two parameters work like a charm. I have used varying primary bank capacities from 1-20 and they all worked fine.
Title: Ballistic primary question
Post by: Lightspeed on January 07, 2004, 11:37:08 am
Quote
Originally posted by kasperl
see the link in my title?

using that and doing some edit's would be awsome.


I added weapons.tbl -- it still is missing the new flags and stuff, but most of it's there :)
Title: Ballistic primary question
Post by: kasperl on January 07, 2004, 11:44:57 am
nice.


when i have time, i'll do some wiki stuff myself, but first i need time.
Title: Ballistic primary question
Post by: Lightspeed on January 07, 2004, 11:47:56 am
Quote
Originally posted by kasperl
nice.


when i have time, i'll do some wiki stuff myself, but first i need time.


You better like it, I spent nearly 2 hours on it *curses wiki* :)