mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-05 12:40:20 +00:00
Attempt at Fixing Lak/CTF Transition
This commit is contained in:
parent
a018100ffc
commit
916004601e
1 changed files with 22 additions and 0 deletions
|
|
@ -17,6 +17,9 @@
|
|||
// Thanks for helping me test!
|
||||
// maradona, pip, phantom jaguar, hilikus, the_ham, pip, wiggle, dragon, pancho villa, w/o, nectar and many others..
|
||||
//
|
||||
// v3.38 Nov 2020
|
||||
// Added Observer GameOver (Mainly for switching to CTF)
|
||||
//
|
||||
// v3.37 Aug 2020
|
||||
// Nerfed Blaster damage (Less spam)
|
||||
// Flag Transform 500 > 100
|
||||
|
|
@ -899,6 +902,20 @@ function Player::setKnockback(%this, %val)
|
|||
// }
|
||||
//}
|
||||
|
||||
//Put everyone on NonRabbit Team
|
||||
function DefaultGame::missionLoadDone(%game)
|
||||
{
|
||||
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
||||
{
|
||||
%client = ClientGroup.getObject(%i);
|
||||
|
||||
%client.team = $NonRabbitTeam;
|
||||
%client.lastTeam = $NonRabbitTeam;
|
||||
}
|
||||
|
||||
parent::missionLoadDone(%game);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Added
|
||||
|
|
@ -1994,6 +2011,11 @@ function LakRabbitGame::gameOver(%game)
|
|||
if($Host::LakRabbitShowFlagIcon == 0 && $Host::LakRabbitShowFlagTask)
|
||||
cancel(%client.waypointSchedule);
|
||||
cancel(%client.duelTimer);
|
||||
|
||||
//Put everyone in observer
|
||||
//Mainly for switching to CTF
|
||||
%client.team = 0;
|
||||
%client.lastTeam = 0;
|
||||
}
|
||||
|
||||
// ilys -- cancel waypoint if not showing flag icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue