]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 09d42332ae51dbf408a4284fdbd7b947f0fb517b..8a7f4c5b061d76d93d29984777bc9f4881df60f3 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;