X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Ftracing.qc;h=755ab59e593e4906319debced03fd205fb16ca8e;hp=75cf5b1d4c8fa016a07c4cabc6426a6253a9b9da;hb=d6e1aa437e7eb8e182053cf17231597e79df0f81;hpb=dccfc3eef40ca210167d43bb30fae6bb116e12f0 diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 75cf5b1d4c..755ab59e59 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -353,9 +353,13 @@ void fireBullet(vector start, vector dir, float spread, float max_solid_penetrat if(autocvar_g_antilag == 0 || self.cvar_cl_noantilag) lag = 0; // only do hitscan, but no antilag if(lag) + { FOR_EACH_PLAYER(pl) if(pl != self) antilag_takeback(pl, time - lag); + FOR_EACH_MONSTER(pl) + antilag_takeback(pl, time - lag); + } WarpZone_trace_forent = self; @@ -456,7 +460,11 @@ void fireBullet(vector start, vector dir, float spread, float max_solid_penetrat } if(lag) + { FOR_EACH_PLAYER(pl) if(pl != self) antilag_restore(pl); + FOR_EACH_MONSTER(pl) + antilag_restore(pl); + } }