Don't give accuracy for shooting frozen players
authorMario <zacjardine@y7mail.com>
Mon, 15 Dec 2014 00:34:49 +0000 (11:34 +1100)
committerMario <zacjardine@y7mail.com>
Mon, 15 Dec 2014 00:34:49 +0000 (11:34 +1100)
qcsrc/server/weapons/accuracy.qc

index 09d4233..8a7f4c5 100644 (file)
@@ -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;