Pistol without unlimited 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
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Pistol without unlimited ammo [Solved]

Post by Marvel4 »

Ok, I have a big problem, all I wanted was a pistol without unlimited ammo, so I added this to the all_weap_inf_pistol2.odf:
RoundsPerClip = "20"
ReloadTime = "0.6"
HeatPerShot = "0"
I also changed the ammo in the unit odf:
WEAPONSECTION = 2
WeaponName = "all_weap_inf_pistol2"
WeaponAmmo = 3

What happened?
Now I have a pistol that doesn't overheat, shows "60" in the HUD, but when I shoot, I don't lose ammo... WTF?
User avatar
DarthFannel
Private Second Class
Posts: 60
Joined: Tue Jul 20, 2010 9:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City

Re: Pistol without unlimited ammo

Post by DarthFannel »

Make a new pistol copying it from the com_weap_inf_pistol.odf instead of using it as class parent and move the appropiate values according to your specifications, or make your pistol a child of com_weap_award_pistol.odf, just make sure is not "unlockable", the regular pistol is made so it has infinite ammo and overheat so you need to avoid the default settings, if you plan to do more pistols with those settings I suggest you make a new class parent.
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Pistol without unlimited ammo

Post by Marvel4 »

Thanks, making a new class parent and editing the "RoundsPerClip" there solved it. :cpu:
Post Reply