X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_hook.qc;h=1f9dda17b6adcad942d336bd3ea224b2e0416092;hb=52ae1315c1851e595d12ffc13e2407dee0b24e5e;hp=c6644f1003be9867516d17c0db4f15d828af9da3;hpb=d5c0efcb78a5ed485ccfc0da2f11274965973101;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_hook.qc b/qcsrc/server/w_hook.qc index c6644f100..1f9dda17b 100644 --- a/qcsrc/server/w_hook.qc +++ b/qcsrc/server/w_hook.qc @@ -265,6 +265,14 @@ float w_hook(float req) { self.hook_refire = time; } + else if (req == WR_SUICIDEMESSAGE) + { + return FALSE; + } + else if (req == WR_KILLMESSAGE) + { + return WEAPON_HOOK_MURDER; + } return TRUE; } #endif @@ -283,10 +291,6 @@ float w_hook(float req) { precache_sound("weapons/hookbomb_impact.wav"); } - else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = _("%s did the impossible"); - else if (req == WR_KILLMESSAGE) - w_deathtypestring = _("%s was caught in %s's hook gravity bomb"); return TRUE; } #endif