mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-02-14 16:11:46 +00:00
- 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:
parent
0c498dd760
commit
5f966cf9a3
3 changed files with 10 additions and 1 deletions
2
BUGS
2
BUGS
|
@ -20,3 +20,5 @@
|
||||||
- rockets explode on observers
|
- rockets explode on observers
|
||||||
- scuba gear doesn't set the rad suit anymore
|
- scuba gear doesn't set the rad suit anymore
|
||||||
- I think getting a rad suit clears your scuba gear when it expires
|
- 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
7
spy.qc
|
@ -457,6 +457,13 @@ void() TeamFortress_SpyGoUndercover =
|
||||||
self.is_undercover = 1;
|
self.is_undercover = 1;
|
||||||
else
|
else
|
||||||
self.is_undercover = 0;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
2
world.qc
2
world.qc
|
@ -563,7 +563,7 @@ void() StartFrame =
|
||||||
local string timeleft;
|
local string timeleft;
|
||||||
timeleft = timelimit ? sprintf ("%.0f", (timelimit - time) / 60) : "";
|
timeleft = timelimit ? sprintf ("%.0f", (timelimit - time) / 60) : "";
|
||||||
if (timeleft != infokey (world, "timeleft"))
|
if (timeleft != infokey (world, "timeleft"))
|
||||||
setinfokey (world, "timeleft", timeleft);
|
localcmd ("serverinfo timeleft " + timeleft + "\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue