- fix timeleft so that it sets serverinfo, not localinfo. oops :)

- make it so spies remove their timer if they abort disguising
This commit is contained in:
Adam Olsen 2001-10-08 19:13:33 +00:00
parent 0c498dd760
commit 5f966cf9a3
3 changed files with 10 additions and 1 deletions

2
BUGS
View file

@ -20,3 +20,5 @@
- rockets explode on observers
- scuba gear doesn't set the rad suit anymore
- I think getting a rad suit clears your scuba gear when it expires
- "hit to disguise to blue, then before it finishes stop disguising, then quick disguise to change your skin.......boop your color will finish disguising, then do another disguise (doesnt matter color/skin) then boop your skin will finish"

7
spy.qc
View file

@ -457,6 +457,13 @@ void() TeamFortress_SpyGoUndercover =
self.is_undercover = 1;
else
self.is_undercover = 0;
local entity ent = world;
while (ent = find (ent, classname, "timer")) {
if (ent.owner == self && ent.think == TeamFortress_SpyUndercoverThink) {
ent.think = SUB_Remove;
ent.nextthink = time + 0.1;
}
}
}
}
};

View file

@ -563,7 +563,7 @@ void() StartFrame =
local string timeleft;
timeleft = timelimit ? sprintf ("%.0f", (timelimit - time) / 60) : "";
if (timeleft != infokey (world, "timeleft"))
setinfokey (world, "timeleft", timeleft);
localcmd ("serverinfo timeleft " + timeleft + "\n");
};
/*