]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Decrease ammo as well. Each rocket decreases ammo by the secondary shot ammo amount...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 12:45:09 +0000 (15:45 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 12:45:09 +0000 (15:45 +0300)
qcsrc/server/w_hagar.qc

index 3afc07165d2212ac6cdcb323c399502255ea4a0a..c0ecc63d04dec5079fd9a8c9cd7f78d865ab242f 100644 (file)
@@ -143,6 +143,8 @@ void W_Hagar_Attack2_Load (void)
                W_SetupShot (self, FALSE, 2, "weapons/hagar_fire.wav", CHAN_WEAPON, autocvar_g_balance_hagar_secondary_damage);
                pointparticles(particleeffectnum("hagar_muzzleflash"), w_shotorg, w_shotdir * 1000, 1);
 
+               W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_hagar_secondary_ammo * self.hagar_load, autocvar_g_balance_hagar_reload_ammo);
+
                forward = v_forward;
                right = v_right;
                up = v_up;