]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_hlac.qc
Death messages are now FULLY FUNCTIONAL (minus some new feature ideas yet)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_hlac.qc
index a2697b2f5cb527050677ace98031e52896c6b83e..67a1e4e60ac64c6fb462c2b3b104369715a2c2d5 100644 (file)
@@ -219,6 +219,10 @@ float w_hlac(float req)
        {
                W_Reload(min(autocvar_g_balance_hlac_primary_ammo, autocvar_g_balance_hlac_secondary_ammo), autocvar_g_balance_hlac_reload_ammo, autocvar_g_balance_hlac_reload_time, "weapons/reload.wav");
        }
+       else if (req == WR_SUICIDEMESSAGE)
+               return WEAPON_HLAC_SUICIDE;
+       else if (req == WR_KILLMESSAGE)
+               return WEAPON_HLAC_MURDER;
        return TRUE;
 }
 #endif
@@ -237,10 +241,6 @@ float w_hlac(float req)
        {
                precache_sound("weapons/laserimpact.wav");
        }
-       else if (req == WR_SUICIDEMESSAGE)
-               w_deathtypestring = _("%s should have used a smaller gun");
-       else if (req == WR_KILLMESSAGE)
-               w_deathtypestring = _("%s was cut down with a HLAC by %s");
        return TRUE;
 }
 #endif