FOR_EACH_CLIENT(e)
{
if(e.spawned && e.classname == "player")
- e.movetype = MOVETYPE_NONE;
- e.velocity = '0 0 0';
- e.avelocity = '0 0 0';
- e.movement = '0 0 0';
+ e.blocked = 1;
}
}
}
}
if(g_arena) {
- FOR_EACH_PLAYER(e)
+ FOR_EACH_CLIENT(e)
{
- if(e.health > 0 && e.movetype == MOVETYPE_NONE)
- e.movetype = MOVETYPE_WALK;
+ if(e.blocked)
+ e.blocked = 0;
}
}
}
MUTATOR_CALLHOOK(PlayerPhysics);
+ if(self.blocked)
+ {
+ self.movement = '0 0 0';
+ self.disableclientprediction = 1;
+ }
+
maxspd_mod = 1;
swampspd_mod = 1;
.float team_forced; // can be a team number to force a team, or 0 for default action, or -1 for forced spectator
+.float blocked;
+
.float freezetag_frozen;
.float freezetag_revive_progress;