Linked Weapons and Ammo [Solved]

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
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Linked Weapons and Ammo [Solved]

Post by kinetosimpetus »

OK, so I want to link the ammo between 2 similar weapons, representing different "modes"

One is an auto repeater, the other is a semiauto heavy.

The WeaponShareAmmo = "1" goes on the heavy weap, which is in slot 2

The thing is, the weapons have different rounds per clip, so the heavy one uses the clip from the repeater.



Here's the question: Is there an AmmoCost = "X" or something so the heavy shot costs more than the light shot?
Last edited by kinetosimpetus on Sun Jan 10, 2010 12:06 am, edited 1 time in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Linked Weapons and Ammo

Post by AQT »

I don't think there's such a thing but here's an alternate idea. Let's say that you want the heavy weapon to cost two rounds per shot from the overall ammo count (the regular weapon costing only one). In the heavy weapon's ODF, change the salvo count to two and keep the salvo delay at 0 seconds. Now make a copy of the _ord ODF you are using for the two weapons, renamed, and let your heavy weapon reference this ODF as its ordnance name. Then go into the copy and divide the damage values by 2 and maybe the laser/glow length/width too if you want the shots to stay relatively the same size as before. Of course, it doesn't have to be two, just an example.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Linked Weapons and Ammo

Post by kinetosimpetus »

Yeah, that will probably be fine, since I don't want spread on the heavy weapon, except for deflections from lightsabers...

EDIT: I could use a dummy ord that does nothing, and use the heavy ord a a secondary ord, with a period of x shots, where x is also the shots per salvo and the "ammo cost" that i want.

Let's call this one solved shall we? :wink:

EDIT 2: I did what I said above, works perfectly. At least, no problems yet. :D
Post Reply