2020-12-06 20:14:57 +00:00
|
|
|
// DefaultTurrets.cs
|
2020-12-12 17:02:56 +00:00
|
|
|
// Restore Default Turret count at the end of the match
|
2020-12-06 20:14:57 +00:00
|
|
|
// 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);
|