]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
ignore selfkill messages on the notify panel in CTS, they aren't interesting
authorFruitieX <rasse@rasse-laptop.(none)>
Tue, 26 Oct 2010 14:17:10 +0000 (17:17 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Tue, 26 Oct 2010 14:17:10 +0000 (17:17 +0300)
qcsrc/client/hud.qc

index 2809cafa01ee5b3e0580db47b3ef84733244b550..d752235b418457fe9a7650f42ec49b989e989e01 100644 (file)
@@ -2593,6 +2593,9 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s
        alsoprint = (autocvar_hud_panel_notify_print || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
        gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
        
+       if (msg == MSG_SUICIDE && gametype == GAME_CTS) // selfkill isn't interesting in CTS and only spams up the notify panel
+               return;
+
        if(msg == MSG_SUICIDE) {
                w = DEATH_WEAPONOF(type);
                if(WEP_VALID(w)) {