Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: T-Man on August 30, 2009, 03:19:03 pm

Title: FEATURE IDEA: Specifying exact weapon ammo
Post by: T-Man on August 30, 2009, 03:19:03 pm
Would it be possible to have the ability to assign specific capacities for particular weapons in a secondary bay, regardless of the cargo space? (so for example you could make it so a bay can only hold up to two Tsunamis even though its bank capacity would allow it to carry more).

The idea cropped up during my planning for the Vasudan campaign i'm working on; i'm trying to match it to STL continuity, in which the Seth could carry Barracuda rockets. In STL (if i remember right) it can carry 8 of them, making it's capacity almost as much as the Osiris and kind of removing the point of the bomber being there. I would like the Seth to retain its access to these rockets, but if i decrease the cargo space it will affect all the Seth's other missiles. With the feature above however, a lower max number of Barracuda's could be assinged without damaging the Seth's other missile options. Occoured to me such a feature might be helpfull for other people too.

But yeah, just an idea i thought i'd post up.
Title: Re: FEATURE IDEA: Specifying exact weapon ammo
Post by: Dragon on August 30, 2009, 04:11:47 pm
You can make "Barracuda#Seth" weapon that's identical to Barracuda, but have larger cargo size, so only two will fit on Seth.
Title: Re: FEATURE IDEA: Specifying exact weapon ammo
Post by: Qent on August 30, 2009, 06:08:02 pm
Maybe I'm not getting the point, but why don't you just increase the cargo size of the Barracuda?
Title: Re: FEATURE IDEA: Specifying exact weapon ammo
Post by: FUBAR-BDHR on August 30, 2009, 06:12:07 pm
3.6.11 has some new loadout code.

Also if it's single you can already specify the number the ai carry, lock their loadouts, and then just make sure there are only 2 available for the player
Title: Re: FEATURE IDEA: Specifying exact weapon ammo
Post by: T-Man on August 31, 2009, 05:33:07 am
Maybe I'm not getting the point, but why don't you just increase the cargo size of the Barracuda?

That would normally make sense, but doing that would mean the Osiris would also carry less, and the Barracuda (which is meant to be a light Vasudan bomb) has been balanced to compare to the Tsunami, so it would become a useless weapon for bomber missions.

I thought up the above as another solution, and it occoured to me a code like that might be useful for others who wish in special cases to specify specific payloads for weapons, without having to worry about balancing across ships and the like, hence the posting.
Title: Re: FEATURE IDEA: Specifying exact weapon ammo
Post by: colecampbell666 on August 31, 2009, 10:40:46 am
Make the Barracuda#Seth, and keep the normal missile. Leave only enough normal missiles for the bombers and lock their loadout, and then have the player use the remaining Seth missiles.