Posted by: Raptor Dan
« on: September 13, 2018, 10:34:55 AM »Use ConsumeAmmo() in it's script.
It consumes ammo rapidly instead of every time it fires.
The amount the gun consumes ammo every time it fires is supposed to be defined in weaponinfo.txt
Code: [Select]
Weapon kWpn_Tommy
{
offset "10 70 27.2"
actor kActor_Wpn_Tommy
defaultWeapon FALSE
owned TRUE
allowUnderwater FALSE
allowLand TRUE
allowMultiplayer TRUE
noCheatGiveWeapons TRUE
icon "gfx/hud/weapons/tommy-icon.png"
ammo "Ammo_Tommy"
initialAmmoAmount 25
projectileParticle kParticle_Bullet
projectileOffset "-2 4 2"
ammoConsumption 1
charMeshIndex kWpnChar_Pistol
priority 7100
slot 5
pickupTypeID kActor_Item_WpnTommy
quickslot 4
}
After I changed the animation, it doesn't consume ammo.
However, changing the animation back to the base pistol animation makes it consume ammo again. This is stumping me, there should be no differences between the animations other than the particle they fire.