Secondary weapon consumes primary ammo?
Moderator: Moderators
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Secondary weapon consumes primary ammo?
How could I make a secondary weapon that consumes the ammo of a primary weapon? I'm trying to make a charged mode for a blaster rifle.
-
The_Emperor
- Supreme Galactic Ruler
- Posts: 2118
- Joined: Sat Dec 10, 2005 6:30 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Waaaaay over there.
RE: Secondary weapon consumes primary ammo?
Yeah I don't think you can. Would be sweet yeah, like in JKA, no? I don't think you can link two weapons in any way, so I'm afraid you won't be able to share the ammo either...
You could try to put WeaponAmmo2 = Weaponammo1 in the soldiers odf, thats all I can think of right now... But I'm almost 100% sure that won't work and will just crash the map
Perhaps you can make it drain the jetfuel/shield bar? (edit it so it doesn't recover) That's the only other thing I can think of... Though I doubt you can link anything other than shields and jetpacks to that bar... Which only leaves us with the stamina bar, which would be a bit too drastic perhaps
You could try to put WeaponAmmo2 = Weaponammo1 in the soldiers odf, thats all I can think of right now... But I'm almost 100% sure that won't work and will just crash the map
Perhaps you can make it drain the jetfuel/shield bar? (edit it so it doesn't recover) That's the only other thing I can think of... Though I doubt you can link anything other than shields and jetpacks to that bar... Which only leaves us with the stamina bar, which would be a bit too drastic perhaps
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Secondary weapon consumes primary ammo?
Check out the ODF parameters
WeaponSection
Weapon
WeaponName
WeaponAmmo
WeaponAmmo1
WeaponAmmo2
WeaponAmmo3
WeaponAmmo4
WeaponShareAmmo
WeaponShareAmmo1
WeaponShareAmmo2
WeaponShareAmmo3
WeaponShareAmmo4
WeaponShareHeat
WeaponShareHeat1
WeaponShareHeat2
WeaponShareHeat3
WeaponShareHeat4
WeaponChannel
PrimaryWeapon
WeaponName1
SecondaryWeapon
WeaponName2
WeaponName3
WeaponName4
WeaponChannel1
WeaponChannel2
WeaponChannel3
WeaponChannel4
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Secondary weapon consumes primary ammo?
Yes, Master Zerted...
You're way better at modding than I'll ever be, so I'll listen to you.
WeaponShareHeat? Could be good for a dual pistol...
WeaponChannel2, 3, 4? How's that work, I wonder? PrimaryWeapon? SecondaryWeapon? Odd.
WeaponShareAmmo? That sounds about right... How would I implement it? <-- Main question right here
WeaponShareHeat? Could be good for a dual pistol...
WeaponChannel2, 3, 4? How's that work, I wonder? PrimaryWeapon? SecondaryWeapon? Odd.
WeaponShareAmmo? That sounds about right... How would I implement it? <-- Main question right here
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Secondary weapon consumes primary ammo?
I've only used WeaponName# and WeaponAmmo#. The numbers represent which weapon. 1 and 2 are primary weapons (like blaster, pistol), while 3 and 4 are the secondary weapons (like detpack, healthpack). What you want looks possible, play around with the values untill it works.
I've just read a lot. Some odf parameters are in the modtools doc, there is a site (can never remember its name) with a very unreadable listing, and psych0fred has an organized list.
Edit: err, maybe its 1-4 are primary and 5-8 are secondary. Its been a while, I forgot which way it is.
I've just read a lot. Some odf parameters are in the modtools doc, there is a site (can never remember its name) with a very unreadable listing, and psych0fred has an organized list.
Edit: err, maybe its 1-4 are primary and 5-8 are secondary. Its been a while, I forgot which way it is.
Last edited by [RDH]Zerted on Mon Jun 11, 2007 5:47 pm, edited 1 time in total.
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Delta_57_Dash
- Jedi

- Posts: 1187
- Joined: Fri Jun 10, 2005 2:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
