mirror of
https://github.com/ChocoTaco1/zDiscord-Map-Pack.git
synced 2026-02-13 19:53:37 +00:00
Initial 4.5 commit
This commit is contained in:
commit
96f73b3aef
1166 changed files with 107707 additions and 0 deletions
30
scripts/autoexec/DefaultTurrets.cs
Normal file
30
scripts/autoexec/DefaultTurrets.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// DefaultTurrets.cs
|
||||
// Restore Default Turret count at the end of the match + MPB
|
||||
// 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];
|
||||
|
||||
$DMP::vehicleMPBMax = $VehicleMax[MobileBaseVehicle];
|
||||
|
||||
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;
|
||||
|
||||
$VehicleMax[MobileBaseVehicle] = $DMP::vehicleMPBMax;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
if(!isActivePackage(turretDefaults))
|
||||
activatePackage(turretDefaults);
|
||||
Loading…
Add table
Add a link
Reference in a new issue