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(data): let parked sentry drones fire from stealth
Olcay Seygan2d9f320a639f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f7e58b502..e4555ec9b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -545,6 +545,7 @@ found and fixed — EA's own, not port damage.**- Something that knocks a unit off its feet lets it stand again. The flailing pose could outlast the stun and stay for good.- A tank thrown by a carpet bomb or a MOAB is out of your hands until it comes down. A tank hit where it stood got its controls back on the very next frame, before it had left the ground, and anything already in the air got them back at the top of its arc, so it could drive in mid-air. Now the stun lasts until it lands and a few frames after, and a tank that comes down on its roof, in water it cannot drive through, on a cliff or off the edge of the map is lost, the way the game was written to do and never did. Over one carpet bomb, 16 of 20 units that lived through it came down still stunned where none did before, and one Paladin landed on its back. Replays recorded before this change play out differently.- Wreckage and bodies that should not bounce, don't. The data tells debris and a soldier flung by a blast to lie where they land, and fifteen entries say so, but the game never read the number and bounced all of it the same. Replays recorded before this change play out differently.+- A Sentry Drone with its gun shoots what comes near it. Two seconds after you park it the drone turns invisible, and from then on it watched enemies walk past without a shot until you gave it an order: EA's data left out the one word that lets a hidden unit open fire on its own, and the line's own comment says what the word was for. Two parked drones with three Rebels walking by and a Technical pulling up beside them used to leave all four untouched; now none of the four is left. Firing still gives the drone away, as it always did. The same goes for the Air Force, Laser and Superweapon generals' drones. Replays recorded before this change play out differently.## The nine generals, as their own data meant themdiff --git a/GeneralsMD/Code/Data/Scenarios/sentrydrone.txt b/GeneralsMD/Code/Data/Scenarios/sentrydrone.txtnew file mode 100644index 000000000..cfb24742d--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/sentrydrone.txt@@ -0,0 +1,25 @@+# Two Sentry Drones with the gun, which a war factory researches from frame 20 to 919, parked from+# frame 30 so they have long gone invisible when three Rebels walk past them 100 to the east and a+# Technical parks beside them on frame 1000. Nobody orders the drones to do anything.+#+# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -takeover+# -side 0 FactionAmerica -side 1 FactionGLA -seed 1 -maxframes 1700+# -scenario sentrydrone -logPrefix sentrydrone_+#+# Measured 2026-10-05. Before, with EA's AutoAcquireEnemiesWhenIdle = Yes, the hidden drones never+# fired: the frame 1690 tally had all three Rebels and the Technical alive and untouched. With+# Stealthed added (FixesReforged.ini) they open fire and all four are dead by then. A drone spawned+# beside the enemy fired either way, because it had not gone invisible yet.++5 spawn 0 AmericaPowerPlant 1 700 2700+5 spawn 0 AmericaWarFactory 1 700 3000+20 shiftupgrade 0 AmericaWarFactory Upgrade_AmericaSentryDroneGun+30 spawn 0 AmericaVehicleSentryDrone 2 1200 3700 20+1000 spawn 1 GLAInfantryRebel 3 1300 3900 14+1000 spawn 1 GLAVehicleTechnical 1 1300 3760+1000 move 1 GLAInfantryRebel 1300 3500+1000 tally 0 AmericaVehicleSentryDrone+1690 tally 1 GLAInfantryRebel+1690 tally 1 GLAVehicleTechnical*+1690 tally 0 AmericaVehicleSentryDrone