]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't show any message for suicides in CTS
authorMario <mario@smbclan.net>
Thu, 4 Feb 2016 07:07:54 +0000 (17:07 +1000)
committerMario <mario@smbclan.net>
Thu, 4 Feb 2016 07:07:54 +0000 (17:07 +1000)
qcsrc/server/g_damage.qc

index 00c9982c3db8c8e5d32f77da478dd399432b6803..23897720e3ecf75492058975180c5a4643cd0626 100644 (file)
@@ -163,6 +163,9 @@ void Obituary_SpecialDeath(
                entity deathent = Deathtypes_from(deathtype - DT_FIRST);
                if (!deathent) { backtrace("Obituary_SpecialDeath: Could not find deathtype entity!\n"); return; }
 
+               if(g_cts && deathtype == DEATH_KILL.m_id)
+                       return; // TODO: somehow put this in CTS gamemode file!
+
                if(murder)
                {
                        if(deathent.death_msgmurder)