From 94c8a26a4c98a43135ad0c62c5d1590dbae02c16 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 17 Oct 2018 06:18:31 +1000 Subject: [PATCH] Don't count non-client attackers as valid for accuracy --- qcsrc/server/weapons/accuracy.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/weapons/accuracy.qc b/qcsrc/server/weapons/accuracy.qc index 8a7bac1b9..0dc71ddcc 100644 --- a/qcsrc/server/weapons/accuracy.qc +++ b/qcsrc/server/weapons/accuracy.qc @@ -106,12 +106,12 @@ bool accuracy_isgooddamage(entity attacker, entity targ) if (mutator_check == MUT_ACCADD_INVALID) return true; if (mutator_check != MUT_ACCADD_VALID) return false; - if (!IS_CLIENT(targ)) return false; + if (!IS_CLIENT(targ) || !IS_CLIENT(attacker)) return false; return true; } bool accuracy_canbegooddamage(entity attacker) { - return !warmup_stage; + return !warmup_stage && IS_CLIENT(attacker); } -- 2.39.2