Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

fix(data): second pass over the nine generals, 54 more data bugs

Olcay Seyganfbe8dc6f4fe7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e627f266..23ac66304 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -452,13 +452,46 @@ Every Zero Hour general is a copy of a base faction with changes on top, and the
- Infantry: a Tank Hunter's icons show Nationalism and Fanaticism, the two upgrades that change him, where one read a raw text label.
- Nuke: the Battlemaster and the Overlord drop icons for upgrades that do not exist, and the Overlord shows Isotope Stability, which it does have.
- Toxin: the Tunnel Defender fires one rocket at a time. It carries a ground rocket and an air rocket, and each kept its own reload, so with a tank and a helicopter both in range it shot at the two together.
-- Toxin and Demolitions: Rebels, Terrorists and Tunnel Defenders show the upgrades they really have (AP Bullets, Anthrax Beta and Gamma, Booby Trap) and not Camouflage, which the Toxin general cannot buy.
+- Toxin and Demolitions: Rebels, Terrorists and Tunnel Defenders show the upgrades they really have (Anthrax Beta and Gamma, Booby Trap) and not Camouflage, which the Toxin general cannot buy.
- Demolitions: a Stinger Site's demolition charge goes off once, at full strength, and only when you blow it up yourself. A suicide set it off twice, an ordinary death set off the suicide charge, and poison set off nothing.
- Demolitions: the Stinger Site and the Tunnel Network show the Demolitions upgrade that arms them.
- Stealth: a Rebel stays hidden when he is hit. Only firing gives him away, as on every other stealth soldier.
- Stealth: a Palace whose garrison opens fire can be seen. The soldiers inside shot from cover without ever showing it.
- Stealth: the Bomb Truck shows Anthrax Beta and the fake Arms Dealer shows Camo Netting.
+A second pass went through the same nine generals and the base units they build, and found more.
+
+- Laser and Superweapon: supply Chinooks unload at the speed the plain Chinook got in the last official patch. Both generals' Chinooks had kept the old, slower times, so their whole income ran 3 to 4% behind every other American general.
+- Every Stinger soldier fires one rocket at a time. Its ground rocket and air rocket reloaded separately, so switching targets fired a second one straight away.
+- Toxin: a Terrorist shot dead no longer sets off the Terrorists around him. His anthrax charge went off on any death and hurt his friends, each of them then died by explosion and fired a full dynamite pack, and a whole squad went up from one bullet.
+- Toxin: the demo trap goes off after its one second warning like every other trap, and an unfinished trap shot down by the enemy stays a dud.
+- Every demo trap ignores toxin and radiation puddles. An enemy Toxin Tractor spraying nearby used to set it off with nobody there.
+- Demolitions: a Scud Launcher that is simply destroyed fires the small demolition blast, not the 500 damage suicide charge.
+- Demolitions: a Terrorist blows up when a tank runs him over, as every other general's Terrorist does. He only went off on a suicide.
+- Demolitions: tanks and infantry killed by rockets or shells die their own way, with a wreck, instead of being flung like a Terrorist and sinking into the ground with his scream.
+- Demolitions: the Stinger Site's soldiers carry the Demolitions charge like the rest of that general's infantry, and a Combat Bike's Terrorist killed by anthrax Gamma still goes off.
+- A heroic Quad Cannon can be jammed by an ECM Tank. Its health grew past the most jamming it could take.
+- A heroic Toxin Tractor sprays the stronger poison, and now dies leaving the stronger puddle too. The Toxin Tractor left the weakest one even when it was not heroic.
+- Infantry and Nuke: a deployed Nuke Cannon fires its first shell at the target you gave it. It used to swap to the nearest enemy. Its wreck leaves one radiation pool, not two stacked.
+- Inferno Cannon shells always explode where they land. Shells that came down on a low arc or over a roof vanished without a hit, and never counted toward the firestorm.
+- A Dragon with Black Napalm can flame a soldier standing right against it, like one without.
+- Artillery Barrage shells stop blowing each other up on the way down.
+- The Overlord and the Emperor keep their hull on the ground target while the Gattling turret shoots at aircraft.
+- Tank: the Emperor's Gattling turret starts Veteran like everything else the Tank general builds.
+- The generals' ECM Tanks jam only when you tell them to. They used to wander off to jam anything that came near.
+- A China supply truck weighs as much as a truck. It weighed as much as a soldier, and every blast threw it across the map.
+- China bunkers and Propaganda Centers show on the radar.
+- A TOW Humvee stops using its anti-air reach against ground targets while it is attacking.
+- A heroic pilot walks faster, not slower.
+- A tank crushed by an Overlord no longer lets a pilot out, on the three generals' Microwave Tanks and the Laser Crusader.
+- Rangers still show hits after Chemical Suits, and the support planes still show hits after Countermeasures.
+- The Toxin Rebel no longer shows AP Bullets, which does nothing for his toxin gun.
+- Sounds that were wrong or missing: the Fire Base's selection click, the Microwave Tank's engine, the Sentry Drone setting off, the construction loop on the Fire Base, Patriot and Strategy Center, the level 3 Spectre's voices and gun, the Stealth Fighter's and the MiG's low-fuel warnings, the Alpha Aurora's own voice lines, the Internet Center's selection sound, the Minigunner's anti-air gun, the Chinese carpet bomber's engine, and a voice when you order Gattling Tanks, Minigunners, Assault Troop Crawlers, Overlords or Emperors onto an aircraft.
+- Icons that were wrong or missing: Supply Lines moves from the Supply Center to the Chinook, which is what it speeds up; the Ambulance shows Advanced Training, the Spectre shows Countermeasures and its portrait, the Laser Avenger shows Composite Armor, the China Command Center shows Radar, the pilot drops two upgrades he never had, and the Toxin Stinger Site, Scud Storm, Marauder and Combat Bike and the Stealth Scud Storm show their anthrax upgrade.
+- Demolitions: the Rebel says his line when he plants a booby trap, the Combat Bike's button shows its icon, and a Worker on a bike dies in the Demolitions explosion.
+- Toxin: a Stinger missile shot down by a laser burns up with the effect the plain one has.
+- The Stealth general's Quad Cannon costs 800 like the other GLA versions. The price change had missed it.
+
## One crate, one collector
- Salvage gets collected. A wreck leaves money and a free upgrade lying on the ground, and the game asked you to spot it in the middle of the fight that made it, work out which of your units was allowed to take it, and drive that one over it by hand. Nobody does that, so most salvage on most maps timed out where it fell. Whoever is standing nearest with nothing to do goes and gets it now: a unit that can still be upgraded off it goes first, however far back it is standing, and failing that the nearest idle unit takes the cash. Dozers and harvesters are left to the job they are already earning at.
diff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.ini
index cbdba1d1c..4d19fc5e9 100644
--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini
+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini
@@ -238,6 +238,10 @@ Object Demo_GLAVehicleQuadCannon
BuildCost = 850 ; EA: 750
End
+Object Slth_GLAVehicleQuadCannon
+ BuildCost = 800 ; EA: 700
+End
+
; The Dragon had the worst share at 0.26 to 0.32 and lost to every armored unit. At 400 health it
; is 0.51: it now trades evenly with Paladins and Quad Cannons and still loses to main battle tanks.
; A longer flame (100 against 75) put it at 0.58 and beating Tunnel Defenders, which is too far.
diff --git a/GeneralsMD/Code/Data/INI/FixesReforged.ini b/GeneralsMD/Code/Data/INI/FixesReforged.ini
index feab51cc0..d3c5d03c5 100644
--- a/GeneralsMD/Code/Data/INI/FixesReforged.ini
+++ b/GeneralsMD/Code/Data/INI/FixesReforged.ini
@@ -40,7 +40,8 @@ End
; blacks out the whole base for the power plant sabotage time as well.
Object AirF_AmericaSupplyCenter
- KindOf = -FS_POWER
+ KindOf = -FS_POWER
+ UpgradeCameo1 = None
End
; The Air Force General cannot buy Composite Armor, yet the Microwave Tank shows its icon.
@@ -242,14 +243,536 @@ Object SupW_AmericaInfantryPilot
End
End
+; ==== All three USA generals =====================================================================
+
+; The plain Chinook's unload times went from 3000/1250 to 2900/1200, the old values left in its
+; comments. The generals' Chinooks kept 3000/1250, and the Laser and Superweapon supply centers
+; spawn them, so both generals' whole income ran slower.
+
+Object AirF_AmericaVehicleChinook
+ ReplaceModule ModuleTag_07
+ Behavior = ChinookAIUpdate ModuleTag_07_Fix
+ MaxBoxes = 8
+ SupplyCenterActionDelay = 2900
+ SupplyWarehouseActionDelay = 1200
+ SupplyWarehouseScanDistance = 700
+ SuppliesDepletedVoice = ChinookVoiceSuppliesDepleted
+ NumRopes = 4
+ PerRopeDelayMin = 900
+ PerRopeDelayMax = 1500
+ RopeWidth = 0.5
+ RopeColor = R:0 G:0 B:0
+ RopeWobbleLen = 10
+ RopeWobbleAmplitude = 0.25
+ RopeWobbleRate = 180
+ RopeFinalHeight = 10
+ RappelSpeed = 30
+ MinDropHeight = 40
+ UpgradedSupplyBoost = 60
+ End
+ End
+ UpgradeCameo1 = Upgrade_AmericaSupplyLines
+End
+
+Object Lazr_AmericaVehicleChinook
+ ReplaceModule ModuleTag_07
+ Behavior = ChinookAIUpdate ModuleTag_07_Fix
+ MaxBoxes = 8
+ SupplyCenterActionDelay = 2900
+ SupplyWarehouseActionDelay = 1200
+ SupplyWarehouseScanDistance = 700
+ SuppliesDepletedVoice = ChinookVoiceSuppliesDepleted
+ NumRopes = 4
+ PerRopeDelayMin = 900
+ PerRopeDelayMax = 1500
+ RopeWidth = 0.5
+ RopeColor = R:0 G:0 B:0
+ RopeWobbleLen = 10
+ RopeWobbleAmplitude = 0.25
+ RopeWobbleRate = 180
+ RopeFinalHeight = 10
+ RappelSpeed = 30
+ MinDropHeight = 40
+ UpgradedSupplyBoost = 60
+ End
+ End
+ UpgradeCameo1 = Upgrade_AmericaSupplyLines
+End
+
+Object SupW_AmericaVehicleChinook
+ ReplaceModule ModuleTag_07
+ Behavior = ChinookAIUpdate ModuleTag_07_Fix
+ MaxBoxes = 8
+ SupplyCenterActionDelay = 2900
+ SupplyWarehouseActionDelay = 1200
+ SupplyWarehouseScanDistance = 700
+ SuppliesDepletedVoice = ChinookVoiceSuppliesDepleted
+ NumRopes = 4
+ PerRopeDelayMin = 900
+ PerRopeDelayMax = 1500
+ RopeWidth = 0.5
+ RopeColor = R:0 G:0 B:0
+ RopeWobbleLen = 10
+ RopeWobbleAmplitude = 0.25
+ RopeWobbleRate = 180
+ RopeFinalHeight = 10
+ RappelSpeed = 30
+ MinDropHeight = 40
+ UpgradedSupplyBoost = 60
+ End
+ End
+ UpgradeCameo1 = Upgrade_AmericaSupplyLines
+End
+
+; Supply Lines pays through the Chinook's UpgradedSupplyBoost. Its icon sat on the Supply
+; Center, which nothing in the upgrade touches, and every Chinook had its icon line commented out.
+
+Object AmericaVehicleChinook
+ UpgradeCameo1 = Upgrade_AmericaSupplyLines
+End
+
+Object AFG_AmericaVehicleChinook
+ UpgradeCameo1 = Upgrade_AmericaSupplyLines
+End
+
+Object AmericaSupplyCenter
+ UpgradeCameo1 = None
+End
+
+Object Lazr_AmericaSupplyCenter
+ UpgradeCameo1 = None
+End
+
+Object SupW_AmericaSupplyCenter
+ UpgradeCameo1 = None
+End
+
+; A Humvee that auto-acquires while an attack order runs re-targets at its anti-air range, so a
+; TOW Humvee hit ground units from further out than its ground weapon reaches. The same generals'
+; Tomahawk already carries NotWhileAttacking.
+
+Object AirF_AmericaVehicleHumvee
+ ReplaceModule ModuleTag_03
+ Behavior = TransportAIUpdate ModuleTag_03_Fix
+ Turret
+ TurretTurnRate = 180
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY TERTIARY
+ End
+ AutoAcquireEnemiesWhenIdle = Yes NotWhileAttacking
+ MoodAttackCheckRate = 250
+ End
+ End
+End
+
+Object Lazr_AmericaVehicleHumvee
+ ReplaceModule ModuleTag_03
+ Behavior = TransportAIUpdate ModuleTag_03_Fix
+ Turret
+ TurretTurnRate = 180
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY TERTIARY
+ End
+ AutoAcquireEnemiesWhenIdle = Yes NotWhileAttacking
+ MoodAttackCheckRate = 250
+ End
+ End
+End
+
+Object SupW_AmericaVehicleHumvee
+ ReplaceModule ModuleTag_03
+ Behavior = TransportAIUpdate ModuleTag_03_Fix
+ Turret
+ TurretTurnRate = 180
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY TERTIARY
+ End
+ AutoAcquireEnemiesWhenIdle = Yes NotWhileAttacking
+ MoodAttackCheckRate = 250
+ End
+ End
+End
+
+; A heroic pilot switches to BasicHumanLocomotorPlus25, speed 25 against the 30 of his normal
+; locomotor, so the one rank a pilot keeps made him slower. His icons show Chemical Suits and
+; Advanced Training, and nothing on him reacts to either.
+
+Object AmericaInfantryPilot
+ UpgradeCameo1 = None
+ UpgradeCameo2 = None
+ RemoveModule ModuleTag_10
+End
+
+; These pilot ejections have no DeathTypes, so a tank crushed flat by an Overlord still let a
+; pilot out. The same generals' Avenger, Humvee and Tomahawk exclude CRUSHED and SPLATTED.
+
+Object AirF_AmericaTankMicrowave
+ ReplaceModule ModuleTag_17
+ Behavior = EjectPilotDie ModuleTag_17_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ GroundCreationList = OCL_EjectPilotOnGround
+ AirCreationList = OCL_EjectPilotViaParachute
+ ExemptStatus = HIJACKED
+ VeterancyLevels = ALL -REGULAR
+ End
+ End
+ SoundMoveStart = MicrowaveTankMoveStart
+ SoundMoveStartDamaged = MicrowaveTankMoveStart
+End
+
+Object Lazr_AmericaTankMicrowave
+ ReplaceModule ModuleTag_17
+ Behavior = EjectPilotDie ModuleTag_17_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ GroundCreationList = OCL_EjectPilotOnGround
+ AirCreationList = OCL_EjectPilotViaParachute
+ ExemptStatus = HIJACKED
+ VeterancyLevels = ALL -REGULAR
+ End
+ End
+ SoundMoveStart = MicrowaveTankMoveStart
+ SoundMoveStartDamaged = MicrowaveTankMoveStart
+End
+
+Object SupW_AmericaTankMicrowave
+ ReplaceModule ModuleTag_17
+ Behavior = EjectPilotDie ModuleTag_17_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ GroundCreationList = OCL_EjectPilotOnGround
+ AirCreationList = OCL_EjectPilotViaParachute
+ ExemptStatus = HIJACKED
+ VeterancyLevels = ALL -REGULAR
+ End
+ End
+ SoundMoveStart = MicrowaveTankMoveStart
+ SoundMoveStartDamaged = MicrowaveTankMoveStart
+End
+
+Object Lazr_AmericaTankCrusader
+ ReplaceModule ModuleTag_17
+ Behavior = EjectPilotDie ModuleTag_17_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ GroundCreationList = OCL_EjectPilotOnGround
+ AirCreationList = OCL_EjectPilotViaParachute
+ ExemptStatus = HIJACKED
+ VeterancyLevels = ALL -REGULAR
+ End
+ End
+End
+
+; The level 3 Spectre has no voices at all and fires its howitzer with the Crusader's cannon
+; sound. No Spectre sets a portrait although all three pictures are in the art, and none shows
+; the Countermeasures it reacts to.
+
+Object AirF_AmericaJetSpectreGunship1
+ SelectPortrait = SASpGunship_L
+ UpgradeCameo1 = Upgrade_AmericaCountermeasures
+End
+
+Object AirF_AmericaJetSpectreGunship2
+ SelectPortrait = SASpGunship2_L
+ UpgradeCameo1 = Upgrade_AmericaCountermeasures
+End
+
+Object AirF_AmericaJetSpectreGunship3
+ SelectPortrait = SASpGunship3_L
+ UpgradeCameo1 = Upgrade_AmericaCountermeasures
+ VoiceSelect = SpectreGunshipVoiceSelect
+ VoiceAttack = SpectreGunshipVoiceAttack
+ UnitSpecificSounds
+ Afterburner = SpectreGunshipAfterburnerLoop
+ HowitzerFire = SpectreHowitzerWeapon
+ End
+End
+
+Object AmericaJetSpectreGunship
+ SelectPortrait = SASpGunship2_L
+ UpgradeCameo1 = Upgrade_AmericaCountermeasures
+End
+
+; Fire Base, Patriot and Strategy Center each have two UnitSpecificSounds blocks, and the second
+; one wipes the first, so the dozer builds them with no construction loop.
+
+Object AmericaFireBase
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object AirF_AmericaFireBase
+ VoiceSelect = FireBaseSelect
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object Lazr_AmericaFireBase
+ VoiceSelect = FireBaseSelect
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object SupW_AmericaFireBase
+ VoiceSelect = FireBaseSelect
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object AmericaPatriotBattery
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object AirF_AmericaPatriotBattery
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object Lazr_AmericaPatriotBattery
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object SupW_AmericaPatriotBattery
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object AmericaStrategyCenter
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object AirF_AmericaStrategyCenter
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object Lazr_AmericaStrategyCenter
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+Object SupW_AmericaStrategyCenter
+ UnitSpecificSounds
+ UnderConstruction = UnderConstructionLoop
+ TurretMoveStart = NoSound
+ TurretMoveLoop = NoSound
+ End
+End
+
+; The Stealth Fighter warns of low fuel in the Aurora pilot's voice; StealthFighterVoiceLowFuel
+; is defined and unused.
+
+Object AmericaJetStealthFighter
+ UnitSpecificSounds
+ VoiceCreate = StealthFighterVoiceCreate
+ SoundEject = PilotSoundEject
+ VoiceEject = PilotVoiceEject
+ Afterburner = RaptorAfterburner
+ VoiceLowFuel = StealthFighterVoiceLowFuel
+ VoiceGarrison = StealthFighterVoiceMove
+ End
+End
+
+Object AirF_AmericaJetStealthFighter
+ UnitSpecificSounds
+ VoiceCreate = StealthFighterVoiceCreate
+ SoundEject = PilotSoundEject
+ VoiceEject = PilotVoiceEject
+ Afterburner = RaptorAfterburner
+ VoiceLowFuel = StealthFighterVoiceLowFuel
+ VoiceGarrison = StealthFighterVoiceMove
+ End
+End
+
+Object Lazr_AmericaJetStealthFighter
+ UnitSpecificSounds
+ VoiceCreate = StealthFighterVoiceCreate
+ SoundEject = PilotSoundEject
+ VoiceEject = PilotVoiceEject
+ Afterburner = RaptorAfterburner
+ VoiceLowFuel = StealthFighterVoiceLowFuel
+ VoiceGarrison = StealthFighterVoiceMove
+ End
+End
+
+Object SupW_AmericaJetStealthFighter
+ UnitSpecificSounds
+ VoiceCreate = StealthFighterVoiceCreate
+ SoundEject = PilotSoundEject
+ VoiceEject = PilotVoiceEject
+ Afterburner = RaptorAfterburner
+ VoiceLowFuel = StealthFighterVoiceLowFuel
+ VoiceGarrison = StealthFighterVoiceMove
+ End
+End
+
+; The generals' Sentry Drones start moving in silence; the plain one has its own sound.
+
+Object AirF_AmericaVehicleSentryDrone
+ SoundMoveStart = SentryDroneMoveStart
+End
+
+Object Lazr_AmericaVehicleSentryDrone
+ SoundMoveStart = SentryDroneMoveStart
+End
+
+Object SupW_AmericaVehicleSentryDrone
+ SoundMoveStart = SentryDroneMoveStart
+End
+
+; The Ambulance earns experience faster with Advanced Training and has no icon for it.
+
+Object AmericaVehicleMedic
+ UpgradeCameo4 = Upgrade_AmericaAdvancedTraining
+End
+
+Object AirF_AmericaVehicleMedic
+ UpgradeCameo4 = Upgrade_AmericaAdvancedTraining
+End
+
+Object Lazr_AmericaVehicleMedic
+ UpgradeCameo4 = Upgrade_AmericaAdvancedTraining
+End
+
+Object SupW_AmericaVehicleMedic
+ UpgradeCameo4 = Upgrade_AmericaAdvancedTraining
+End
+
+; After Chemical Suits a Ranger's armor set drops its DamageFX, and after Countermeasures the
+; support planes' do too, so hits on them show nothing. Burton and the Missile Defender keep
+; InfantryDamageFX in theirs.
+
+Object AmericaInfantryRanger
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = ChemSuitHumanArmor
+ DamageFX = InfantryDamageFX
+ End
+End
+
+Object AirF_AmericaInfantryRanger
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = ChemSuitHumanArmor
+ DamageFX = InfantryDamageFX
+ End
+End
+
+Object Lazr_AmericaInfantryRanger
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = ChemSuitHumanArmor
+ DamageFX = InfantryDamageFX
+ End
+End
+
+Object SupW_AmericaInfantryRanger
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = ChemSuitHumanArmor
+ DamageFX = InfantryDamageFX
+ End
+End
+
+Object AmericaJetB52
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = CountermeasuresAirplaneArmor
+ DamageFX = TankDamageFX
+ End
+End
+
+Object AmericaJetCargoPlane
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = CountermeasuresAirplaneArmor
+ DamageFX = TankDamageFX
+ End
+End
+
+Object AmericaJetB3
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = CountermeasuresAirplaneArmor
+ DamageFX = TankDamageFX
+ End
+End
+
+Object AirF_AmericaJetB3
+ ArmorSet
+ Conditions = PLAYER_UPGRADE
+ Armor = CountermeasuresAirplaneArmor
+ DamageFX = TankDamageFX
+ End
+End
+
+; The Laser General's Avenger gains 100 health from Composite Armor and shows no icon for it.
+
+Object Lazr_AmericaTankAvenger
+ UpgradeCameo5 = Upgrade_AmericaCompositeArmor
+End
+
+; The Alpha Aurora has a recorded select and attack set of its own, defined and never named.
+
+Object SupW_AmericaJetAurora
+ VoiceSelect = FuelAirAuroraVoiceSelect
+ VoiceAttack = FuelAirAuroraVoiceAttack
+End
+
; ==== Tank General ===============================================================================
; The Emperor's loudspeaker waits for Upgrade_ChinaOverlordPropagandaTower, an object upgrade
; the Emperor is never given, so it never heals faster or pulses harder after Subliminal
; Messaging. The Overlord's speaker tower waits for Subliminal Messaging.
+; Its Gattling upgrade creates the plain China turret; Tank_OCL_OverlordGattlingCannon and the
+; Veteran Tank_ChinaTankOverlordGattlingCannon it makes were written for it and never named. The
+; speaker-tower icon names an object upgrade the Emperor cannot be given, and ordering it onto an
+; aircraft said nothing.
+
Object Tank_ChinaTankEmperor
- UpgradeCameo5 = Upgrade_ChinaSubliminalMessaging
+ UpgradeCameo4 = None
+ UpgradeCameo5 = Upgrade_ChinaSubliminalMessaging
+ VoiceAttackAir = OverlordTankVoiceAttack
+ ReplaceModule ModuleTag_07
+ Behavior = ObjectCreationUpgrade ModuleTag_07_Fix
+ UpgradeObject = Tank_OCL_OverlordGattlingCannon
+ TriggeredBy = Upgrade_ChinaOverlordGattlingCannon
+ End
+ End
ReplaceModule ModulePropaganda_04
Behavior = PropagandaTowerBehavior ModulePropaganda_04_Fix
Radius = 150.0
@@ -325,7 +848,8 @@ End
; so vehicles push it aside instead of running it over.
Object Infa_ChinaInfantryMiniGunner
- UpgradeCameo3 = Upgrade_Nationalism
+ UpgradeCameo3 = Upgrade_Nationalism
+ VoiceAttackAir = RedMinigunnerVoiceAttack
AddModule
Behavior = SquishCollide ModuleTag_Squish_Fix
End
@@ -440,8 +964,9 @@ Object Nuke_ChinaTankBattleMaster
End
Object Nuke_ChinaTankOverlord
- UpgradeCameo1 = Upgrade_ChinaIsotopeStability
- UpgradeCameo2 = None
+ UpgradeCameo1 = Upgrade_ChinaIsotopeStability
+ UpgradeCameo2 = None
+ VoiceAttackAir = OverlordTankVoiceAttack
End
Object Nuke_ChinaInfantryRedguard
@@ -488,86 +1013,442 @@ Object Nuke_ChinaInfantryBlackLotus
End
End
-; ==== Toxin General ==============================================================================
-
-; The Tunnel Defender has a ground rocket and an air rocket that reload apart. Swapping between a
-; tank and a helicopter it fires the second rocket straight after the first, where every other
-; Tunnel Defender has one rocket and waits out its one second reload.
+; ==== All three China generals ===================================================================
+
+; The ECM Tank copies still auto-acquire when idle, which the plain ECM Tank had turned off: they
+; wander off to jam whatever vehicle comes near.
+
+Object Tank_ChinaTankECM
+ ReplaceModule ModuleTag_03
+ Behavior = AIUpdateInterface ModuleTag_03_Fix
+ Turret
+ ControlledWeaponSlots = PRIMARY
+ TurretTurnRate = 180
+ FiresWhileTurning = No
+ MinIdleScanInterval = 0
+ MaxIdleScanInterval = 0
+ RecenterTime = 0
+ MinIdleScanAngle = 180
+ MaxIdleScanAngle = 180
+ End
+ AutoAcquireEnemiesWhenIdle = No
+ End
+ End
+End
-Object Chem_GLAInfantryTunnelDefender
- UpgradeCameo2 = Chem_Upgrade_GLAAnthraxGamma
- WeaponSet
- Conditions = None
- Weapon = PRIMARY Chem_TunnelDefenderRocketWeaponBeta
- AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
- Weapon = SECONDARY Chem_TunnelDefenderRocketWeaponBetaAir
- PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
- ShareWeaponReloadTime = Yes
+Object Infa_ChinaTankECM
+ ReplaceModule ModuleTag_03
+ Behavior = AIUpdateInterface ModuleTag_03_Fix
+ Turret
+ ControlledWeaponSlots = PRIMARY
+ TurretTurnRate = 180
+ FiresWhileTurning = No
+ MinIdleScanInterval = 0
+ MaxIdleScanInterval = 0
+ RecenterTime = 0
+ MinIdleScanAngle = 180
+ MaxIdleScanAngle = 180
+ End
+ AutoAcquireEnemiesWhenIdle = No
+ End
End
- WeaponSet
- Conditions = PLAYER_UPGRADE
- Weapon = PRIMARY Chem_TunnelDefenderRocketWeaponGamma
- AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
- Weapon = SECONDARY Chem_TunnelDefenderRocketWeaponGammaAir
- PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
- ShareWeaponReloadTime = Yes
+End
+
+Object Nuke_ChinaTankECM
+ ReplaceModule ModuleTag_03
+ Behavior = AIUpdateInterface ModuleTag_03_Fix
+ Turret
+ ControlledWeaponSlots = PRIMARY
+ TurretTurnRate = 180
+ FiresWhileTurning = No
+ MinIdleScanInterval = 0
+ MaxIdleScanInterval = 0
+ RecenterTime = 0
+ MinIdleScanAngle = 180
+ MaxIdleScanAngle = 180
+ End
+ AutoAcquireEnemiesWhenIdle = No
+ End
End
End
-; The Rebel shows Camouflage, which the Toxin General cannot buy, and hides AP Bullets, which it
-; can and which the Rebel's rifle uses.
+; An Inferno shell dies at 1.0 above the ground or at roof height, and a killed DumbProjectile
+; never detonates, so the hit, its sound and the firestorm counter were skipped on every such
+; shot. No other artillery shell carries this module.
-Object Chem_GLAInfantryRebel
- UpgradeCameo3 = Upgrade_GLAAPBullets
+Object InfernoTankShell
+ RemoveModule ModuleTag_06
End
-Object Chem_GLAInfantryTerrorist
- UpgradeCameo2 = Upgrade_GLAAnthraxBeta
+Object InfernoTankShellUpgraded
+ RemoveModule ModuleTag_06
End
-; ==== Demolition General =========================================================================
-
-; With the Demo upgrade the Stinger Site fires the suicide charge, 500 damage over 18, when it is
-; merely destroyed; every other Demo building fires Demo_DestroyedWeapon, 50 over 60. A poison
-; death fires no charge. A suicide fires two 700 charges, one from a module that is always on and
-; one from the upgrade. It now fires one.
+; The plain flamethrower's minimum range went from 10 to 0; the Black Napalm one kept 10, so an
+; upgraded Dragon could not flame a soldier standing against it.
-Object Demo_GLAStingerSite
- UpgradeCameo2 = Demo_Upgrade_SuicideBomb
- RemoveModule ModuleTag_Death18
- ReplaceModule ModuleTag999
- Behavior = FireWeaponWhenDeadBehavior ModuleTag999_Fix
- DeathWeapon = Demo_DestroyedWeapon
- StartsActive = No
- TriggeredBy = Demo_Upgrade_SuicideBomb
- DeathTypes = ALL -SUICIDED
- End
- End
+Weapon DragonTankFlameWeaponUpgraded
+ MinimumAttackRange = 0.0
End
-Object Demo_GLATunnelNetwork
- UpgradeCameo1 = Demo_Upgrade_SuicideBomb
+; The barrage's blasts hit allies, and the next shells coming down are allies: four near misses
+; kill a 100 hp shell in the air.
+
+Weapon ArtilleryBarrageDamageWeapon
+ RadiusDamageAffects = ENEMIES NEUTRALS ALLIES NOT_SIMILAR
End
-; The Rebel's Booby Trap is unlocked by an upgrade that has no icon on the Rebel.
+; The Overlord and Emperor anti-air dummy has no aim delta, so the hull swung round to face every
+; aircraft the Gattling turret shot at.
-Object Demo_GLAInfantryRebel
- UpgradeCameo4 = Upgrade_GLAInfantryRebelBoobyTrapAttack
+Weapon GattlingBuildingGunAirDummy
+ AcceptableAimDelta = 180
End
-; ==== Stealth General ============================================================================
-
-; The Stealth General's Rebel is born hidden and drops out of hiding every time it is hit. No
-; other hidden unit does; the plain Rebel with Camouflage does not.
+; A deployed Nuke Cannon re-picked the nearest enemy while an attack order was running, where
+; every other artillery piece has NotWhileAttacking. Its death also dropped a radiation pool at
+; the start and another at the end, overlapping for two seconds.
-Object Slth_GLAInfantryRebel
- ReplaceModule ModuleTag_07
- Behavior = StealthUpdate ModuleTag_07_Fix
- StealthDelay = 2500
- StealthForbiddenConditions = ATTACKING USING_ABILITY
- MoveThresholdSpeed = 3
- InnateStealth = Yes
- OrderIdleEnemiesToAttackMeUponReveal = Yes
+Object Infa_ChinaVehicleNukeLauncher
+ ReplaceModule ModuleTag_04
+ Behavior = DeployStyleAIUpdate ModuleTag_04_Fix
+ Turret
+ TurretTurnRate = 80
+ TurretPitchRate = 80
+ FirePitch = 0
+ AllowsPitch = Yes
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY
+ NaturalTurretAngle = 0
+ InitiallyDisabled = Yes
+ End
+ AutoAcquireEnemiesWhenIdle = No NotWhileAttacking
+ PackTime = 3333
+ UnpackTime = 3333
+ TurretsFunctionOnlyWhenDeployed = Yes
+ TurretsMustCenterBeforePacking = Yes
+ ManualDeployAnimations = Yes
+ End
+ End
+ ReplaceModule ModuleTag_06
+ Behavior = SlowDeathBehavior ModuleTag_06_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ DestructionDelay = 500
+ DestructionDelayVariance = 100
+ FX = INITIAL FX_BattleMasterExplosionOneFinal
+ OCL = MIDPOINT OCL_ChinaVehicleNukeCannonDie
+ OCL = FINAL OCL_RadiationFieldSmall
+ FX = FINAL FX_ChinaVehicleNukeCannonDeathExplosion
+ End
+ End
+End
+
+Object Nuke_ChinaVehicleNukeLauncher
+ ReplaceModule ModuleTag_04
+ Behavior = DeployStyleAIUpdate ModuleTag_04_Fix
+ Turret
+ TurretTurnRate = 80
+ TurretPitchRate = 80
+ FirePitch = 0
+ AllowsPitch = Yes
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY
+ NaturalTurretAngle = 0
+ InitiallyDisabled = Yes
+ End
+ AutoAcquireEnemiesWhenIdle = No NotWhileAttacking
+ PackTime = 3333
+ UnpackTime = 3333
+ TurretsFunctionOnlyWhenDeployed = Yes
+ TurretsMustCenterBeforePacking = Yes
+ ManualDeployAnimations = Yes
+ End
+ End
+ ReplaceModule ModuleTag_06
+ Behavior = SlowDeathBehavior ModuleTag_06_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ DestructionDelay = 500
+ DestructionDelayVariance = 100
+ FX = INITIAL FX_BattleMasterExplosionOneFinal
+ OCL = MIDPOINT OCL_ChinaVehicleNukeCannonDie
+ OCL = FINAL OCL_RadiationFieldSmall
+ FX = FINAL FX_ChinaVehicleNukeCannonDeathExplosion
+ End
+ End
+End
+
+Object ChinaVehicleNukeLauncher
+ ReplaceModule ModuleTag_04
+ Behavior = DeployStyleAIUpdate ModuleTag_04_Fix
+ Turret
+ TurretTurnRate = 80
+ TurretPitchRate = 80
+ FirePitch = 0
+ AllowsPitch = Yes
+ RecenterTime = 5000
+ ControlledWeaponSlots = PRIMARY SECONDARY
+ NaturalTurretAngle = 0
+ InitiallyDisabled = Yes
+ End
+ AutoAcquireEnemiesWhenIdle = No NotWhileAttacking
+ PackTime = 3333
+ UnpackTime = 3333
+ TurretsFunctionOnlyWhenDeployed = Yes
+ TurretsMustCenterBeforePacking = Yes
+ ManualDeployAnimations = Yes
+ End
+ End
+ ReplaceModule ModuleTag_06
+ Behavior = SlowDeathBehavior ModuleTag_06_Fix
+ DeathTypes = ALL -CRUSHED -SPLATTED
+ DestructionDelay = 500
+ DestructionDelayVariance = 100
+ FX = INITIAL FX_BattleMasterExplosionOneFinal
+ OCL = MIDPOINT OCL_ChinaVehicleNukeCannonDie
+ OCL = FINAL OCL_RadiationFieldSmall
+ FX = FINAL FX_ChinaVehicleNukeCannonDeathExplosion
+ End
+ End
+End
+
+; China supply trucks weigh 5, a soldier's mass; a Troop Crawler weighs 50. Any shockwave threw
+; them across the map.
+
+Object ChinaVehicleSupplyTruck
+ ReplaceModule ModuleTag_04
+ Behavior = PhysicsBehavior ModuleTag_04_Fix
+ Mass = 50.0
+ End
+ End
+End
+
+Object Tank_ChinaVehicleSupplyTruck
+ ReplaceModule ModuleTag_04
+ Behavior = PhysicsBehavior ModuleTag_04_Fix
+ Mass = 50.0
+ End
+ End
+End
+
+Object Infa_ChinaVehicleSupplyTruck
+ ReplaceModule ModuleTag_04
+ Behavior = PhysicsBehavior ModuleTag_04_Fix
+ Mass = 50.0
+ End
+ End
+End
+
+Object Nuke_ChinaVehicleSupplyTruck
+ ReplaceModule ModuleTag_04
+ Behavior = PhysicsBehavior ModuleTag_04_Fix
+ Mass = 50.0
+ End
+ End
+End
+
+; The generals' Internet Centers kept the Command Center's selection sound the plain one dropped.
+
+Object Tank_ChinaInternetCenter
+ VoiceSelect = InternetCenterSelect
+End
+
+Object Infa_ChinaInternetCenter
+ VoiceSelect = InternetCenterSelect
+End
+
+Object Nuke_ChinaInternetCenter
+ VoiceSelect = InternetCenterSelect
+End
+
+; The Minigunner's anti-air gun plays the Gattling Tank's sound; its ground gun plays its own.
+
+Weapon Infa_MiniGunnerGunAir
+ FireSound = RedGuardMinigunnerWeapon
+End
+
+; Bunkers and Propaganda Centers have no RadarPriority, and an unset priority keeps an object off
+; the radar. Every other China building is STRUCTURE.
+
+Object ChinaBunker
+ RadarPriority = STRUCTURE
+End
+
+Object Tank_ChinaBunker
+ RadarPriority = STRUCTURE
+End
+
+Object Infa_ChinaBunker
+ RadarPriority = STRUCTURE
+End
+
+Object Nuke_ChinaBunker
+ RadarPriority = STRUCTURE
+End
+
+Object ChinaPropagandaCenter
+ RadarPriority = STRUCTURE
+End
+
+Object Tank_ChinaPropagandaCenter
+ RadarPriority = STRUCTURE
+End
+
+Object Infa_ChinaPropagandaCenter
+ RadarPriority = STRUCTURE
+End
+
+Object Nuke_ChinaPropagandaCenter
+ RadarPriority = STRUCTURE
+End
+
+; An order onto an aircraft plays VoiceAttackAir and nothing else; these anti-air units had none.
+
+Object Tank_ChinaTankGattling
+ VoiceAttackAir = GattlingTankVoiceAttack
+End
+
+Object Nuke_ChinaTankGattling
+ VoiceAttackAir = GattlingTankVoiceAttack
+End
+
+Object Infa_ChinaVehicleTroopCrawler
+ VoiceAttackAir = AssaultTroopCrawlerVoiceAttack
+End
+
+; The Command Center reacts to the Radar upgrade and shows no icon for it.
+
+Object ChinaCommandCenter
+ UpgradeCameo1 = Upgrade_ChinaRadar
+End
+
+Object Tank_ChinaCommandCenter
+ UpgradeCameo1 = Upgrade_ChinaRadar
+End
+
+Object Infa_ChinaCommandCenter
+ UpgradeCameo1 = Upgrade_ChinaRadar
+End
+
+Object Nuke_ChinaCommandCenter
+ UpgradeCameo1 = Upgrade_ChinaRadar
+End
+
+; The carpet bomber is a jet and played the C-130's propeller loop.
+
+Object ChinaJetCarpetBomber
+ SoundAmbient = B52AmbientLoop
+End
+
+; MigVoiceLowFuel is recorded and defined and no MiG names it. A UnitSpecificSounds block
+; replaces the whole list, so the other three lines are repeated.
+
+Object Tank_ChinaJetMIG
+ UnitSpecificSounds
+ VoiceCreate = MigVoiceCreate
+ Afterburner = RaptorAfterburner
+ VoiceGarrison = MigVoiceMove
+ VoiceLowFuel = MigVoiceLowFuel
+ End
+End
+
+Object Infa_ChinaJetMIG
+ UnitSpecificSounds
+ VoiceCreate = MigVoiceCreate
+ Afterburner = RaptorAfterburner
+ VoiceGarrison = MigVoiceMove
+ VoiceLowFuel = MigVoiceLowFuel
+ End
+End
+
+Object Nuke_ChinaJetMIG
+ UnitSpecificSounds
+ VoiceCreate = MigVoiceCreate
+ Afterburner = RaptorAfterburner
+ VoiceGarrison = MigVoiceMove
+ VoiceLowFuel = MigVoiceLowFuel
+ End
+End
+
+; ==== Toxin General ==============================================================================
+
+; The Tunnel Defender has a ground rocket and an air rocket that reload apart. Swapping between a
+; tank and a helicopter it fires the second rocket straight after the first, where every other
+; Tunnel Defender has one rocket and waits out its one second reload.
+
+Object Chem_GLAInfantryTunnelDefender
+ UpgradeCameo2 = Chem_Upgrade_GLAAnthraxGamma
+ WeaponSet
+ Conditions = None
+ Weapon = PRIMARY Chem_TunnelDefenderRocketWeaponBeta
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY Chem_TunnelDefenderRocketWeaponBetaAir
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+ WeaponSet
+ Conditions = PLAYER_UPGRADE
+ Weapon = PRIMARY Chem_TunnelDefenderRocketWeaponGamma
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY Chem_TunnelDefenderRocketWeaponGammaAir
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+End
+
+; The Rebel shows Camouflage, which the Toxin General cannot buy. AP Bullets stays hidden: the
+; Rebel's toxin guns carry no PLAYER_UPGRADE bonus, so the upgrade does nothing for them.
+
+Object Chem_GLAInfantryRebel
+ UpgradeCameo3 = None
+End
+
+Object Chem_GLAInfantryTerrorist
+ UpgradeCameo2 = Upgrade_GLAAnthraxBeta
+End
+
+; ==== Demolition General =========================================================================
+
+; With the Demo upgrade the Stinger Site fires the suicide charge, 500 damage over 18, when it is
+; merely destroyed; every other Demo building fires Demo_DestroyedWeapon, 50 over 60. A poison
+; death fires no charge. A suicide fires two 700 charges, one from a module that is always on and
+; one from the upgrade. It now fires one.
+
+Object Demo_GLAStingerSite
+ UpgradeCameo2 = Demo_Upgrade_SuicideBomb
+ RemoveModule ModuleTag_Death18
+ ReplaceModule ModuleTag999
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag999_Fix
+ DeathWeapon = Demo_DestroyedWeapon
+ StartsActive = No
+ TriggeredBy = Demo_Upgrade_SuicideBomb
+ DeathTypes = ALL -SUICIDED
+ End
+ End
+End
+
+Object Demo_GLATunnelNetwork
+ UpgradeCameo1 = Demo_Upgrade_SuicideBomb
+End
+
+; The Rebel's Booby Trap is unlocked by an upgrade that has no icon on the Rebel.
+
+Object Demo_GLAInfantryRebel
+ UpgradeCameo4 = Upgrade_GLAInfantryRebelBoobyTrapAttack
+End
+
+; ==== Stealth General ============================================================================
+
+; The Stealth General's Rebel is born hidden and drops out of hiding every time it is hit. No
+; other hidden unit does; the plain Rebel with Camouflage does not.
+
+Object Slth_GLAInfantryRebel
+ ReplaceModule ModuleTag_07
+ Behavior = StealthUpdate ModuleTag_07_Fix
+ StealthDelay = 2500
+ StealthForbiddenConditions = ATTACKING USING_ABILITY
+ MoveThresholdSpeed = 3
+ InnateStealth = Yes
+ OrderIdleEnemiesToAttackMeUponReveal = Yes
End
End
End
@@ -593,3 +1474,642 @@ End
Object Slth_FakeGLAArmsDealer
UpgradeCameo2 = Upgrade_GLACamoNetting
End
+
+; ==== All three GLA generals =====================================================================
+
+; The Toxin Terrorist's Beta charge, 200 EXPLODED damage to friend and foe, has no DeathTypes, so
+; a Terrorist shot dead blew up the Terrorists beside him, each of whom died EXPLODED and fired a
+; full dynamite pack. The Gamma charge next to it lists the deaths a Terrorist explodes on.
+
+Object Chem_GLAInfantryTerrorist
+ ReplaceModule ModuleTag_92
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_92_Fix
+ DeathWeapon = Chem_SuicideWeaponBeta
+ StartsActive = No
+ TriggeredBy = Upgrade_GLAAnthraxBeta
+ RequiresAllTriggers = Yes
+ ConflictsWith = Chem_Upgrade_GLAAnthraxGamma
+ DeathTypes = NONE +SUICIDED +CRUSHED +SPLATTED +LASERED +BURNED +EXPLODED
+ End
+ End
+End
+
+Object Chem_GLAVehicleCombatBike
+ ReplaceModule ModuleTag_92
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_92_Fix
+ RequiredStatus = STATUS_RIDER5
+ DeathWeapon = Chem_SuicideWeaponBeta
+ StartsActive = No
+ TriggeredBy = Upgrade_GLAAnthraxBeta
+ RequiresAllTriggers = Yes
+ ConflictsWith = Chem_Upgrade_GLAAnthraxGamma
+ DeathTypes = NONE +SUICIDED +CRUSHED +SPLATTED +LASERED +BURNED +EXPLODED
+ End
+ End
+ UpgradeCameo2 = Chem_Upgrade_GLAAnthraxGamma
+End
+
+; The Demolition Scud Launcher fires the 500 damage suicide charge on any death. Every other
+; Demo vehicle fires it on a suicide only and Demo_DestroyedWeapon otherwise.
+
+Object Demo_GLAVehicleScudLauncher
+ ReplaceModule ModuleTag_George
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_George_Fix
+ DeathWeapon = Demo_SuicideDynamitePackPlusFire
+ StartsActive = No
+ TriggeredBy = Demo_Upgrade_SuicideBomb
+ DeathTypes = NONE +SUICIDED
+ End
+ End
+ AddModule
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag999_Fix
+ DeathWeapon = Demo_DestroyedWeapon
+ StartsActive = No
+ TriggeredBy = Demo_Upgrade_SuicideBomb
+ DeathTypes = ALL -SUICIDED
+ End
+ End
+End
+
+; The Demolition vehicles' suicide death also takes EXPLODED, so a tank killed by a rocket could
+; be flung like a Terrorist with his scream and sink without a wreck. Its infantry and barracks
+; play the Terrorist blast for the same reason, over their own explosive death.
+
+Object Demo_GLATankMarauder
+ ReplaceModule ModuleTag_Death_22
+ Behavior = SlowDeathBehavior ModuleTag_Death_22_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLATankScorpion
+ ReplaceModule ModuleTag_Death17
+ Behavior = SlowDeathBehavior ModuleTag_Death17_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleQuadCannon
+ ReplaceModule ModuleTag_Death_14
+ Behavior = SlowDeathBehavior ModuleTag_Death_14_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleRadarVan
+ ReplaceModule ModuleTag_Death_20
+ Behavior = SlowDeathBehavior ModuleTag_Death_20_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleRocketBuggy
+ ReplaceModule ModuleTag_Death17
+ Behavior = SlowDeathBehavior ModuleTag_Death17_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleTechnicalChassisOne
+ ReplaceModule ModuleTag_Death_18
+ Behavior = SlowDeathBehavior ModuleTag_Death_18_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleTechnicalChassisTwo
+ ReplaceModule ModuleTag_Death_18
+ Behavior = SlowDeathBehavior ModuleTag_Death_18_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleTechnicalChassisThree
+ ReplaceModule ModuleTag_Death_18
+ Behavior = SlowDeathBehavior ModuleTag_Death_18_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAVehicleToxinTruck
+ ReplaceModule ModuleTag_Death_14
+ Behavior = SlowDeathBehavior ModuleTag_Death_14_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAInfantryRebel
+ ReplaceModule ModuleTag_Death17
+ Behavior = SlowDeathBehavior ModuleTag_Death17_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+ ReplaceModule ModuleTag_20
+ Behavior = SpecialAbility ModuleTag_20_Fix
+ SpecialPowerTemplate = SpecialAbilityBoobyTrap
+ UpdateModuleStartsAttack = Yes
+ StartsPaused = Yes
+ InitiateSound = RebelVoiceBoobyTrapInstall
+ End
+ End
+End
+
+Object Demo_GLAInfantryWorker
+ ReplaceModule ModuleTag_Death_17
+ Behavior = SlowDeathBehavior ModuleTag_Death_17_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAInfantryTunnelDefender
+ ReplaceModule ModuleTag_Death13
+ Behavior = SlowDeathBehavior ModuleTag_Death13_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLAInfantryJarmenKell
+ ReplaceModule ModuleTag_Death15
+ Behavior = SlowDeathBehavior ModuleTag_Death15_Fix
+ DeathTypes = NONE +SUICIDED
+ SinkDelay = 3000
+ SinkRate = 0.5
+ DestructionDelay = 8000
+ FX = INITIAL FX_TerroristExplode
+ FlingForce = 8
+ FlingForceVariance = 3
+ FlingPitch = 60
+ FlingPitchVariance = 10
+ End
+ End
+End
+
+Object Demo_GLABarracks
+ RemoveModule ModuleTag_Death17
+End
+
+; The Demolition Terrorist blows up only on a suicide. Every other GLA Terrorist also blows up
+; when crushed, burned, lasered or blown up, which is what takes the tank that runs him over.
+
+Object Demo_GLAInfantryTerrorist
+ ReplaceModule ModuleTag_Death08
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_Death08_Fix
+ DeathWeapon = Demo_SuicideDynamitePack
+ StartsActive = Yes
+ DeathTypes = NONE +SUICIDED +CRUSHED +SPLATTED +LASERED +BURNED +EXPLODED
+ End
+ End
+End
+
+; The Demolition Combat Bike: a Terrorist rider killed by Gamma anthrax fell between the two
+; charge modules and fired neither, the Worker rider's death used the plain buggy explosion
+; where every other rider uses the Demo one, and the button showed the large portrait.
+
+Object Demo_GLAVehicleCombatBike
+ ButtonImage = SUComBike
+ ReplaceModule ModuleTag996
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag996_Fix
+ RequiredStatus = STATUS_RIDER5
+ DeathWeapon = Demo_TerroristOnCombatBikeSuicideDynamitePack
+ StartsActive = No
+ TriggeredBy = Demo_Upgrade_SuicideBomb
+ RequiresAllTriggers = Yes
+ DeathTypes = NONE +SUICIDED +POISONED +POISONED_BETA +POISONED_GAMMA
+ End
+ End
+ ReplaceModule DeathTag_05
+ Behavior = SlowDeathBehavior DeathTag_05_Fix
+ RequiredStatus = STATUS_RIDER1
+ DeathTypes = ALL -CRUSHED -SPLATTED -TOPPLED
+ DestructionDelay = 0
+ FX = INITIAL FX_DEMOBuggyNewDeathExplosion
+ OCL = INITIAL OCL_WorkerFlyingOffBikeDeathStart
+ OCL = FINAL OCL_CombatBikeAirDeathStart
+ End
+ End
+End
+
+; The Demolition Stinger Site spawns the plain GLA soldier. Demo_GLAInfantryStingerSoldier, with
+; the Demo death charges, was written for it and nothing names it.
+
+Object Demo_GLAStingerSite
+ ReplaceModule ModuleTag_06
+ Behavior = SpawnBehavior ModuleTag_06_Fix
+ SpawnNumber = 3
+ SpawnReplaceDelay = 30000
+ SpawnTemplateName = Demo_GLAInfantryStingerSoldier
+ CanReclaimOrphans = No
+ SpawnedRequireSpawner = Yes
+ End
+ End
+End
+
+; A Quad Cannon's subdual cap is 440 and a heroic one has 450 health, so an ECM Tank could never
+; disable it.
+
+Object GLAVehicleQuadCannon
+ ReplaceModule ModuleTag_02
+ Body = ActiveBody ModuleTag_02_Fix
+ MaxHealth = 300.0
+ InitialHealth = 300.0
+ SubdualDamageCap = 600
+ SubdualDamageHealRate = 500
+ SubdualDamageHealAmount = 50
+ End
+ End
+End
+
+Object Chem_GLAVehicleQuadCannon
+ ReplaceModule ModuleTag_02
+ Body = ActiveBody ModuleTag_02_Fix
+ MaxHealth = 300.0
+ InitialHealth = 300.0
+ SubdualDamageCap = 600
+ SubdualDamageHealRate = 500
+ SubdualDamageHealAmount = 50
+ End
+ End
+End
+
+Object Demo_GLAVehicleQuadCannon
+ ReplaceModule ModuleTag_02
+ Body = ActiveBody ModuleTag_02_Fix
+ MaxHealth = 300.0
+ InitialHealth = 300.0
+ SubdualDamageCap = 600
+ SubdualDamageHealRate = 500
+ SubdualDamageHealAmount = 50
+ End
+ End
+End
+
+Object Slth_GLAVehicleQuadCannon
+ ReplaceModule ModuleTag_02
+ Body = ActiveBody ModuleTag_02_Fix
+ MaxHealth = 300.0
+ InitialHealth = 300.0
+ SubdualDamageCap = 600
+ SubdualDamageHealRate = 500
+ SubdualDamageHealAmount = 50
+ End
+ End
+End
+
+; A Stinger soldier's ground and air rockets reload on separate clocks, so switching targets fired
+; a second rocket straight away, the same fault as the Toxin Tunnel Defender.
+
+Object GLAInfantryStingerSoldier
+ WeaponSet
+ Conditions = None
+ Weapon = PRIMARY StingerMissileWeapon
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY StingerMissileWeaponAir
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+End
+
+Object Slth_GLAInfantryStingerSoldier
+ WeaponSet
+ Conditions = None
+ Weapon = PRIMARY StingerMissileWeapon
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY StingerMissileWeaponAir
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+End
+
+Object Demo_GLAInfantryStingerSoldier
+ WeaponSet
+ Conditions = None
+ Weapon = PRIMARY StingerMissileWeapon
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY StingerMissileWeaponAir
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ Weapon = TERTIARY TerroristSuicideNotARealWeapon
+ AutoChooseSources = TERTIARY NONE
+ ShareWeaponReloadTime = Yes
+ End
+End
+
+Object Chem_GLAInfantryStingerSoldier
+ WeaponSet
+ Conditions = None
+ Weapon = PRIMARY Chem_StingerMissileWeaponBeta
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY Chem_StingerMissileWeaponAirBeta
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+ WeaponSet
+ Conditions = PLAYER_UPGRADE
+ Weapon = PRIMARY Chem_StingerMissileWeaponGamma
+ AutoChooseSources = PRIMARY FROM_PLAYER FROM_AI FROM_SCRIPT
+ Weapon = SECONDARY Chem_StingerMissileWeaponAirGamma
+ PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
+ ShareWeaponReloadTime = Yes
+ End
+End
+
+; The Toxin demo trap fires its charge from FireWeaponWhenDead modules, which go off at the moment
+; of death with no construction exemption: before the one second warning, and from a scaffold the
+; enemy shot down. The charge goes back into the slow death, as on the plain trap, with a status
+; bit choosing Gamma.
+
+Object Chem_GLADemoTrap
+ RemoveModule ModuleTag_Chem01
+ RemoveModule ModuleTag_Chem02
+ ReplaceModule ModuleTag_05
+ Behavior = SlowDeathBehavior ModuleTag_05_Fix
+ ExemptStatus = UNDER_CONSTRUCTION STATUS_RIDER1
+ DestructionDelay = 1000
+ FX = INITIAL FX_GLADemoTrapWarning
+ Weapon = FINAL Chem_DemoTrapDetonationWeaponBeta
+ End
+ End
+ AddModule
+ Behavior = SlowDeathBehavior ModuleTag_05Gamma_Fix
+ ExemptStatus = UNDER_CONSTRUCTION
+ RequiredStatus = STATUS_RIDER1
+ DestructionDelay = 1000
+ FX = INITIAL FX_GLADemoTrapWarning
+ Weapon = FINAL Chem_DemoTrapDetonationWeaponGamma
+ End
+ End
+ AddModule
+ Behavior = StatusBitsUpgrade ModuleTag_05Upgrade_Fix
+ TriggeredBy = Chem_Upgrade_GLAAnthraxGamma
+ StatusToSet = STATUS_RIDER1
+ End
+ End
+ ReplaceModule ModuleTag_04
+ Behavior = DemoTrapUpdate ModuleTag_04_Fix
+ DefaultProximityMode = Yes
+ DetonationWeaponSlot = PRIMARY
+ ProximityModeWeaponSlot = SECONDARY
+ ManualModeWeaponSlot = TERTIARY
+ TriggerDetonationRange = 40.0
+ IgnoreTargetTypes = PROJECTILE UNATTACKABLE CLEANUP_HAZARD
+ AutoDetonationWithFriendsInvolved = Yes
+ DetonateWhenKilled = Yes
+ End
+ End
+End
+
+; An enemy toxin or radiation puddle within 40 of a demo trap set it off with nobody there.
+
+Object GLADemoTrap
+ ReplaceModule ModuleTag_04
+ Behavior = DemoTrapUpdate ModuleTag_04_Fix
+ DefaultProximityMode = Yes
+ DetonationWeaponSlot = PRIMARY
+ ProximityModeWeaponSlot = SECONDARY
+ ManualModeWeaponSlot = TERTIARY
+ TriggerDetonationRange = 40.0
+ IgnoreTargetTypes = PROJECTILE UNATTACKABLE CLEANUP_HAZARD
+ AutoDetonationWithFriendsInvolved = Yes
+ DetonateWhenKilled = Yes
+ End
+ End
+End
+
+Object Demo_GLADemoTrap
+ ReplaceModule ModuleTag_04
+ Behavior = DemoTrapUpdate ModuleTag_04_Fix
+ DefaultProximityMode = Yes
+ DetonationWeaponSlot = PRIMARY
+ ProximityModeWeaponSlot = SECONDARY
+ ManualModeWeaponSlot = TERTIARY
+ TriggerDetonationRange = 40.0
+ IgnoreTargetTypes = PROJECTILE UNATTACKABLE CLEANUP_HAZARD
+ AutoDetonationWithFriendsInvolved = Yes
+ DetonateWhenKilled = Yes
+ End
+ End
+End
+
+Object Slth_GLADemoTrap
+ ReplaceModule ModuleTag_04
+ Behavior = DemoTrapUpdate ModuleTag_04_Fix
+ DefaultProximityMode = Yes
+ DetonationWeaponSlot = PRIMARY
+ ProximityModeWeaponSlot = SECONDARY
+ ManualModeWeaponSlot = TERTIARY
+ TriggerDetonationRange = 40.0
+ IgnoreTargetTypes = PROJECTILE UNATTACKABLE CLEANUP_HAZARD
+ AutoDetonationWithFriendsInvolved = Yes
+ DetonateWhenKilled = Yes
+ End
+ End
+End
+
+; The Toxin Tractor sprays Beta from the start and died leaving the weak Alpha puddle. On every
+; Tractor a heroic one sprays the upgraded poison, as its weapon modules say, and died leaving
+; the lower one.
+
+Object Chem_GLAVehicleToxinTruck
+ ReplaceModule ModuleTag_15
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_15_Fix
+ DeathWeapon = ToxinShellWeaponUpgraded
+ StartsActive = Yes
+ ConflictsWith = Chem_Upgrade_GLAAnthraxGamma Upgrade_Veterancy_HEROIC
+ End
+ End
+ ReplaceModule ModuleTag_16
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_16_Fix
+ DeathWeapon = Chem_ToxinShellWeaponGamma
+ StartsActive = No
+ TriggeredBy = Chem_Upgrade_GLAAnthraxGamma Upgrade_Veterancy_HEROIC
+ End
+ End
+End
+
+Object GLAVehicleToxinTruck
+ ReplaceModule ModuleTag_15
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_15_Fix
+ DeathWeapon = ToxinShellWeapon
+ StartsActive = Yes
+ ConflictsWith = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+ ReplaceModule ModuleTag_16
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_16_Fix
+ DeathWeapon = ToxinShellWeaponUpgraded
+ StartsActive = No
+ TriggeredBy = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+End
+
+Object Demo_GLAVehicleToxinTruck
+ ReplaceModule ModuleTag_15
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_15_Fix
+ DeathWeapon = ToxinShellWeapon
+ StartsActive = Yes
+ ConflictsWith = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+ ReplaceModule ModuleTag_16
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_16_Fix
+ DeathWeapon = ToxinShellWeaponUpgraded
+ StartsActive = No
+ TriggeredBy = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+End
+
+Object Slth_GLAVehicleToxinTruck
+ ReplaceModule ModuleTag_15
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_15_Fix
+ DeathWeapon = ToxinShellWeapon
+ StartsActive = Yes
+ ConflictsWith = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+ ReplaceModule ModuleTag_16
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_16_Fix
+ DeathWeapon = ToxinShellWeaponUpgraded
+ StartsActive = No
+ TriggeredBy = Upgrade_GLAAnthraxBeta Upgrade_Veterancy_HEROIC
+ End
+ End
+End
+
+; The Toxin Stinger missile lost the disintegrate effect a laser kill plays on the plain one.
+
+Object Chem_StingerMissile
+ ReplaceModule DeathModuleTag_02
+ Behavior = InstantDeathBehavior DeathModuleTag_02_Fix
+ DeathTypes = NONE +LASERED
+ FX = FX_GenericMissileDisintegrate
+ OCL = OCL_GenericMissileDisintegrate
+ End
+ End
+End
+
+; Icons for upgrades these units react to: Gamma on the Toxin Stinger Site, Scud Storm and
+; Marauder, Beta on the Stealth Scud Storm, which the plain storm shows.
+
+Object Chem_GLAStingerSite
+ UpgradeCameo2 = Chem_Upgrade_GLAAnthraxGamma
+End
+
+Object Chem_GLAScudStorm
+ UpgradeCameo1 = Chem_Upgrade_GLAAnthraxGamma
+End
+
+Object Chem_GLATankMarauder
+ UpgradeCameo3 = Chem_Upgrade_GLAAnthraxGamma
+End
+
+Object Slth_GLAScudStorm
+ UpgradeCameo2 = Upgrade_GLAAnthraxBeta
+End