From e315f7717d2bc0b832b64fde4f10744492a04ca6 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 11 Apr 2011 19:22:34 +0300 Subject: [PATCH] Add the correct .use function, fixes damage value --- qcsrc/server/w_hagar.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/w_hagar.qc b/qcsrc/server/w_hagar.qc index 534195400..a770abba3 100644 --- a/qcsrc/server/w_hagar.qc +++ b/qcsrc/server/w_hagar.qc @@ -154,11 +154,11 @@ void W_Hagar_Attack2_Load (void) { // time to release the rockets we've loaded + W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_hagar_secondary_ammo * self.hagar_load, autocvar_g_balance_hagar_reload_ammo); + 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; @@ -192,8 +192,8 @@ void W_Hagar_Attack2_Load (void) } prevmissile = missile; - missile.touch = W_Hagar_Touch; - missile.use = W_Hagar_Explode; + missile.touch = W_Hagar_Touch; // not bouncy + missile.use = W_Hagar_Explode2; missile.think = adaptor_think2use_hittype_splash; missile.nextthink = time + autocvar_g_balance_hagar_secondary_lifetime_min + random() * autocvar_g_balance_hagar_secondary_lifetime_rand; PROJECTILE_MAKETRIGGER(missile); -- 2.39.2