From: Dr. Jaska Date: Sun, 16 Oct 2022 20:56:03 +0000 (+0000) Subject: Forbid CTS from adding player damage dealt or taken to scorefields as its meaningless... X-Git-Tag: xonotic-v0.8.6~320^2 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=a35c3bfec6483f5f6378898f00fe8cb072714239;p=xonotic%2Fxonotic-data.pk3dir.git Forbid CTS from adding player damage dealt or taken to scorefields as its meaningless and those scoreboardfields are not even shown by default. --- diff --git a/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc b/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc index 45457d1a4..1f74325ff 100644 --- a/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc +++ b/qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc @@ -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)