mirror of
https://github.com/ChocoTaco1/zDiscord-Map-Pack.git
synced 2026-01-19 17:54:44 +00:00
26 lines
846 B
C#
26 lines
846 B
C#
// DefaultTurrets.cs
|
|
// Restore Default Turret count at the end of the match
|
|
// Some maps in this map use non-default turret numbers
|
|
|
|
$DMP::indoorMinDef = $TeamDeployableMin[TurretIndoorDeployable];
|
|
$DMP::outdoorMinDef = $TeamDeployableMin[TurretOutdoorDeployable];
|
|
$DMP::indoorMaxDef = $TeamDeployableMax[TurretIndoorDeployable];
|
|
$DMP::outdoorMaxDef = $TeamDeployableMax[TurretOutdoorDeployable];
|
|
|
|
package turretDefaults
|
|
{
|
|
|
|
function DefaultGame::gameOver( %game )
|
|
{
|
|
parent::gameOver(%game);
|
|
|
|
$TeamDeployableMin[TurretIndoorDeployable] = $DMP::indoorMinDef;
|
|
$TeamDeployableMin[TurretOutdoorDeployable] = $DMP::outdoorMinDef;
|
|
$TeamDeployableMax[TurretIndoorDeployable] = $DMP::indoorMaxDef;
|
|
$TeamDeployableMax[TurretOutdoorDeployable] = $DMP::outdoorMaxDef;
|
|
}
|
|
|
|
};
|
|
|
|
if(!isActivePackage(turretDefaults))
|
|
activatePackage(turretDefaults); |