#ifdef IMPLEMENTATION
#ifdef SVQC
- #include "../../../../server/antilag.qh"
+ #include <server/antilag.qh>
#endif
-#include "../../../physics/player.qh"
+#include <common/physics/player.qh>
#if defined(SVQC)
#endif
MUTATOR_HOOKFUNCTION(bugrigs, PM_Physics)
{
+ SELFPARAM();
if(!PHYS_BUGRIGS(self) || !IS_PLAYER(self)) { return false; }
#ifdef SVQC
MUTATOR_HOOKFUNCTION(bugrigs, PlayerPhysics)
{
+#ifdef SVQC
+ SELFPARAM();
+#endif
if(!PHYS_BUGRIGS(self)) { return false; }
#ifdef SVQC
self.bugrigs_prevangles = self.angles;
MUTATOR_HOOKFUNCTION(bugrigs, ClientConnect)
{
- stuffcmd(self, "cl_cmd settemp chase_active 1\n");
- return false;
+ entity player = M_ARGV(0, entity);
+
+ stuffcmd(player, "cl_cmd settemp chase_active 1\n");
}
MUTATOR_HOOKFUNCTION(bugrigs, BuildMutatorsString)
{
- ret_string = strcat(ret_string, ":bugrigs");
- return false;
+ M_ARGV(0, string) = strcat(M_ARGV(0, string), ":bugrigs");
}
MUTATOR_HOOKFUNCTION(bugrigs, BuildMutatorsPrettyString)
{
- ret_string = strcat(ret_string, ", Bug rigs");
- return false;
+ M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Bug rigs");
}
#endif