X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Fbugrigs%2Fbugrigs.qc;h=0e7d5813e2a5755c0222e37eb6c1e36eda0f7e09;hb=42e255d014f2c6a1871177ea511f630624cdfb57;hp=194341383dc2d5afd8c8cdf014c907c4bc3cc418;hpb=f203a8239ab58e776da8df7bce46be73d2d655a4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc b/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc index 194341383..0e7d5813e 100644 --- a/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc +++ b/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc @@ -1,8 +1,8 @@ #ifdef IMPLEMENTATION #ifdef SVQC - #include "../../../../server/antilag.qh" + #include #endif -#include "../../../physics.qh" +#include #if defined(SVQC) @@ -271,6 +271,7 @@ void RaceCarPhysics(entity this) #endif MUTATOR_HOOKFUNCTION(bugrigs, PM_Physics) { + SELFPARAM(); if(!PHYS_BUGRIGS(self) || !IS_PLAYER(self)) { return false; } #ifdef SVQC @@ -283,6 +284,9 @@ MUTATOR_HOOKFUNCTION(bugrigs, PM_Physics) MUTATOR_HOOKFUNCTION(bugrigs, PlayerPhysics) { +#ifdef SVQC + SELFPARAM(); +#endif if(!PHYS_BUGRIGS(self)) { return false; } #ifdef SVQC self.bugrigs_prevangles = self.angles; @@ -294,6 +298,7 @@ MUTATOR_HOOKFUNCTION(bugrigs, PlayerPhysics) MUTATOR_HOOKFUNCTION(bugrigs, ClientConnect) { + SELFPARAM(); stuffcmd(self, "cl_cmd settemp chase_active 1\n"); return false; }