]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix monster accuracy spam
authorMario <mario.mario@y7mail.com>
Thu, 29 Aug 2013 10:10:49 +0000 (20:10 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 29 Aug 2013 10:10:49 +0000 (20:10 +1000)
qcsrc/server/cl_weaponsystem.qc

index 81a4f5a7ef895e4a704b91b9a02ea9c0aad4436a..131c543781c5d1325d1934153ebfc3592c766711 100644 (file)
@@ -164,7 +164,8 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, vector s_forward, vector m
        if(accuracy_canbegooddamage(ent))
                accuracy_add(ent, ent.weapon, maxdamage, 0);
 
-       W_HitPlotAnalysis(ent, v_forward, v_right, v_up);
+       if not(ent.flags & FL_MONSTER)
+               W_HitPlotAnalysis(ent, v_forward, v_right, v_up);
 
        if(ent.weaponentity.movedir_x > 0)
                vecs = ent.weaponentity.movedir;