set sv_q3acompat_machineshotgunswap 0 "shorthand for swapping uzi and shotgun (for Q3A map compatibility in mapinfo files)"
set g_movement_highspeed 1 "movement speed modification factor (only changes movement when above maxspeed)"
+
+set g_maxspeed 0 "player speed limit, faster players are killed (0 for unlimited speed)"
void CreatureFrame (void)
{
local entity oldself;
- local float dm;
+ local float dm, maxspeed;
oldself = self;
self = findfloat(world, iscreature, TRUE);
while (self)
{
Damage (self, world, world, dm, DEATH_FALL, self.origin, '0 0 0');
}
- else if(vlen(self.velocity) > 100000 && cvar("developer"))
- {
- dprint(strcat(self.netname, " became too fast, please investigate: ", vtos(self.spawnorigin), "\n"));
- Damage (self, world, world, 50000, DEATH_SHOOTING_STAR, self.origin, '0 0 0');
- }
}
+ maxspeed = cvar("g_maxspeed");
+ if(maxspeed > 0 && vlen(self.velocity) > maxspeed)
+ Damage (self, world, world, 100000, DEATH_SHOOTING_STAR, self.origin, '0 0 0');
+
// play stupid sounds
if (g_footsteps)
if (!gameover)