From: Mircea Kitsune Date: Mon, 11 Apr 2011 12:45:09 +0000 (+0300) Subject: Decrease ammo as well. Each rocket decreases ammo by the secondary shot ammo amount... X-Git-Tag: xonotic-v0.5.0~263^2~10^2~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=598da6b0ff4459cbc22238fd9e7c8f2f10aa74ec;p=xonotic%2Fxonotic-data.pk3dir.git Decrease ammo as well. Each rocket decreases ammo by the secondary shot ammo amount, based on how many rockets are fired. --- diff --git a/qcsrc/server/w_hagar.qc b/qcsrc/server/w_hagar.qc index 3afc07165..c0ecc63d0 100644 --- a/qcsrc/server/w_hagar.qc +++ b/qcsrc/server/w_hagar.qc @@ -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;