X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Fbugrigs%2Fbugrigs.qc;h=0e7d5813e2a5755c0222e37eb6c1e36eda0f7e09;hb=42e255d014f2c6a1871177ea511f630624cdfb57;hp=796b3d3955c4cd02296117f31fcc65944908accc;hpb=10c0be8573ea4ab40c24c4a4267f445e00b63857;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 796b3d395..0e7d5813e 100644 --- a/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc +++ b/qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc @@ -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; }