Page 1 of 1

Secondary weapon consumes primary ammo?

Posted: Sun Jun 10, 2007 7:06 am
by ARC_Commander
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.

RE: Secondary weapon consumes primary ammo?

Posted: Sun Jun 10, 2007 2:30 pm
by The_Emperor
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 :P

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 :P

Posted: Sun Jun 10, 2007 3:19 pm
by ARC_Commander
Ah well. This brings to mind the detpack and plunger - perhaps that example may help?

RE: Secondary weapon consumes primary ammo?

Posted: Sun Jun 10, 2007 3:21 pm
by [RDH]Zerted
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

RE: Secondary weapon consumes primary ammo?

Posted: Sun Jun 10, 2007 3:27 pm
by ARC_Commander
Yes, Master Zerted... :P 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

RE: Secondary weapon consumes primary ammo?

Posted: Sun Jun 10, 2007 4:05 pm
by [RDH]Zerted
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.

Posted: Sun Jun 10, 2007 4:41 pm
by ARC_Commander
Thanks, I'll try that.

Posted: Mon Jun 11, 2007 4:42 pm
by Delta_57_Dash
you can go beyond 1, 2, 3, 4, etc.

The max # of weapons for any entity is 8.