- comment out the cheat check's speed check, so we can use the rest

without it
This commit is contained in:
Adam Olsen 2001-10-18 13:30:35 +00:00
parent 0ff237871e
commit 09bf5a80dc

View file

@ -62,8 +62,11 @@ void() Kick_My_Owner =
void () TeamFortress_CheckForSpeed =
{
#if 0
local vector tempvec;
local float max, dist, check, immune;
local float dist;
#endif
local float max, check, immune;
local string nospeed;
local float off;
@ -100,8 +103,10 @@ if (immune)
else
check = TRUE;
//WK Lowered percent chance of restuffing because stuffcmds() cause overflows
if (!self.lip || !(self.has_camera) || (random() <= 0.1)){ //periodically reset ping and gotwalls.
//WK Lowered percent chance of restuffing because stuffcmds()
// cause overflows
if (!self.lip || !(self.has_camera) || (random() <= 0.1)) {
// periodically reset ping and gotwalls.
self.has_camera = 0;
self.has_camera = stof(infokey(self.owner,"ping")) / 20;
#ifdef ENABLE_CHEAT_CMDS
@ -122,6 +127,7 @@ else
#endif
}
#if 0
// Ignore z part of vector
tempvec = self.oldorigin - self.owner.origin;
tempvec_z = 0;
@ -171,6 +177,7 @@ else
bprint(PRINT_HIGH, ")\n");
#endif
self.oldorigin = self.owner.origin;
#endif
self.nextthink = time + 1;
};
//This checks so that the impulse cmds were not by accident