From: Mario Date: Mon, 15 Dec 2014 00:34:49 +0000 (+1100) Subject: Don't give accuracy for shooting frozen players X-Git-Tag: xonotic-v0.8.0~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fbf95bc8847bd149f4e70b4e96b8ce4bd203005f;p=xonotic%2Fxonotic-data.pk3dir.git Don't give accuracy for shooting frozen players --- diff --git a/qcsrc/server/weapons/accuracy.qc b/qcsrc/server/weapons/accuracy.qc index 09d42332a..8a7f4c5b0 100644 --- a/qcsrc/server/weapons/accuracy.qc +++ b/qcsrc/server/weapons/accuracy.qc @@ -110,6 +110,7 @@ float accuracy_isgooddamage(entity attacker, entity targ) if(!warmup_stage) if(targ.deadflag == DEAD_NO) + if(!targ.frozen) if(mutator_check == MUT_ACCADD_INVALID || (mutator_check == MUT_ACCADD_VALID && IS_CLIENT(targ))) if(DIFF_TEAM(attacker, targ)) return TRUE;