From a35c3bfec6483f5f6378898f00fe8cb072714239 Mon Sep 17 00:00:00 2001 From: "Dr. Jaska" Date: Sun, 16 Oct 2022 20:56:03 +0000 Subject: [PATCH] Forbid CTS from adding player damage dealt or taken to scorefields as its meaningless and those scoreboardfields are not even shown by default. --- qcsrc/common/gamemodes/gamemode/cts/sv_cts.qc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.39.2