Secondary weapon consumes primary ammo?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Secondary weapon consumes primary ammo?

Post 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.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

RE: Secondary weapon consumes primary ammo?

Post 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
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

Ah well. This brings to mind the detpack and plunger - perhaps that example may help?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Secondary weapon consumes primary ammo?

Post 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
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Secondary weapon consumes primary ammo?

Post 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
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Secondary weapon consumes primary ammo?

Post 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.
Last edited by [RDH]Zerted on Mon Jun 11, 2007 5:47 pm, edited 1 time in total.
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

Thanks, I'll try that.
Delta_57_Dash
Jedi
Jedi
Posts: 1187
Joined: Fri Jun 10, 2005 2:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Delta_57_Dash »

you can go beyond 1, 2, 3, 4, etc.

The max # of weapons for any entity is 8.
Post Reply