From: Mario Date: Tue, 16 Oct 2018 20:18:31 +0000 (+1000) Subject: Don't count non-client attackers as valid for accuracy X-Git-Tag: xonotic-v0.8.5~1763 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=94c8a26a4c98a43135ad0c62c5d1590dbae02c16;p=xonotic%2Fxonotic-data.pk3dir.git Don't count non-client attackers as valid for accuracy --- 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); }