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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameengine): third pass over the generals' powers, 25 skill bugs
Olcay Seygan2d9f194a43bc
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d83b0573f..2b05af52d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -498,6 +498,24 @@ A second pass went through the same nine generals and the base units they build,- A Saboteur thrown off a dying Combat Bike is thrown, instead of vanishing.- The Alpha Aurora's fuel-air blast goes off where the bomb lands, not in the air above the first roof it passes, and the bomb no longer hangs in the air for a frame before landing.+A third pass went through the generals' powers, promotions and unit abilities.++- Satellite Hack I shows every enemy Command Center, including the ones built after you researched it. It only ever showed the ones standing at that moment. CIA Intelligence and Satellite Hack II now also catch what goes up while they are running.+- Frenzy no longer scouts. Clicked into the fog, it opened a 250-wide window on the enemy base for 30 seconds.+- Tank: Battlemaster Paradrop puts the tanks on the marker. The plane opened its doors 300 out, so one tank landed well short and a pair landed on top of each other.+- China, Infantry and Nuke: the computer fires the carpet bomb it pays for. It bought the Tank general's bomber, which its own Command Center could not launch, so its fifth promotion point did nothing. A Nuke player holding a captured China Command Center no longer loses the Carpet Bomb shortcut either.+- Infantry: the computer on Normal uses the Minigunner Paradrop it spends three promotion points on. Only Hard ever called it in.+- Stealth: the Saboteur disables a China Internet Center and destroys a GLA fake building, like every other Saboteur. He used to walk up to them and do nothing. He also stops ranking up from salvage crates, which no other Saboteur does.+- Demolitions: a Combat Bike keeps its buttons after the Demolitions upgrade. The upgrade took Jarmen Kell's pilot snipe away and added a suicide button that stayed grey all game.+- Demolitions: the Rebel Ambush promotion says 4, 6 and 10 rebels, which is what it brings, not 4, 8 and 16.+- Toxin: the Rebel Ambush promotion describes the toxin rebels it calls in.+- Tooltips that named the wrong countdown: the Air Force Spectre Gunship (3:00, said 4:00), the Air Force Carpet Bomb (4:00, said China's 2:30), the Leaflet Drop (5:00, said 6:00), the Stealth GPS Scrambler (3:00, said 4:00). The Spectre's third promotion keeps the gunship up 20 seconds, and now says so.+- Air Force, Laser and Superweapon: the Pathfinder and Stealth Fighter promotions stop asking for a plain American Barracks or Airfield these generals never build.+- Voices and sounds that were recorded and never played: EVA's lines for the MOAB, the Sentry Drone Gun and Neutron Shells, the Super Hacker's own building-hack line, the Hacker's line when you arm the hack, the Artillery Barrage's own explosion (it borrowed the carpet bomb's, two at a time), and Jarmen Kell's charge-planting sound, where he said his attack line twice.+- The Superweapon general's Particle Cannon glows and dies in the pink of its beam, not in the plain cannon's blue. The laser beams it throws when destroyed are still blue; there is no pink model for them.+- The Particle Uplink's dish holds still while the building goes up instead of cycling its deploy animation.+- A Sneak Attack tunnel coming out of the ground shows its own portrait, and the Demolitions Bomb Truck stops showing the Demolitions upgrade icon.+## 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/CommandSetReforged.ini b/GeneralsMD/Code/Data/INI/CommandSetReforged.iniindex 61693b013..006f1ffab 100644--- a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini+++ b/GeneralsMD/Code/Data/INI/CommandSetReforged.ini@@ -112,3 +112,258 @@ CommandSet Infa_ChinaTroopCrawlerCommandSet13 = Command_Guard14 = Command_StopEnd++; ==== Powers and abilities ========================================================================++; The American generals bought the Pathfinder and the Stealth Fighter through the plain USA+; buttons, and a purchase tooltip reads its "Requires" line from the button's unit: the plain+; Barracks or Airfield, which these generals never build. Their own buttons name their own units.++CommandButton AirF_Command_PurchaseSciencePathfinder+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_Pathfinder+ Object = AirF_AmericaInfantryPathfinder+ ButtonImage = SAPathfinder1+ ButtonBorderType = UPGRADE+End++CommandButton Lazr_Command_PurchaseSciencePathfinder+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_Pathfinder+ Object = Lazr_AmericaInfantryPathfinder+ ButtonImage = SAPathfinder1+ ButtonBorderType = UPGRADE+End++CommandButton SupW_Command_PurchaseSciencePathfinder+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_Pathfinder+ Object = SupW_AmericaInfantryPathfinder+ ButtonImage = SAPathfinder1+ ButtonBorderType = UPGRADE+End++CommandButton Lazr_Command_PurchaseScienceStealthFighter+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_StealthFighter+ Object = Lazr_AmericaJetStealthFighter+ ButtonImage = SAStealth+ ButtonBorderType = UPGRADE+End++CommandButton SupW_Command_PurchaseScienceStealthFighter+ Command = PURCHASE_SCIENCE+ Science = SCIENCE_StealthFighter+ Object = SupW_AmericaJetStealthFighter+ ButtonImage = SAStealth+ ButtonBorderType = UPGRADE+End++CommandSet AirF_SCIENCE_AMERICA_CommandSetRank3+ 1 = AirF_Command_PurchaseSciencePathfinder+ 4 = Command_PurchaseScienceParadrop1+ 5 = Command_PurchaseScienceParadrop2+ 6 = Command_PurchaseScienceParadrop3+ 8 = Command_PurchaseScienceSpectreGunship1+ 9 = Command_PurchaseScienceSpectreGunship2+ 10 = Early_Command_PurchaseScienceEmergencyRepair2+ 11 = Early_Command_PurchaseScienceEmergencyRepair3+ 13 = AirF_Command_PurchaseScienceA10ThunderboltMissileStrike1+ 14 = AirF_Command_PurchaseScienceA10ThunderboltMissileStrike2+ 15 = AirF_Command_PurchaseScienceA10ThunderboltMissileStrike3+End++CommandSet Lazr_SCIENCE_AMERICA_CommandSetRank1+ 1 = Command_PurchaseScienceSpyDrone+ 2 = Lazr_Command_PurchaseScienceStealthFighter+End++CommandSet Lazr_SCIENCE_AMERICA_CommandSetRank3+ 1 = Lazr_Command_PurchaseSciencePathfinder+ 4 = Command_PurchaseScienceParadrop1+ 5 = Command_PurchaseScienceParadrop2+ 6 = Command_PurchaseScienceParadrop3+ 7 = Command_PurchaseScienceA10ThunderboltMissileStrike1+ 8 = Command_PurchaseScienceA10ThunderboltMissileStrike2+ 9 = Command_PurchaseScienceA10ThunderboltMissileStrike3+ 10 = Command_PurchaseScienceEmergencyRepair1+ 11 = Command_PurchaseScienceEmergencyRepair2+ 12 = Command_PurchaseScienceEmergencyRepair3+End++CommandSet SupW_SCIENCE_AMERICA_CommandSetRank1+ 1 = Command_PurchaseScienceSpyDrone+ 2 = SupW_Command_PurchaseScienceStealthFighter+End++CommandSet SupW_SCIENCE_AMERICA_CommandSetRank3+ 1 = SupW_Command_PurchaseSciencePathfinder+ 3 = Early_Command_PurchaseScienceLeafletDrop+ 4 = Command_PurchaseScienceParadrop1+ 5 = Command_PurchaseScienceParadrop2+ 6 = Command_PurchaseScienceParadrop3+ 7 = Command_PurchaseScienceA10ThunderboltMissileStrike1+ 8 = Command_PurchaseScienceA10ThunderboltMissileStrike2+ 9 = Command_PurchaseScienceA10ThunderboltMissileStrike3+ 10 = Command_PurchaseScienceEmergencyRepair1+ 11 = Command_PurchaseScienceEmergencyRepair2+ 12 = Command_PurchaseScienceEmergencyRepair3+ 14 = Command_PurchaseScienceSpectreGunship1+ 15 = Command_PurchaseScienceSpectreGunship2+End++; Wrong countdowns. The Air Force Spectre Gunship recharges in 3:00 and its buttons said 4:00; the+; Superweapon General fires the same one. The Air Force Carpet Bomb recharges in 4:00 and its+; buttons showed China's text, 2:30. The Stealth GPS Scrambler recharges in 3:00 and said 4:00.++CommandButton AirF_Command_SpectreGunship+ DescriptLabel = CONTROLBAR:AirF_TooltipSpectreGunship+End++CommandButton AirF_Command_SpectreGunshipFromShortcut+ DescriptLabel = CONTROLBAR:AirF_TooltipSpectreGunship+End++CommandButton AirF_Command_CarpetBomb+ DescriptLabel = CONTROLBAR:AirF_TooltipCarpetBomb+End++CommandButton AirF_Command_CarpetBombFromShortcut+ DescriptLabel = CONTROLBAR:AirF_TooltipCarpetBomb+End++CommandButton Slth_Command_GPSScrambler+ DescriptLabel = CONTROLBAR:Slth_TooltipFireGPSScrambler+End++CommandButton Slth_Command_GPSScramblerFromShortcut+ DescriptLabel = CONTROLBAR:Slth_TooltipFireGPSScrambler+End++; Arming the Hacker's building hack said nothing, where every other targeted China ability has a+; voice line. HackerVoiceModeHack is recorded and was never named. The Super Hacker shares it.++CommandButton Command_ChinaInfantryHackerDisableBuilding+ UnitSpecificSound = HackerVoiceModeHack+End++; The Toxin General's ambush: his own sciences, with the toxin rebels in their description, and+; his own power (FixesReforged.ini gives his Command Center the module).++CommandButton Chem_Command_PurchaseScienceRebelAmbush1+ Science = Chem_SCIENCE_RebelAmbush1+End++CommandButton Chem_Command_PurchaseScienceRebelAmbush2+ Science = Chem_SCIENCE_RebelAmbush2+End++CommandButton Chem_Command_PurchaseScienceRebelAmbush3+ Science = Chem_SCIENCE_RebelAmbush3+End++CommandButton Chem_Command_Ambush+ SpecialPower = Chem_SuperweaponRebelAmbush+ Science = Chem_SCIENCE_RebelAmbush1 Chem_SCIENCE_RebelAmbush2 Chem_SCIENCE_RebelAmbush3+End++CommandButton Chem_Command_AmbushFromShortcut+ SpecialPower = Chem_SuperweaponRebelAmbush+ Science = Chem_SCIENCE_RebelAmbush1 Chem_SCIENCE_RebelAmbush2 Chem_SCIENCE_RebelAmbush3+End++; The Demolitions General's ambush brings 4, 6 and 10 rebels and was bought through the plain GLA+; science, which promises 4, 8 and 16. He gets his own sciences (ScienceReforged.ini), power+; (SpecialPowerReforged.ini) and buttons; his Command Center, shortcut bar and promotion sets are+; EA's with those buttons in place of the plain ones.++CommandButton Demo_Command_PurchaseScienceRebelAmbush1+ Command = PURCHASE_SCIENCE+ Science = Demo_SCIENCE_RebelAmbush1+ ButtonImage = SSGLAAmbush+ ButtonBorderType = UPGRADE+End++CommandButton Demo_Command_PurchaseScienceRebelAmbush2+ Command = PURCHASE_SCIENCE+ Science = Demo_SCIENCE_RebelAmbush2+ ButtonImage = SSGLAAmbush2+ ButtonBorderType = UPGRADE+End++CommandButton Demo_Command_PurchaseScienceRebelAmbush3+ Command = PURCHASE_SCIENCE+ Science = Demo_SCIENCE_RebelAmbush3+ ButtonImage = SSGLAAmbush3+ ButtonBorderType = UPGRADE+End++CommandButton Demo_Command_Ambush+ Command = SPECIAL_POWER+ SpecialPower = Demo_SuperweaponRebelAmbush+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND+ Science = Demo_SCIENCE_RebelAmbush1 Demo_SCIENCE_RebelAmbush2 Demo_SCIENCE_RebelAmbush3+ TextLabel = CONTROLBAR:Ambush+ ButtonImage = SSGLAAmbush+ ButtonBorderType = ACTION+ DescriptLabel = CONTROLBAR:TooltipFireRebelAmbush+ RadiusCursorType = AMBUSH+ InvalidCursorName = GenericInvalid+End++CommandButton Demo_Command_AmbushFromShortcut+ Command = SPECIAL_POWER_FROM_SHORTCUT+ SpecialPower = Demo_SuperweaponRebelAmbush+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND+ Science = Demo_SCIENCE_RebelAmbush1 Demo_SCIENCE_RebelAmbush2 Demo_SCIENCE_RebelAmbush3+ TextLabel = GUI:SuperweaponRebelAmbush+ ButtonImage = SSGLAAmbush+ DescriptLabel = CONTROLBAR:TooltipFireRebelAmbush+ RadiusCursorType = AMBUSH+ InvalidCursorName = GenericInvalid+End++CommandSet Demo_SCIENCE_GLA_CommandSetRank3+ 4 = Demo_Command_PurchaseScienceRebelAmbush1+ 5 = Demo_Command_PurchaseScienceRebelAmbush2+ 6 = Demo_Command_PurchaseScienceRebelAmbush3+ 7 = Command_PurchaseScienceCashBounty1+ 8 = Command_PurchaseScienceCashBounty2+ 9 = Command_PurchaseScienceCashBounty3+ 10 = Command_PurchaseScienceEmergencyRepair1+ 11 = Command_PurchaseScienceEmergencyRepair2+ 12 = Command_PurchaseScienceEmergencyRepair3+End++CommandSet Demo_SpecialPowerShortcutGLA+ 1 = Demo_Command_AmbushFromShortcut+ 2 = Command_EmergencyRepairFromShortcut+ 3 = Command_AnthraxBombFromShortcut+ 4 = Command_ScudStormFromShortcut+ 5 = Command_RadarVanScanFromShortcut+ 6 = Command_SneakAttackFromShortcut+ 7 = Command_GPSScramblerFromShortcut+End++CommandSet Demo_GLACommandCenterCommandSet+ 1 = Demo_Command_ConstructGLAWorker+ 4 = Command_GPSScrambler+ 5 = Demo_Command_Ambush+ 6 = Command_EmergencyRepair+ 7 = Command_AnthraxBomb+ 8 = Command_SneakAttack+ 13 = Command_SetRallyPoint+ 14 = Command_Sell+End++CommandSet Demo_GLACommandCenterCommandSetUpgrade+ 1 = Demo_Command_ConstructGLAWorker+ 3 = Demo_Command_TertiarySuicide+ 4 = Command_GPSScrambler+ 5 = Demo_Command_Ambush+ 6 = Command_EmergencyRepair+ 7 = Command_AnthraxBomb+ 8 = Command_SneakAttack+ 13 = Command_SetRallyPoint+ 14 = Command_Sell+Enddiff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex e43a42e1b..2c1bba916 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -2562,6 +2562,52 @@ FXList WeaponFX_DemoSuicideDynamitePackDetonationEndEnd+; ----------------------------------------------+; The Artillery Barrage's shells played the carpet bomb's explosion, two voices at most across a+; dozen shells or more. ExplosionArtilleryBarrage is recorded for it, allows three voices and was+; never named. Everything else is EA's.+FXList FX_ArtilleryBarrage+ ViewShake+ Type = SUBTLE+ End+ TerrainScorch+ Type = RANDOM+ Radius = 15+ End+ LightPulse+ Color = R:255 G:128 B:51+ Radius = 30+ IncreaseTime = 0+ DecreaseTime = 2333+ End+ ParticleSystem+ Name = ArtilleryBarrageDebris+ End+ ParticleSystem+ Name = ArtilleryBarrageDust+ End+ ParticleSystem+ Name = ArtilleryBarrageShockwave+ Offset = X:0 Y:0 Z:2+ End+ Sound+ Name = ExplosionArtilleryBarrage+ End+End++; ----------------------------------------------+; The Superweapon General's uplink dies in the pink of its beam (ParticleSystemReforged.ini).+FXList SupW_FX_ParticleUplinkDeathInitial+ ParticleSystem+ Name = SupW_ParticleDeathFlare+ Offset = X:30 Y:0 Z:10+ End+ ParticleSystem+ Name = SupW_ParticleDeathImplode+ Offset = X:30 Y:0 Z:20+ End+End+; ----------------------------------------------FXList WeaponFX_DemoSuicideDynamitePackDetonationPlusFireSounddiff --git a/GeneralsMD/Code/Data/INI/FixesReforged.ini b/GeneralsMD/Code/Data/INI/FixesReforged.iniindex d10d891ab..abc39bf52 100644--- a/GeneralsMD/Code/Data/INI/FixesReforged.ini+++ b/GeneralsMD/Code/Data/INI/FixesReforged.ini@@ -2213,7 +2213,7 @@ Object SupW_AmericaParticleCannonUplinkBehavior = SlowDeathBehavior ModuleTag_18_FixExemptStatus = UNDER_CONSTRUCTIONDestructionDelay = 2000- FX = INITIAL FX_ParticleUplinkDeathInitial+ FX = INITIAL SupW_FX_ParticleUplinkDeathInitialOCL = INITIAL OCL_SDILinkLasersFX = FINAL FX_StructureMediumDeathOCL = FINAL SupW_OCL_ParticleUplinkDeathFinal@@ -2249,3 +2249,911 @@ Object SupW_AuroraFuelAirBombEndGeometryMajorRadius = 2.0End++; ==== Powers and abilities ========================================================================++; The American generals' promotion screen offered the Pathfinder and the Stealth Fighter through+; the plain USA buttons, whose tooltip reads its "Requires" line from the plain unit: an Airfield+; or a Barracks these generals never build. CommandSetReforged.ini gives them their own buttons.++; The China Command Centers each carry one carpet bomber. The Nuke bomber and the early one share+; a shortcut type, so a Nuke player holding a captured China or Infantry Command Center could have+; the shortcut pick a building without his bomber, and the button went dead. The computer's China,+; Infantry and Nuke players buy the Tank General's carpet bomb science and fire the Tank General's+; bomber, which only his Command Center had, so their fifth promotion point did nothing. Every+; China Command Center now carries all three; each fires only for the science its owner holds.++Object ChinaCommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Tank_Fix+ SpecialPowerTemplate = SuperweaponChinaCarpetBomb+ OCL = SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Nuke_Fix+ SpecialPowerTemplate = Nuke_SuperweaponChinaCarpetBomb+ OCL = Nuke_SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+End++Object Infa_ChinaCommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Tank_Fix+ SpecialPowerTemplate = SuperweaponChinaCarpetBomb+ OCL = SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Nuke_Fix+ SpecialPowerTemplate = Nuke_SuperweaponChinaCarpetBomb+ OCL = Nuke_SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+End++Object Tank_ChinaCommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Early_Fix+ SpecialPowerTemplate = Early_SuperweaponChinaCarpetBomb+ OCL = SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Nuke_Fix+ SpecialPowerTemplate = Nuke_SuperweaponChinaCarpetBomb+ OCL = Nuke_SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+End++Object Nuke_ChinaCommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Early_Fix+ SpecialPowerTemplate = Early_SuperweaponChinaCarpetBomb+ OCL = SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+ AddModule+ Behavior = OCLSpecialPower ModuleTag_22Tank_Fix+ SpecialPowerTemplate = SuperweaponChinaCarpetBomb+ OCL = SUPERWEAPON_ChinaCarpetBomb+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE+ End+ End+End++; The Super Hacker's building hack played the plain Hacker's voice. His own line for it is+; recorded and was never named.++Object Infa_ChinaInfantryHacker+ ReplaceModule ModuleTag_04+ Behavior = SpecialAbility ModuleTag_04_Fix+ SpecialPowerTemplate = SpecialAbilityHackerDisableBuilding+ UpdateModuleStartsAttack = Yes+ InitiateSound = SuperHackerVoiceHackBuilding+ End+ End+End++; The Artillery Barrage's shells reported the A-10 strike as finished when they landed, a line+; copied from the A-10's missile, so a map script waiting on either power heard the wrong one.++Object ChinaArtilleryBarrageShell+ ReplaceModule ModuleTag_11+ Behavior = SpecialPowerCompletionDie ModuleTag_11_Fix+ SpecialPowerTemplate = SuperweaponArtilleryBarrage+ End+ End+End++; The Demolitions Combat Bike swapped every bike's buttons once the Demo upgrade finished: Jarmen+; Kell riding one lost his pilot snipe, and every bike showed a suicide button for a weapon slot+; the bike does not have, grey for the rest of the match. A Terrorist rider carries his own.++Object Demo_GLAVehicleCombatBike+ RemoveModule ModuleTag_23+End++; Jarmen Kell's timed charge played his attack line as the planting sound, straight after the+; button had played it once. His remote charge and Burton's timed charge use the planting sound.++Object Demo_GLAInfantryJarmenKell+ ReplaceModule ModuleTag_11+ Behavior = SpecialAbilityUpdate ModuleTag_11_Fix+ SpecialPowerTemplate = Demo_SpecialAbilityDemoKellTimedCharges+ StartAbilityRange = 0.0+ PreparationTime = 0+ SpecialObject = TimedC4Charge+ MaxSpecialObjects = 10+ SpecialObjectsPersistWhenOwnerDies = Yes+ SpecialObjectsPersistent = Yes+ UniqueSpecialObjectTargets = Yes+ UnpackTime = 5500+ FlipOwnerAfterUnpacking = Yes+ FleeRangeAfterCompletion = 100.0+ UnpackSound = ColonelBurtonPlantCharge+ LoseStealthOnTrigger = Yes+ PreTriggerUnstealthTime = 5000+ End+ End+End++; The Demolitions Bomb Truck showed the Demo upgrade's icon, and nothing on it answers that+; upgrade.++Object Demo_GLAVehicleBombTruck+ UpgradeCameo3 = None+End++; The Demolitions General's Rebel Ambush now answers his own sciences (ScienceReforged.ini), whose+; description counts the 4, 6 and 10 rebels he gets. The plain power stays for the computer, which+; buys the plain science.++Object Demo_GLACommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_11Demo_Fix+ SpecialPowerTemplate = Demo_SuperweaponRebelAmbush+ UpgradeOCL = Demo_SCIENCE_RebelAmbush3 Demo_SUPERWEAPON_RebelAmbush3+ UpgradeOCL = Demo_SCIENCE_RebelAmbush2 Demo_SUPERWEAPON_RebelAmbush2+ OCL = Demo_SUPERWEAPON_RebelAmbush1+ CreateLocation = CREATE_AT_LOCATION+ OCLAdjustPositionToPassable = Yes+ End+ End+End++; The Toxin General's own ambush sciences and power were written and never wired, so his promotion+; screen described plain rebels while the power brought toxin ones. His buttons now buy and fire+; them. The plain power stays for the computer, which buys the plain science.++Object Chem_GLACommandCenter+ AddModule+ Behavior = OCLSpecialPower ModuleTag_11Chem_Fix+ SpecialPowerTemplate = Chem_SuperweaponRebelAmbush+ UpgradeOCL = Chem_SCIENCE_RebelAmbush3 Chem_SUPERWEAPON_RebelAmbush3+ UpgradeOCL = Chem_SCIENCE_RebelAmbush2 Chem_SUPERWEAPON_RebelAmbush2+ OCL = Chem_SUPERWEAPON_RebelAmbush1+ CreateLocation = CREATE_AT_LOCATION+ OCLAdjustPositionToPassable = Yes+ End+ End+End++; The Stealth General's Saboteur walked up to a China Internet Center or a GLA fake building and+; did nothing; every other GLA Saboteur disables the one and destroys the other. He also ranked up+; from salvage and experience, which no other Saboteur can.++Object Slth_GLAInfantrySaboteur+ IsTrainable = No+ AddModule+ Behavior = SabotageFakeBuildingCrateCollide SabotageTag_07_Fix+ BuildingPickup = Yes+ End+ End+ AddModule+ Behavior = SabotageInternetCenterCrateCollide SabotageTag_08_Fix+ BuildingPickup = Yes+ SabotageDuration = 15000+ End+ End+End++; A Sneak Attack tunnel coming up out of the ground showed the Tunnel Network's portrait.++Object GLASneakAttackTunnelNetworkStart+ SelectPortrait = SUSneakAttack_L+ ButtonImage = SUSneakAttack+End++; The Superweapon General's cannon glowed EA's blue when ready to fire, under a pink beam. The pink+; glow is in ParticleSystemReforged.ini.++Object SupW_AmericaParticleCannonUplink+ ReplaceModule ModuleTag_12+ Behavior = ParticleUplinkCannonUpdate ModuleTag_12_Fix+ SpecialPowerTemplate = SuperweaponParticleUplinkCannon+ BeginChargeTime = 5000+ RaiseAntennaTime = 4667+ ReadyDelayTime = 2000+ TotalFiringTime = 10000+ DamagePerSecond = 400+ TotalDamagePulses = 40+ WidthGrowTime = 2000+ BeamTravelTime = 2500+ DamageType = PARTICLE_BEAM+ DamageRadiusScalar = 3.4+ RevealRange = 50.0+ OuterEffectBoneName = FX+ OuterEffectNumBones = 5+ ConnectorBoneName = FXConnector+ FireBoneName = FXMain+ OuterNodesLightFlareParticleSystem = SupW_ParticleUplinkCannon_OuterNodeLightFlare+ OuterNodesMediumFlareParticleSystem = SupW_ParticleUplinkCannon_OuterNodeMediumFlare+ OuterNodesIntenseFlareParticleSystem = SupW_ParticleUplinkCannon_OuterNodeIntenseFlare+ ConnectorMediumLaserName = SupW_ParticleUplinkCannon_MediumConnectorLaser+ ConnectorIntenseLaserName = SupW_ParticleUplinkCannon_IntenseConnectorLaser+ LaserBaseLightFlareParticleSystemName = SupW_ParticleUplinkCannon_LaserBaseReadyToFire+ ParticleBeamLaserName = SupW_ParticleUplinkCannon_OrbitalLaser+ GroundHitFX = FX_ParticleUplinkCannon_BeamHitsGround+ BeamLaunchFX = SupW_FX_ParticleUplinkCannon_BeamLaunchIteration+ DelayBetweenLaunchFX = 1000+ TotalScorchMarks = 20+ ScorchMarkScalar = 2.4+ SwathOfDeathDistance = 200.0+ SwathOfDeathAmplitude = 50.0+ ManualDrivingSpeed = 20+ ManualFastDrivingSpeed = 40+ DoubleClickToFastDriveDelay = 500+ PoweringUpSoundLoop = ParticleUplinkCannon_PowerupSoundLoop+ UnpackToIdleSoundLoop = ParticleUplinkCannon_UnpackToIdleSoundLoop+ FiringToPackSoundLoop = ParticleUplinkCannon_FiringToPackSoundLoop+ GroundAnnihilationSoundLoop = ParticleUplinkCannon_GroundAnnihilationSoundLoop+ DamagePulseRemnantObjectName = ParticleUplinkCannonTrailRemnant+ End+ End+End++; The Particle Uplink's dish named a model and no animation while the building went up, so it+; cycled its deploy animation over and over. The three construction states now hold the first+; frame, the way the finished dish does. The rest is EA's, and the same for all four generals.++Object AmericaParticleCannonUplink+ ReplaceModule ModuleTag_02+ Draw = W3DModelDraw ModuleTag_02_Fix+ ExtraPublicBone = FXConnector+ ExtraPublicBone = FXMain+ OkToChangeModelColor = Yes+ ConditionState = NONE+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT+ AliasConditionState = NIGHT SNOW+ AliasConditionState = SNOW+ ConditionState = DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT DAMAGED+ AliasConditionState = NIGHT SNOW DAMAGED+ AliasConditionState = SNOW DAMAGED+ ConditionState = REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW REALLYDAMAGED RUBBLE+ ConditionState = AWAITING_CONSTRUCTION+ Model = None+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION+ AliasConditionState = SNOW AWAITING_CONSTRUCTION+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ ConditionState = UNPACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING+ AliasConditionState = NIGHT SNOW UNPACKING+ AliasConditionState = SNOW UNPACKING+ ConditionState = UNPACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING DAMAGED+ AliasConditionState = NIGHT SNOW UNPACKING DAMAGED+ AliasConditionState = SNOW UNPACKING DAMAGED+ ConditionState = UNPACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW UNPACKING REALLYDAMAGED RUBBLE+ ConditionState = DEPLOYED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED+ AliasConditionState = NIGHT SNOW DEPLOYED+ AliasConditionState = SNOW DEPLOYED+ ConditionState = DEPLOYED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED DAMAGED+ AliasConditionState = NIGHT SNOW DEPLOYED DAMAGED+ AliasConditionState = SNOW DEPLOYED DAMAGED+ ConditionState = DEPLOYED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW DEPLOYED REALLYDAMAGED RUBBLE+ ConditionState = PACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING+ AliasConditionState = NIGHT SNOW PACKING+ AliasConditionState = SNOW PACKING+ ConditionState = PACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING DAMAGED+ AliasConditionState = NIGHT SNOW PACKING DAMAGED+ AliasConditionState = SNOW PACKING DAMAGED+ ConditionState = PACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW PACKING REALLYDAMAGED RUBBLE+ ConditionState = SOLD DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD SNOW DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT SNOW DEPLOYED+ Model = NONE+ End+ End+ End+End++Object AirF_AmericaParticleCannonUplink+ ReplaceModule ModuleTag_02+ Draw = W3DModelDraw ModuleTag_02_Fix+ ExtraPublicBone = FXConnector+ ExtraPublicBone = FXMain+ OkToChangeModelColor = Yes+ ConditionState = NONE+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT+ AliasConditionState = NIGHT SNOW+ AliasConditionState = SNOW+ ConditionState = DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT DAMAGED+ AliasConditionState = NIGHT SNOW DAMAGED+ AliasConditionState = SNOW DAMAGED+ ConditionState = REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW REALLYDAMAGED RUBBLE+ ConditionState = AWAITING_CONSTRUCTION+ Model = None+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION+ AliasConditionState = SNOW AWAITING_CONSTRUCTION+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ ConditionState = UNPACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING+ AliasConditionState = NIGHT SNOW UNPACKING+ AliasConditionState = SNOW UNPACKING+ ConditionState = UNPACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING DAMAGED+ AliasConditionState = NIGHT SNOW UNPACKING DAMAGED+ AliasConditionState = SNOW UNPACKING DAMAGED+ ConditionState = UNPACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW UNPACKING REALLYDAMAGED RUBBLE+ ConditionState = DEPLOYED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED+ AliasConditionState = NIGHT SNOW DEPLOYED+ AliasConditionState = SNOW DEPLOYED+ ConditionState = DEPLOYED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED DAMAGED+ AliasConditionState = NIGHT SNOW DEPLOYED DAMAGED+ AliasConditionState = SNOW DEPLOYED DAMAGED+ ConditionState = DEPLOYED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW DEPLOYED REALLYDAMAGED RUBBLE+ ConditionState = PACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING+ AliasConditionState = NIGHT SNOW PACKING+ AliasConditionState = SNOW PACKING+ ConditionState = PACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING DAMAGED+ AliasConditionState = NIGHT SNOW PACKING DAMAGED+ AliasConditionState = SNOW PACKING DAMAGED+ ConditionState = PACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW PACKING REALLYDAMAGED RUBBLE+ ConditionState = SOLD DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD SNOW DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT SNOW DEPLOYED+ Model = NONE+ End+ End+ End+End++Object Lazr_AmericaParticleCannonUplink+ ReplaceModule ModuleTag_02+ Draw = W3DModelDraw ModuleTag_02_Fix+ ExtraPublicBone = FXConnector+ ExtraPublicBone = FXMain+ OkToChangeModelColor = Yes+ ConditionState = NONE+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT+ AliasConditionState = NIGHT SNOW+ AliasConditionState = SNOW+ ConditionState = DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT DAMAGED+ AliasConditionState = NIGHT SNOW DAMAGED+ AliasConditionState = SNOW DAMAGED+ ConditionState = REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW REALLYDAMAGED RUBBLE+ ConditionState = AWAITING_CONSTRUCTION+ Model = None+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION+ AliasConditionState = SNOW AWAITING_CONSTRUCTION+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ ConditionState = UNPACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING+ AliasConditionState = NIGHT SNOW UNPACKING+ AliasConditionState = SNOW UNPACKING+ ConditionState = UNPACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING DAMAGED+ AliasConditionState = NIGHT SNOW UNPACKING DAMAGED+ AliasConditionState = SNOW UNPACKING DAMAGED+ ConditionState = UNPACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW UNPACKING REALLYDAMAGED RUBBLE+ ConditionState = DEPLOYED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED+ AliasConditionState = NIGHT SNOW DEPLOYED+ AliasConditionState = SNOW DEPLOYED+ ConditionState = DEPLOYED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED DAMAGED+ AliasConditionState = NIGHT SNOW DEPLOYED DAMAGED+ AliasConditionState = SNOW DEPLOYED DAMAGED+ ConditionState = DEPLOYED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW DEPLOYED REALLYDAMAGED RUBBLE+ ConditionState = PACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING+ AliasConditionState = NIGHT SNOW PACKING+ AliasConditionState = SNOW PACKING+ ConditionState = PACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING DAMAGED+ AliasConditionState = NIGHT SNOW PACKING DAMAGED+ AliasConditionState = SNOW PACKING DAMAGED+ ConditionState = PACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW PACKING REALLYDAMAGED RUBBLE+ ConditionState = SOLD DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD SNOW DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT SNOW DEPLOYED+ Model = NONE+ End+ End+ End+End++Object SupW_AmericaParticleCannonUplink+ ReplaceModule ModuleTag_02+ Draw = W3DModelDraw ModuleTag_02_Fix+ ExtraPublicBone = FXConnector+ ExtraPublicBone = FXMain+ OkToChangeModelColor = Yes+ ConditionState = NONE+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT+ AliasConditionState = NIGHT SNOW+ AliasConditionState = SNOW+ ConditionState = DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT DAMAGED+ AliasConditionState = NIGHT SNOW DAMAGED+ AliasConditionState = SNOW DAMAGED+ ConditionState = REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_FIRST+ End+ AliasConditionState = NIGHT REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW REALLYDAMAGED RUBBLE+ ConditionState = AWAITING_CONSTRUCTION+ Model = None+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION+ AliasConditionState = SNOW AWAITING_CONSTRUCTION+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED+ ConditionState = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT+ End+ AliasConditionState = NIGHT AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED RUBBLE+ ConditionState = UNPACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING+ AliasConditionState = NIGHT SNOW UNPACKING+ AliasConditionState = SNOW UNPACKING+ ConditionState = UNPACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING DAMAGED+ AliasConditionState = NIGHT SNOW UNPACKING DAMAGED+ AliasConditionState = SNOW UNPACKING DAMAGED+ ConditionState = UNPACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE+ Flags = MAINTAIN_FRAME_ACROSS_STATES2+ End+ AliasConditionState = NIGHT UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW UNPACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW UNPACKING REALLYDAMAGED RUBBLE+ ConditionState = DEPLOYED+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED+ AliasConditionState = NIGHT SNOW DEPLOYED+ AliasConditionState = SNOW DEPLOYED+ ConditionState = DEPLOYED DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED DAMAGED+ AliasConditionState = NIGHT SNOW DEPLOYED DAMAGED+ AliasConditionState = SNOW DEPLOYED DAMAGED+ ConditionState = DEPLOYED REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = MANUAL+ Flags = START_FRAME_LAST+ End+ AliasConditionState = NIGHT DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW DEPLOYED REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW DEPLOYED REALLYDAMAGED RUBBLE+ ConditionState = PACKING+ Model = ABSDILink_A1+ Animation = ABSDILink_A1.ABSDILink_A1+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING+ AliasConditionState = NIGHT SNOW PACKING+ AliasConditionState = SNOW PACKING+ ConditionState = PACKING DAMAGED+ Model = ABSDILink_A1D+ Animation = ABSDILink_A1D.ABSDILink_A1D+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING DAMAGED+ AliasConditionState = NIGHT SNOW PACKING DAMAGED+ AliasConditionState = SNOW PACKING DAMAGED+ ConditionState = PACKING REALLYDAMAGED RUBBLE+ Model = ABSDILink_A1E+ Animation = ABSDILink_A1E.ABSDILink_A1E+ AnimationMode = ONCE_BACKWARDS+ Flags = MAINTAIN_FRAME_ACROSS_STATES3+ End+ AliasConditionState = NIGHT PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = NIGHT SNOW PACKING REALLYDAMAGED RUBBLE+ AliasConditionState = SNOW PACKING REALLYDAMAGED RUBBLE+ ConditionState = SOLD DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD SNOW DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT DEPLOYED+ Model = NONE+ End+ ConditionState = SOLD NIGHT SNOW DEPLOYED+ Model = NONE+ End+ End+ End+Enddiff --git a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.iniindex 127f04d54..fb0881468 100644--- a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini+++ b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini@@ -2,6 +2,114 @@; ObjectCreationList.ini with INI_LOAD_OVERWRITE, so a list named here is cleared and replaced; whole and a new name is added. It lands in the multiplayer INI CRC.+; ==== Battlemaster Paradrop =======================================================================++; The Tank General's Battlemasters were dropped with the infantry paradrop's timing: the plane+; opened its doors 300 out from the 50-wide marker and the second tank followed 80 ms after the+; first, so a single tank landed well short and a pair landed on top of each other. The doors now+; open 120 out for one tank and 140 for two, 300 ms apart, as in the 1.04 community patch.++ObjectCreationList Tank_SUPERWEAPON_TankParadrop1+ DeliverPayload+ Transport = ChinaJetCargoPlane+ StartAtPreferredHeight = Yes+ StartAtMaxSpeed = Yes+ MaxAttempts = 4+ DropOffset = X:0 Y:0 Z:-10+ DropDelay = 300+ ParachuteDirectly = No+ PutInContainer = LargeParachute+ Payload = Tank_ChinaTankBattleMaster 1+ DeliveryDistance = 0+ PreOpenDistance = 120+ DeliveryDecalRadius = 50+ DeliveryDecal+ Texture = SCCParadrop_USA+ Style = SHADOW_ALPHA_DECAL+ OpacityMin = 25%+ OpacityMax = 50%+ OpacityThrobTime = 500+ Color = R:227 G:229 B:22 A:255+ OnlyVisibleToOwningPlayer = Yes+ End+ End+End++ObjectCreationList Tank_SUPERWEAPON_TankParadrop2+ DeliverPayload+ Transport = ChinaJetCargoPlane+ StartAtPreferredHeight = Yes+ StartAtMaxSpeed = Yes+ MaxAttempts = 4+ DropOffset = X:0 Y:0 Z:-10+ DropDelay = 300+ ParachuteDirectly = No+ PutInContainer = LargeParachute+ Payload = Tank_ChinaTankBattleMaster 2+ DeliveryDistance = 0+ PreOpenDistance = 140+ DeliveryDecalRadius = 50+ DeliveryDecal+ Texture = SCCParadrop_USA+ Style = SHADOW_ALPHA_DECAL+ OpacityMin = 25%+ OpacityMax = 50%+ OpacityThrobTime = 500+ Color = R:227 G:229 B:22 A:255+ OnlyVisibleToOwningPlayer = Yes+ End+ End+End++ObjectCreationList Tank_SUPERWEAPON_TankParadrop3+ DeliverPayload+ Transport = ChinaJetCargoPlane+ StartAtPreferredHeight = Yes+ StartAtMaxSpeed = Yes+ MaxAttempts = 4+ DropOffset = X:0 Y:0 Z:-10+ DropDelay = 300+ ParachuteDirectly = No+ PutInContainer = LargeParachute+ Payload = Tank_ChinaTankBattleMaster 2+ DeliveryDistance = 0+ PreOpenDistance = 140+ DeliveryDecalRadius = 50+ DeliveryDecal+ Texture = SCCParadrop_USA+ Style = SHADOW_ALPHA_DECAL+ OpacityMin = 25%+ OpacityMax = 50%+ OpacityThrobTime = 500+ Color = R:227 G:229 B:22 A:255+ OnlyVisibleToOwningPlayer = Yes+ End+ End+ DeliverPayload+ Transport = ChinaJetCargoPlane+ StartAtPreferredHeight = Yes+ StartAtMaxSpeed = No+ MaxAttempts = 4+ DropOffset = X:0 Y:0 Z:-10+ DropDelay = 300+ ParachuteDirectly = No+ PutInContainer = LargeParachute+ Payload = Tank_ChinaTankBattleMaster 2+ DeliveryDistance = 0+ PreOpenDistance = 140+ DeliveryDecalRadius = 50+ DeliveryDecal+ Texture = SCCParadrop_USA+ Style = SHADOW_ALPHA_DECAL+ OpacityMin = 25%+ OpacityMax = 50%+ OpacityThrobTime = 500+ Color = R:227 G:229 B:22 A:255+ OnlyVisibleToOwningPlayer = Yes+ End+ End+End+; ==== Scud Storm ==================================================================================; The storms carried their missiles in the PRIMARY slot, and a storm could be made to launch alldiff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ininew file mode 100644index 000000000..f519c54c9--- /dev/null+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini@@ -0,0 +1,177 @@+; Zero Hour Reforged particle systems, loaded after ParticleSystem.ini. A name EA already defined+; is replaced whole; a new name is added. Particle systems are not in the multiplayer checksum.++; The Superweapon General's Particle Cannon fires a pink beam and wore EA's blue ready-to-fire glow+; and blue death flare. These are EA's three systems with the pink of his beam, after the 1.04+; community patch.++ParticleSystem SupW_ParticleUplinkCannon_LaserBaseReadyToFire+ Priority = CRITICAL+ IsOneShot = No+ Shader = ADDITIVE+ Type = PARTICLE+ ParticleName = EXLnzFlar3.tga+ AngleZ = 0.00 0.00+ AngularRateZ = 0.00 0.00+ AngularDamping = 1.00 1.00+ VelocityDamping = 1.00 1.00+ Gravity = 0.00+ Lifetime = 30.00 30.00+ SystemLifetime = 0+ Size = 5.00 5.00+ StartSizeRate = 0.00 0.00+ SizeRate = 4.00 5.00+ SizeRateDamping = 0.90 0.92+ Alpha1 = 0.00 0.00 0+ Alpha2 = 0.25 0.25 5+ Alpha3 = 0.00 0.00 30+ Alpha4 = 0.00 0.00 0+ Alpha5 = 0.00 0.00 0+ Alpha6 = 0.00 0.00 0+ Alpha7 = 0.00 0.00 0+ Alpha8 = 0.00 0.00 0+ Color1 = R:255 G:155 B:255 0+ Color2 = R:0 G:0 B:0 30+ Color3 = R:0 G:0 B:0 0+ Color4 = R:0 G:0 B:0 0+ Color5 = R:0 G:0 B:0 0+ Color6 = R:0 G:0 B:0 0+ Color7 = R:0 G:0 B:0 0+ Color8 = R:0 G:0 B:0 0+ ColorScale = 0.00 0.00+ BurstDelay = 10.00 10.00+ BurstCount = 1.00 1.00+ InitialDelay = 0.00 0.00+ DriftVelocity = X:0.00 Y:0.00 Z:0.00+ VelocityType = ORTHO+ VelOrthoX = 0.00 0.00+ VelOrthoY = 0.00 0.00+ VelOrthoZ = 0.00 0.00+ VolumeType = LINE+ VolLineStart = X:0.00 Y:0.00 Z:1.00+ VolLineEnd = X:0.00 Y:0.00 Z:1.00+ IsHollow = Yes+ IsGroundAligned = Yes+ IsEmitAboveGroundOnly = No+ IsParticleUpTowardsEmitter = No+ WindMotion = Unused+ WindAngleChangeMin = 0.149924+ WindAngleChangeMax = 0.449946+ WindPingPongStartAngleMin = 0.000000+ WindPingPongStartAngleMax = 0.785398+ WindPingPongEndAngleMin = 5.497787+ WindPingPongEndAngleMax = 6.283185+End++ParticleSystem SupW_ParticleDeathFlare+ Priority = CRITICAL+ IsOneShot = No+ Shader = ADDITIVE+ Type = PARTICLE+ ParticleName = EXLnzFlar3.tga+ AngleZ = 0.00 0.00+ AngularRateZ = 0.00 0.00+ AngularDamping = 0.90 0.99+ VelocityDamping = 0.90 1.00+ Gravity = 0.00+ Lifetime = 60.00 60.00+ SystemLifetime = 60+ Size = 0.00 0.00+ StartSizeRate = 10.00 10.00+ SizeRate = 20.00 20.00+ SizeRateDamping = 0.90 0.99+ Alpha1 = 0.00 0.00 0+ Alpha2 = 0.00 0.00 0+ Alpha3 = 0.00 0.00 0+ Alpha4 = 0.00 0.00 0+ Alpha5 = 0.00 0.00 0+ Alpha6 = 0.00 0.00 0+ Alpha7 = 0.00 0.00 0+ Alpha8 = 0.00 0.00 0+ Color1 = R:255 G:155 B:255 0+ Color2 = R:0 G:0 B:0 60+ Color3 = R:0 G:0 B:0 0+ Color4 = R:0 G:0 B:0 0+ Color5 = R:0 G:0 B:0 0+ Color6 = R:0 G:0 B:0 0+ Color7 = R:0 G:0 B:0 0+ Color8 = R:0 G:0 B:0 0+ ColorScale = 0.00 0.00+ BurstDelay = 5.00 5.00+ BurstCount = 1.00 1.00+ InitialDelay = 0.00 0.00+ DriftVelocity = X:0.00 Y:0.00 Z:0.25+ VelocityType = OUTWARD+ VelOutward = 0.00 0.00+ VelOutwardOther = 0.00 0.00+ VolumeType = CYLINDER+ VolCylinderRadius = 0.00+ VolCylinderLength = 0.00+ IsHollow = No+ IsGroundAligned = No+ IsEmitAboveGroundOnly = No+ IsParticleUpTowardsEmitter = No+ WindMotion = Unused+ WindAngleChangeMin = 0.000000+ WindAngleChangeMax = 0.000000+ WindPingPongStartAngleMin = 0.000000+ WindPingPongStartAngleMax = 0.000000+ WindPingPongEndAngleMin = 0.000000+ WindPingPongEndAngleMax = 0.000000+End++ParticleSystem SupW_ParticleDeathImplode+ Priority = CRITICAL+ IsOneShot = No+ Shader = ADDITIVE+ Type = PARTICLE+ ParticleName = EXLnzFlar3.tga+ AngleZ = 0.00 0.00+ AngularRateZ = 0.00 0.00+ AngularDamping = 1.00 1.00+ VelocityDamping = 0.99 0.99+ Gravity = 0.00+ Lifetime = 30.00 30.00+ SystemLifetime = 40+ Size = 0.00 0.00+ StartSizeRate = 0.00 0.00+ SizeRate = 3.00 3.00+ SizeRateDamping = 0.90 0.90+ Alpha1 = 0.00 0.00 0+ Alpha2 = 0.00 0.00 0+ Alpha3 = 0.00 0.00 0+ Alpha4 = 0.00 0.00 0+ Alpha5 = 0.00 0.00 0+ Alpha6 = 0.00 0.00 0+ Alpha7 = 0.00 0.00 0+ Alpha8 = 0.00 0.00 0+ Color1 = R:0 G:0 B:0 0+ Color2 = R:255 G:150 B:255 5+ Color3 = R:255 G:100 B:255 30+ Color4 = R:0 G:0 B:0 0+ Color5 = R:0 G:0 B:0 0+ Color6 = R:0 G:0 B:0 0+ Color7 = R:0 G:0 B:0 0+ Color8 = R:0 G:0 B:0 0+ ColorScale = 0.00 0.00+ BurstDelay = 0.00 0.00+ BurstCount = 2.00 2.00+ InitialDelay = 0.00 0.00+ DriftVelocity = X:0.00 Y:0.00 Z:0.00+ VelocityType = OUTWARD+ VelOutward = -7.00 -7.00+ VelOutwardOther = -7.00 -7.00+ VolumeType = SPHERE+ VolSphereRadius = 200.00+ IsHollow = Yes+ IsGroundAligned = No+ IsEmitAboveGroundOnly = No+ IsParticleUpTowardsEmitter = No+ WindMotion = Unused+ WindAngleChangeMin = 0.149924+ WindAngleChangeMax = 0.449946+ WindPingPongStartAngleMin = 0.000000+ WindPingPongStartAngleMax = 0.785398+ WindPingPongEndAngleMin = 5.497787+ WindPingPongEndAngleMax = 6.283185+Enddiff --git a/GeneralsMD/Code/Data/INI/ScienceReforged.ini b/GeneralsMD/Code/Data/INI/ScienceReforged.ininew file mode 100644index 000000000..e64b69974--- /dev/null+++ b/GeneralsMD/Code/Data/INI/ScienceReforged.ini@@ -0,0 +1,32 @@+; Zero Hour Reforged sciences, loaded after Science.ini. Only new names: one EA already defined+; stops the load.+;+; This file lands in the multiplayer INI checksum.++; The Demolitions General's Rebel Ambush brings 4, 6 and 10 rebels, and he bought it through the+; plain GLA science, whose description promises 4, 8 and 16. A science carries its own description,+; so his ambush gets sciences of its own.++Science Demo_SCIENCE_RebelAmbush1+ PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank3+ SciencePurchasePointCost = 1+ IsGrantable = Yes+ DisplayName = SCIENCE:GLARebelAmbush1+ Description = CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush+End++Science Demo_SCIENCE_RebelAmbush2+ PrerequisiteSciences = Demo_SCIENCE_RebelAmbush1 SCIENCE_Rank3+ SciencePurchasePointCost = 1+ IsGrantable = Yes+ DisplayName = SCIENCE:GLARebelAmbush2+ Description = CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush+End++Science Demo_SCIENCE_RebelAmbush3+ PrerequisiteSciences = Demo_SCIENCE_RebelAmbush2 SCIENCE_Rank3+ SciencePurchasePointCost = 1+ IsGrantable = Yes+ DisplayName = SCIENCE:GLARebelAmbush3+ Description = CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush+Enddiff --git a/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ininew file mode 100644index 000000000..f4da65f41--- /dev/null+++ b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini@@ -0,0 +1,33 @@+; Zero Hour Reforged special powers, loaded after SpecialPower.ini. A power EA defined is edited+; in place and a block holds only what changes; a new name is a new power.+;+; This file lands in the multiplayer INI checksum.++; Frenzy is a buff on your own troops and left a 250 radius window open for 30 seconds wherever+; it was clicked, so a Frenzy fired into the fog scouted an enemy base. Emergency Repair, the+; other buff, opens nothing.++SpecialPower SuperweaponFrenzy+ ViewObjectDuration = 0+ ViewObjectRange = 0+End++SpecialPower Early_SuperweaponFrenzy+ ViewObjectDuration = 0+ ViewObjectRange = 0+End++; The Demolitions General's Rebel Ambush, behind his own sciences in ScienceReforged.ini. The+; computer still buys the plain science and fires the plain power, which his Command Center keeps.++SpecialPower Demo_SuperweaponRebelAmbush+ Enum = SPECIAL_AMBUSH+ ReloadTime = 240000+ RequiredScience = Demo_SCIENCE_RebelAmbush1+ PublicTimer = No+ InitiateAtLocationSound = RebelAmbushActivated+ SharedSyncedTimer = Yes+ RadiusCursorRadius = 50+ ShortcutPower = Yes+ AcademyClassify = ACT_SUPERPOWER+Enddiff --git a/GeneralsMD/Code/Data/INI/UpgradeReforged.ini b/GeneralsMD/Code/Data/INI/UpgradeReforged.ininew file mode 100644index 000000000..ab5cd2e17--- /dev/null+++ b/GeneralsMD/Code/Data/INI/UpgradeReforged.ini@@ -0,0 +1,19 @@+; Zero Hour Reforged upgrade fixes, loaded after Upgrade.ini. An upgrade named here is edited in+; place, so a block holds only the fields that change.+;+; This file lands in the multiplayer INI checksum.++; EVA has a line for each of these three and nothing plays it: the upgrade names no ResearchSound+; and falls back to the generic "upgrade complete".++Upgrade Upgrade_AmericaMOAB+ ResearchSound = EvaUSA_UpgradeMoab+End++Upgrade Upgrade_AmericaSentryDroneGun+ ResearchSound = EvaUSA_UpgradeSentryDrone+End++Upgrade Upgrade_ChinaNeutronShells+ ResearchSound = EvaChina_UpgradeNeutronShell+Enddiff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.strindex d9109b5e9..1516ffc82 100644--- a/GeneralsMD/Code/Data/Patch.str+++ b/GeneralsMD/Code/Data/Patch.str@@ -1304,3 +1304,32 @@ ENDGUI:ScoreboardFavourite"FAVOURITE"END++// Power tooltips that named the wrong countdown or count: the Air Force Spectre+// Gunship (3:00) and Carpet Bomb (4:00), the Leaflet Drop (5:00), the Stealth GPS+// Scrambler (3:00), the Spectre's third rank (20 seconds) and the Demolitions+// ambush (4, 6 and 10 rebels).++CONTROLBAR:AirF_TooltipSpectreGunship+"Strong vs. Vehicles \n \n Countdown Timer: 3:00"+END++CONTROLBAR:AirF_TooltipCarpetBomb+"Carpet Bomb target area \n \n Countdown Timer: 4:00"+END++CONTROLBAR:TooltipLeafletDrop+"Strong vs. Infantry \n \n Countdown Timer: 5:00"+END++CONTROLBAR:Slth_TooltipFireGPSScrambler+"GPS Scrambler \n Countdown Timer: 3:00"+END++CONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship+"Spectre Gunships circle the battlefield and pummel enemy forces with Howitzers and Gatling Cannons \n \nLevel 1: 10 seconds \n Level 2: 15 seconds \n Level 3: 20 seconds \n \n Deploy from: Command Center"+END++CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush+"Allows you to create a surprise ambush of Rebels anywhere \n \n Rank 1: 4 Rebels \n Rank 2: 6 Rebels \n Rank 3: 10 Rebels \n \n Deploy from: Command Center"+ENDdiff --git a/GeneralsMD/Code/Data/Scripts/SkirmishScripts.scb b/GeneralsMD/Code/Data/Scripts/SkirmishScripts.scbindex a47dd9590..04875d423 100644Binary files a/GeneralsMD/Code/Data/Scripts/SkirmishScripts.scb and b/GeneralsMD/Code/Data/Scripts/SkirmishScripts.scb differdiff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.strindex 5a142d773..a459a36a1 100644--- a/GeneralsMD/Code/Data/Turkish/Generals.str+++ b/GeneralsMD/Code/Data/Turkish/Generals.str@@ -12866,7 +12866,7 @@ CONTROLBAR:TooltipMOABENDCONTROLBAR:TooltipLeafletDrop-"Güçlü: Piyade \n \n Geri Sayım: 6:00"+"Güçlü: Piyade \n \n Geri Sayım: 5:00"ENDCONTROLBAR:TooltipTankParaDrop@@ -14210,7 +14210,7 @@ CONTROLBAR:ToolTipChinaBuildEmperorENDCONTROLBAR:AirF_ToolTipUSAScienceSpectreGunship-"Spectre Savaş Uçakları savaş alanı üzerinde daire çizerek düşman kuvvetlerini obüs ve Gatling toplarıyla döver \n \nSeviye 1: 10 saniye \n Seviye 2: 15 saniye \n Seviye 3: 30 saniye \n \n Çağrıldığı yer: Komuta Merkezi"+"Spectre Savaş Uçakları savaş alanı üzerinde daire çizerek düşman kuvvetlerini obüs ve Gatling toplarıyla döver \n \nSeviye 1: 10 saniye \n Seviye 2: 15 saniye \n Seviye 3: 20 saniye \n \n Çağrıldığı yer: Komuta Merkezi"ENDOBJECT:ValveStation@@ -15812,3 +15812,19 @@ ENDGUI:ScoreboardFavourite"FAVORİ"END++CONTROLBAR:AirF_TooltipSpectreGunship+"Güçlü: Araçlar \n \n Geri Sayım: 3:00"+END++CONTROLBAR:AirF_TooltipCarpetBomb+"Hedef bölgeye halı bombardımanı yapın \n \n Geri Sayım: 4:00"+END++CONTROLBAR:Slth_TooltipFireGPSScrambler+"GPS Karıştırıcı \n Geri Sayım: 3:00"+END++CONTROLBAR:Demo_ToolTipGLAScienceRebelAmbush+"Her yerde Asilerle ani bir pusu kurmanızı sağlar \n \n Seviye 1: 4 Asi \n Seviye 2: 6 Asi \n Seviye 3: 10 Asi \n \n Çağrıldığı yer: Komuta Merkezi"+ENDdiff --git a/GeneralsMD/Code/GameEngine/Include/Common/Player.h b/GeneralsMD/Code/GameEngine/Include/Common/Player.hindex adf374c8e..d5f00f26e 100644--- a/GeneralsMD/Code/GameEngine/Include/Common/Player.h+++ b/GeneralsMD/Code/GameEngine/Include/Common/Player.h@@ -699,6 +699,8 @@ public:/// All of our units are new spied upon; they sight for the given enemyvoid setUnitsVisionSpied( Bool setting, KindOfMaskType whichUnits, PlayerIndex byWhom );+ /// Put a unit joining (or leaving) this player under (or out of) every spy vision now on against it+ void applyVisionSpies( Object *obj, Bool setting ) const;/// Destroy all of the teams for this player, causing him to DIE.void killPlayer(void);@@ -944,6 +946,14 @@ private:Bool m_unitsShouldHunt;Bool m_attackedBy[MAX_PLAYER_COUNT]; ///< For each player, have they attacked me?++ struct VisionSpy+ {+ KindOfMaskType kinds;+ PlayerIndex byWhom;+ };+ typedef std::vector<VisionSpy> VisionSpyList;+ VisionSpyList m_visionSpies; ///< Spy visions on against this player, one entry per switch-on, so a unit made later is spied tooUnsignedInt m_attackedFrame; ///< Last frame attacked.Real m_cashBountyPercent;diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cppindex 3a0f14d72..01e1825e3 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp@@ -1012,6 +1012,8 @@ void GameEngine::init( int argc, char *argv[] )initSubsystem(TheScienceStore,"TheScienceStore", MSGNEW("GameEngineSubsystem") ScienceStore(), &xferCRC, "Data\\INI\\Default\\Science.ini", "Data\\INI\\Science.ini");+ // New sciences only: a name EA already defined stops the load+ ini.load( AsciiString( "Data\\INI\\ScienceReforged.ini" ), INI_LOAD_MULTIFILE, &xferCRC );initSubsystem(TheMultiplayerSettings,"TheMultiplayerSettings", MSGNEW("GameEngineSubsystem") MultiplayerSettings(), &xferCRC, "Data\\INI\\Default\\Multiplayer.ini", "Data\\INI\\Multiplayer.ini");initSubsystem(TheTerrainTypes,"TheTerrainTypes", MSGNEW("GameEngineSubsystem") TerrainTypeCollection(), &xferCRC, "Data\\INI\\Default\\Terrain.ini", "Data\\INI\\Terrain.ini");initSubsystem(TheTerrainRoads,"TheTerrainRoads", MSGNEW("GameEngineSubsystem") TerrainRoadCollection(), &xferCRC, "Data\\INI\\Default\\Roads.ini", "Data\\INI\\Roads.ini");@@ -1072,6 +1074,9 @@ void GameEngine::init( int argc, char *argv[] )ini.load( AsciiString( "Data\\INI\\ObjectCreationListReforged.ini" ), INI_LOAD_OVERWRITE, &xferCRC );initSubsystem(TheLocomotorStore,"TheLocomotorStore", MSGNEW("GameEngineSubsystem") LocomotorStore(), &xferCRC, NULL, "Data\\INI\\Locomotor.ini");initSubsystem(TheSpecialPowerStore,"TheSpecialPowerStore", MSGNEW("GameEngineSubsystem") SpecialPowerStore(), &xferCRC, "Data\\INI\\Default\\SpecialPower.ini", "Data\\INI\\SpecialPower.ini");+ /* Powers edited in place (a scan Frenzy should not give) and the Demolitions General's own+ Rebel Ambush, before any object names one. */+ ini.load( AsciiString( "Data\\INI\\SpecialPowerReforged.ini" ), INI_LOAD_MULTIFILE, &xferCRC );initSubsystem(TheDamageFXStore,"TheDamageFXStore", MSGNEW("GameEngineSubsystem") DamageFXStore(), &xferCRC, NULL, "Data\\INI\\DamageFX.ini");initSubsystem(TheArmorStore,"TheArmorStore", MSGNEW("GameEngineSubsystem") ArmorStore(), &xferCRC, NULL, "Data\\INI\\Armor.ini");initSubsystem(TheBuildAssistant,"TheBuildAssistant", MSGNEW("GameEngineSubsystem") BuildAssistant, NULL);@@ -1105,6 +1110,8 @@ void GameEngine::init( int argc, char *argv[] )initSubsystem(TheUpgradeCenter,"TheUpgradeCenter", MSGNEW("GameEngineSubsystem") UpgradeCenter, &xferCRC, "Data\\INI\\Default\\Upgrade.ini", "Data\\INI\\Upgrade.ini");+ // An upgrade parsed again is edited in place, so this file names only what changes+ ini.load( AsciiString( "Data\\INI\\UpgradeReforged.ini" ), INI_LOAD_MULTIFILE, &xferCRC );initSubsystem(TheGameClient,"TheGameClient", createGameClient(), NULL);diff --git a/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp b/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cppindex 73b518474..700c5e6bc 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp@@ -419,6 +419,7 @@ void Player::init(const PlayerTemplate* pt)m_battlePlanBonuses->deleteInstance();m_battlePlanBonuses = NULL;}+ m_visionSpies.clear();deleteUpgradeList();@@ -1156,10 +1157,14 @@ void Player::becomingTeamMember(Object *obj, Bool yes)else{//We are leaving a team with active battle plans so remove them now.- removeBattlePlanBonusesForObject( obj );+ removeBattlePlanBonusesForObject( obj );}}-++ // A new object is not ready here yet; Object::initObject marks it. One being destroyed is gone.+ if( obj->areModulesReady() && !obj->isDestroyed() )+ applyVisionSpies( obj, yes );+if (obj->isKindOf(KINDOF_DOZER)&& obj->getAIUpdateInterface()@@ -4415,6 +4420,39 @@ void Player::setUnitsVisionSpied( Bool setting, KindOfMaskType whichUnits, Playedata.byWhom = byWhom;// Being spied is now a property of the unit, not us, since we can spy only a portion of the enemy.iterateObjects( iterator_setUnitsVisionSpied, &data );++ // EA only marked the units standing when the power went on, so a Command Center built under a+ // Satellite Hack stayed dark. The list lets becomingTeamMember mark what joins later.+ if( setting )+ {+ VisionSpy spy;+ spy.kinds = whichUnits;+ spy.byWhom = byWhom;+ m_visionSpies.push_back( spy );+ return;+ }+ for( VisionSpyList::iterator it = m_visionSpies.begin(); it != m_visionSpies.end(); ++it )+ {+ if( it->byWhom == byWhom && it->kinds == whichUnits )+ {+ m_visionSpies.erase( it );+ return;+ }+ }+}++// ------------------------------------------------------------------------------------------------+void Player::applyVisionSpies( Object *obj, Bool setting ) const+{+ // A loading object already carries its saved spied count and is only moved back to its team+ if( TheGameState->isInLoadGame() )+ return;++ for( VisionSpyList::const_iterator it = m_visionSpies.begin(); it != m_visionSpies.end(); ++it )+ {+ if( obj->isAnyKindOf( it->kinds ) )+ obj->setVisionSpied( setting, it->byWhom );+ }}// ------------------------------------------------------------------------------------------------@@ -4487,7 +4525,7 @@ void Player::xfer( Xfer *xfer ){// version- const XferVersion currentVersion = 9;+ const XferVersion currentVersion = 10;XferVersion version = currentVersion;xfer->xferVersion( &version, currentVersion );@@ -5029,6 +5067,21 @@ void Player::xfer( Xfer *xfer )elsem_orderQueue.reset();+ UnsignedShort visionSpyCount = (UnsignedShort)m_visionSpies.size();+ if( version >= 10 )+ xfer->xferUnsignedShort( &visionSpyCount );+ else+ visionSpyCount = 0;+ if( xfer->getXferMode() == XFER_LOAD )+ m_visionSpies.resize( visionSpyCount );+ for( UnsignedShort i = 0; i < visionSpyCount; ++i )+ {+ m_visionSpies[ i ].kinds.xfer( xfer );+ Int byWhom = m_visionSpies[ i ].byWhom;+ xfer->xferInt( &byWhom );+ m_visionSpies[ i ].byWhom = byWhom;+ }+} // end xfer// ------------------------------------------------------------------------------------------------diff --git a/GeneralsMD/Code/GameEngine/Source/Common/RTS/SpecialPower.cpp b/GeneralsMD/Code/GameEngine/Source/Common/RTS/SpecialPower.cppindex 53a59a0c9..0faaec3ac 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/RTS/SpecialPower.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/RTS/SpecialPower.cpp@@ -171,7 +171,9 @@ void SpecialPowerStore::parseSpecialPowerDefinition( INI *ini ){if (specialPower){- throw INI_INVALID_DATA;+ // SpecialPowerReforged.ini edits EA's powers in place+ if (ini->getLoadType() != INI_LOAD_MULTIFILE)+ throw INI_INVALID_DATA;}else{diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cppindex 9f4c8422b..0aa9e35f2 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp@@ -3367,6 +3367,8 @@ void ParticleSystemManager::init( void )/// Read INI data and build templatesINI ini;ini.load( AsciiString( "Data\\INI\\ParticleSystem.ini" ), INI_LOAD_OVERWRITE, NULL );+ // The fork's own systems, beside EA's 1088 rather than in a loose copy of all of them+ ini.load( AsciiString( "Data\\INI\\ParticleSystemReforged.ini" ), INI_LOAD_OVERWRITE, NULL );// "-particlebounce" on the command line: every system hits the terrain, using the built-in// defaults. Without it nothing changes unless a system's INI sets GroundCollision itself.diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cppindex 3828a9ba6..d52424f36 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp@@ -556,6 +556,8 @@ void Object::initObject(){controller->applyBattlePlanBonusesForObject( this );}++ controller->applyVisionSpies( this, TRUE );}@@ -5711,7 +5713,10 @@ void Object::setVisionSpied(Bool setting, Int byWhom)m_visionSpiedMask = workingMask;- handlePartitionCellMaintenance();+ // A unit spied as it is made still sits at the origin; the move that places it looks for it+ const Coord3D* pos = getPosition();+ if (pos->x || pos->y || pos->z)+ handlePartitionCellMaintenance();}}diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex ec2fb757f..c41a400b5 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -582,7 +582,11 @@ TEST(balance_patch_edits_a_weapon_in_place)GameEngine::init loads the file and folds it into the multiplayer INI CRC, so both ways ofgetting it wrong are expensive: a malformed block throws and takes the whole startup down, anda regeneration that loses the LightPulse ships a file that lights nothing and still refuses- every player who does not have that exact copy. */+ every player who does not have that exact copy. Since then the file also carries fixes that+ are not lights: the Artillery Barrage's sound, with EA's own light, and the Superweapon uplink's+ pink death, which has none and is the one block the count leaves out. */+static const char *const s_unlitReforgedFXList = "FXList SupW_FX_ParticleUplinkDeathInitial";+TEST(fxlist_reforged_ini_parses_and_keeps_its_light){CHECK( bootOnce() );@@ -606,7 +610,11 @@ TEST(fxlist_reforged_ini_parses_and_keeps_its_light)char line[ 512 ];while( fgets( line, sizeof( line ), fp ) != NULL ){- if( strncmp( line, "FXList ", 7 ) == 0 )+ if( strncmp( line, s_unlitReforgedFXList, strlen( s_unlitReforgedFXList ) ) == 0 )+ {+ open = 0;+ }+ else if( strncmp( line, "FXList ", 7 ) == 0 ){++blocks;open = 1;@@ -625,7 +633,7 @@ TEST(fxlist_reforged_ini_parses_and_keeps_its_light)}fclose( fp );- CHECK_EQ( blocks, 89 );+ CHECK_EQ( blocks, 90 );CHECK_EQ( lit, blocks );}diff --git a/Tools/ScbTool/infantry_drop.py b/Tools/ScbTool/infantry_drop.pynew file mode 100644index 000000000..637206b98--- /dev/null+++ b/Tools/ScbTool/infantry_drop.py@@ -0,0 +1,68 @@+"""Give the Infantry General's skirmish AI its Mini-Gunner paradrop on Normal.++EA wrote the paradrop scripts for player [9], SkirmishChinaInfantryGeneral, on Hard alone ("China+Infantry Drop Fire - H" and "China Infantry Drop AI - H"), although both of its skill sets buy the+three Infa_SCIENCE_InfantryParadrop ranks, so on Normal it spends three points and never drops. The+Tank General has a Normal pair, "China Tank Drop Fire" and "China Tank Drop AI", that waits for the+power and nothing else. This copies the Hard pair to Normal in that shape: the _LAUNCH_ATTACK flag+left out of the condition, the difficulty flags Normal only, and the script names they enable and+disable renamed to match.++usage: infantry_drop.py <in.scb> <out.scb>++The master is the retail file through opening.py H 1 4 5 6, then through this.+"""+import copy+import sys++import scbtool++PLAYER = 9+HARD_SUFFIX = " - H"+PAIR = ("China Infantry Drop Fire - H", "China Infantry Drop AI - H")+SCRIPT_PARAMETER = 2+EASY, NORMAL, HARD = 6, 7, 8+++def find_parent(container, script_name):+ for index, child in enumerate(container.children):+ if child.name == "Script" and child.fields[0] == script_name:+ return container, index+ found = find_parent(child, script_name) if child.name in ("ScriptGroup", "ScriptList") else None+ if found:+ return found+ return None+++def normal_copy(hard_script):+ script = copy.deepcopy(hard_script)+ script.fields[0] = script.fields[0][:-len(HARD_SUFFIX)]+ script.fields[EASY], script.fields[NORMAL], script.fields[HARD] = 0, 1, 0+ for condition in (child for child in script.children if child.name == "OrCondition"):+ condition.children = [call for call in condition.children if call.fields[1] != "FLAG"]+ for action in (child for child in script.children if child.name in ("ScriptAction", "ScriptActionFalse")):+ for parameter in action.fields[2]:+ if parameter[0] == SCRIPT_PARAMETER and parameter[3].endswith(HARD_SUFFIX):+ parameter[3] = parameter[3][:-len(HARD_SUFFIX)]+ return script+++def main():+ source, target = sys.argv[1], sys.argv[2]+ table, chunks = scbtool.load(source)+ list_chunk = next(chunk for chunk in chunks if chunk.name == "PlayerScriptsList")+ script_list = list_chunk.children[PLAYER]+ for name in PAIR:+ found = find_parent(script_list, name)+ if found is None:+ raise SystemExit(f"player [{PLAYER}] has no script named {name!r}")+ parent, index = found+ if find_parent(script_list, name[:-len(HARD_SUFFIX)]):+ raise SystemExit(f"player [{PLAYER}] already has {name[:-len(HARD_SUFFIX)]!r}; run this on opening.py's output")+ parent.children.insert(index + 1, normal_copy(parent.children[index]))+ print(f"[{PLAYER}] {name[:-len(HARD_SUFFIX)]}")+ scbtool.save(target, table, chunks)+++if __name__ == "__main__":+ main()