From: Mircea Kitsune Date: Mon, 11 Apr 2011 16:22:34 +0000 (+0300) Subject: Add the correct .use function, fixes damage value X-Git-Tag: xonotic-v0.5.0~263^2~10^2~60 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e315f7717d2bc0b832b64fde4f10744492a04ca6;p=xonotic%2Fxonotic-data.pk3dir.git Add the correct .use function, fixes damage value --- 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);