mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-13 11:43:34 +00:00
Proper Overrides
Moved some things around so its easier to find using proper overrides instead of inserting code in random places. Works the same way.
This commit is contained in:
parent
d10d3cb1e9
commit
083af158ae
7 changed files with 153 additions and 35 deletions
|
|
@ -145,4 +145,22 @@ function SetNextMapGetRandoms( %client )
|
|||
$SetNextMissionMapSlot7 = "RampartsDM";
|
||||
$SetNextMissionMapSlot8 = "ShrineDM";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reset SetNextMission every map change
|
||||
package ResetSetNextMission
|
||||
{
|
||||
|
||||
function DefaultGame::gameOver(%game)
|
||||
{
|
||||
Parent::gameOver(%game);
|
||||
|
||||
//Reset SetNextMission Restore
|
||||
$SetNextMissionRestore = "";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
if (!isActivePackage(ResetSetNextMission))
|
||||
activatePackage(ResetSetNextMission);
|
||||
Loading…
Add table
Add a link
Reference in a new issue