]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_hook.qc
Death messages are now FULLY FUNCTIONAL (minus some new feature ideas yet)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_hook.qc
index 63d02604c4271f11cc808099f148f8946393bbf1..f07ec07ca655a5bd94ac6afd4faa4bd6b64d8155 100644 (file)
@@ -265,6 +265,10 @@ 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 +287,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