mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-13 15:14:34 +00:00
Made Gamemode Override
Safer
This commit is contained in:
parent
986f175c88
commit
05e9da0c18
1 changed files with 11 additions and 11 deletions
|
|
@ -917,8 +917,10 @@ function Player::setKnockback(%this, %val)
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
//Put everyone on NonRabbit Team
|
//Put everyone on NonRabbit Team
|
||||||
function DefaultGame::missionLoadDone(%game)
|
function LakRabbitGame::missionLoadDone(%game)
|
||||||
{
|
{
|
||||||
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
for(%i = 0; %i < ClientGroup.getCount(); %i++)
|
||||||
{
|
{
|
||||||
|
|
@ -936,8 +938,6 @@ function DefaultGame::missionLoadDone(%game)
|
||||||
parent::missionLoadDone(%game);
|
parent::missionLoadDone(%game);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
// Added
|
// Added
|
||||||
function LakRabbitGame::AIInit(%game)
|
function LakRabbitGame::AIInit(%game)
|
||||||
{
|
{
|
||||||
|
|
@ -1925,11 +1925,11 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
||||||
%game.showRabbitWaypoint(%player.client);
|
%game.showRabbitWaypoint(%player.client);
|
||||||
}
|
}
|
||||||
|
|
||||||
// borlak - make rabbit invincible for 2 seconds ..
|
// borlak - make rabbit invincible for 2 seconds ..
|
||||||
%player.setInvincible(true);
|
%player.setInvincible(true);
|
||||||
%player.schedule(2000, "setInvincible", false);
|
%player.schedule(2000, "setInvincible", false);
|
||||||
|
|
||||||
// duel mode
|
// duel mode
|
||||||
if(%game.duelMode)
|
if(%game.duelMode)
|
||||||
{
|
{
|
||||||
%player.client.duelTimer = schedule(1000, 0, checkDuelTimer, %player.client);
|
%player.client.duelTimer = schedule(1000, 0, checkDuelTimer, %player.client);
|
||||||
|
|
@ -2032,11 +2032,11 @@ function LakRabbitGame::gameOver(%game)
|
||||||
cancel(%client.waypointSchedule);
|
cancel(%client.waypointSchedule);
|
||||||
cancel(%client.duelTimer);
|
cancel(%client.duelTimer);
|
||||||
|
|
||||||
if(%client.team $=0)
|
|
||||||
%client.lakobs = 1;
|
|
||||||
|
|
||||||
//Put everyone in observer
|
//Put everyone in observer
|
||||||
//Mainly for switching to CTF
|
//Mainly for switching to CTF
|
||||||
|
if(%client.team $=0)
|
||||||
|
%client.lakobs = 1;
|
||||||
|
|
||||||
%client.team = 0;
|
%client.team = 0;
|
||||||
%client.lastTeam = 0;
|
%client.lastTeam = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -2045,9 +2045,9 @@ function LakRabbitGame::gameOver(%game)
|
||||||
if($Host::LakRabbitShowFlagIcon == 0 && $Host::LakRabbitShowFlagTask)
|
if($Host::LakRabbitShowFlagIcon == 0 && $Host::LakRabbitShowFlagTask)
|
||||||
cancel(%game.waypointSchedule);
|
cancel(%game.waypointSchedule);
|
||||||
|
|
||||||
// borlak -- delete variables
|
// borlak -- delete variables
|
||||||
deleteVariables("$LakFired*");
|
deleteVariables("$LakFired*");
|
||||||
deleteVariables("$LakDamaged*");
|
deleteVariables("$LakDamaged*");
|
||||||
}
|
}
|
||||||
|
|
||||||
function LakRabbitGame::resetScore(%game, %client)
|
function LakRabbitGame::resetScore(%game, %client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue