Apply antilag to monsters in g_subs
authorMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 09:07:27 +0000 (20:07 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 09:07:27 +0000 (20:07 +1100)
qcsrc/server/g_subs.qc

index 3d6d2cf..fd0dc78 100644 (file)
@@ -481,6 +481,8 @@ void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma,
                FOR_EACH_PLAYER(player)
                        if(player != forent)
                                antilag_takeback(player, time - lag);
+               FOR_EACH_MONSTER(player)
+                       antilag_takeback(player, time - lag);
        }
 
        // do the trace
@@ -495,6 +497,8 @@ void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma,
                FOR_EACH_PLAYER(player)
                        if(player != forent)
                                antilag_restore(player);
+               FOR_EACH_MONSTER(player)
+                       antilag_restore(player);
        }
 
        // restore shooter solid type