mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
- comment out the cheat check's speed check, so we can use the rest
without it
This commit is contained in:
parent
0ff237871e
commit
09bf5a80dc
1 changed files with 35 additions and 28 deletions
13
speed.qc
13
speed.qc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue