X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_hook.qc;h=63d02604c4271f11cc808099f148f8946393bbf1;hb=5abe7760e8867f0e6001991049795a3da07813a0;hp=b6b90f6937070490c4de6c95d775b2a5f2d07096;hpb=e53a561cca4d6780e8df8451a674ca92fb867c81;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_hook.qc b/qcsrc/server/w_hook.qc index b6b90f693..63d02604c 100644 --- a/qcsrc/server/w_hook.qc +++ b/qcsrc/server/w_hook.qc @@ -74,7 +74,7 @@ void W_Hook_Touch2 (void) void W_Hook_Attack2() { - local entity gren; + entity gren; W_DecreaseAmmo(ammo_cells, autocvar_g_balance_hook_secondary_ammo, FALSE); W_SetupShot (self, FALSE, 4, "weapons/hookbomb_fire.wav", CH_WEAPON_A, autocvar_g_balance_hook_secondary_damage); @@ -100,6 +100,7 @@ void W_Hook_Attack2() gren.damageforcescale = autocvar_g_balance_hook_secondary_damageforcescale; gren.event_damage = W_Hook_Damage; gren.damagedbycontents = TRUE; + gren.missile_flags = MIF_SPLASH | MIF_ARC; gren.velocity = '0 0 1' * autocvar_g_balance_hook_secondary_speed; if(autocvar_g_projectiles_newton_style) @@ -265,7 +266,7 @@ float w_hook(float req) self.hook_refire = time; } return TRUE; -}; +} #endif #ifdef CSQC float w_hook(float req) @@ -285,7 +286,7 @@ float w_hook(float req) else if (req == WR_SUICIDEMESSAGE) w_deathtypestring = _("%s did the impossible"); else if (req == WR_KILLMESSAGE) - w_deathtypestring = _("%s has run into %s's gravity bomb"); + w_deathtypestring = _("%s was caught in %s's hook gravity bomb"); return TRUE; } #endif