mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Fixed cancel.flagupdater
This commit is contained in:
parent
eea4ada1af
commit
f1cc62e3dc
1 changed files with 2 additions and 2 deletions
|
|
@ -1485,7 +1485,6 @@ function LakRabbitGame::playerDroppedFlag(%game, %player)
|
||||||
//set the flag status
|
//set the flag status
|
||||||
%flag = %player.holdingFlag;
|
%flag = %player.holdingFlag;
|
||||||
%player.holdingFlag = "";
|
%player.holdingFlag = "";
|
||||||
%game.updateFlagTransform(%flag); // z0dd - ZOD, 8/4/02, Call to KineticPoet's flag updater
|
|
||||||
%flag.carrier = "";
|
%flag.carrier = "";
|
||||||
$flagStatus = "<In the Field>";
|
$flagStatus = "<In the Field>";
|
||||||
|
|
||||||
|
|
@ -1548,6 +1547,7 @@ function LakRabbitGame::playerDroppedFlag(%game, %player)
|
||||||
%flag.returnThread = %game.schedule(%game.flagReturnTime, "returnFlag", %flag);
|
%flag.returnThread = %game.schedule(%game.flagReturnTime, "returnFlag", %flag);
|
||||||
// z0dd - ZOD - SquirrelOfDeath, 10/02/02. Hack for flag collision bug.
|
// z0dd - ZOD - SquirrelOfDeath, 10/02/02. Hack for flag collision bug.
|
||||||
%flag.searchSchedule = Game.schedule(10, "startFlagCollisionSearch", %flag);
|
%flag.searchSchedule = Game.schedule(10, "startFlagCollisionSearch", %flag);
|
||||||
|
%game.updateFlagTransform(%flag); // z0dd - ZOD, 8/4/02, Call to KineticPoet's flag updater
|
||||||
|
|
||||||
// borlak -- timer fix and re-catch fix
|
// borlak -- timer fix and re-catch fix
|
||||||
%player.client.flagDeny = schedule(2500, 0, setFlagDeny, %player.client, 0);
|
%player.client.flagDeny = schedule(2500, 0, setFlagDeny, %player.client, 0);
|
||||||
|
|
@ -1611,7 +1611,6 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
||||||
messageAll('MsgRabbitFlagTaken', '\c4%1 gets %2 points for a capturing the flag!~wfx/misc/flipflop_lost.wav', %player.client.name, %points);
|
messageAll('MsgRabbitFlagTaken', '\c4%1 gets %2 points for a capturing the flag!~wfx/misc/flipflop_lost.wav', %player.client.name, %points);
|
||||||
%player.client.flagTimeMS += getSimTime() - %player.client.startTime;
|
%player.client.flagTimeMS += getSimTime() - %player.client.startTime;
|
||||||
%game.resetFlag(%player.holdingFlag);
|
%game.resetFlag(%player.holdingFlag);
|
||||||
cancel(%game.updateFlagThread[%flag]); // z0dd - ZOD, 8/4/02. Cancel this flag's thread to KineticPoet's flag updater
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if someone already has other flag.. only one flag can be in play.. also make sure you can only pick up flag that IS in play
|
// check if someone already has other flag.. only one flag can be in play.. also make sure you can only pick up flag that IS in play
|
||||||
|
|
@ -1643,6 +1642,7 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
||||||
{
|
{
|
||||||
// borlak cancel flag search and remove free diskjump
|
// borlak cancel flag search and remove free diskjump
|
||||||
cancel(%flag.searchSchedule);
|
cancel(%flag.searchSchedule);
|
||||||
|
cancel(%game.updateFlagThread[%flag]); // z0dd - ZOD, 8/4/02. Cancel this flag's thread to KineticPoet's flag updater
|
||||||
%player.freeDJ = 0;
|
%player.freeDJ = 0;
|
||||||
%flag.bounced = 0;
|
%flag.bounced = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue