]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid CTS from adding player damage dealt or taken to scorefields as its meaningless...
authorDr. Jaska <drjaska83@gmail.com>
Sun, 16 Oct 2022 20:56:03 +0000 (20:56 +0000)
committerterencehill <piuntn@gmail.com>
Sun, 16 Oct 2022 20:56:03 +0000 (20:56 +0000)
qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc

index 45457d1a4d8adb895ea40b39e4ad89b458d2b495..1f74325ff46e76e65d2b28238a2819810c33a69f 100644 (file)
@@ -237,9 +237,7 @@ MUTATOR_HOOKFUNCTION(cts, PutClientInServer)
 
 MUTATOR_HOOKFUNCTION(cts, PlayerDamaged)
 {
-       int frag_deathtype = M_ARGV(5, int);
-       if (frag_deathtype == DEATH_KILL.m_id)
-               return true; // forbid logging damage
+       return true; // forbid logging damage
 }
 
 MUTATOR_HOOKFUNCTION(cts, PlayerDies)