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): fire wall burns where it lands, EA's inherited velocity
Olcay Seygana71762c884a5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6c99079e0..3e268502a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -510,6 +510,8 @@ found and fixed — EA's own, not port damage.**## Weapons and units that were quietly wrong+- The Dragon Tank's Fire Wall burns where you put it again. An earlier change in this build handed each patch of the wall the full speed of the flame that lit it, so the fire slid off across the map: in one test the patches came to rest anywhere from 155 to 1,050 away from the tank, 800 on average, setting fire to whatever stood in the way. They now stop 120 to 180 from the tank, a little past where the flames land, as they did in the original game. Napalm bombs and the wrecks of shot-down planes and drones keep their original drift too. Replays recorded before this change play out differently.+- A bunker buster shot down on the way in no longer clears out the building it was aimed at. It emptied the bunker from wherever it happened to be destroyed - a Point Defence Laser did not save you, it just moved the explosion.- A Battle Bus in its wrecked form takes attack orders again. Every order you gave it was dropped on the way, because the crew inside are 'held' and held units were skipped.- A sniper cannot pick at an empty Stinger Site. The rule that stops snipers hurting empty buildings only counted passengers, and a Stinger Site's men are spawned, not carried.diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifestindex 8fa63647e..fe8a5ea59 100644--- a/GeneralsMD/Code/BuildFingerprint.manifest+++ b/GeneralsMD/Code/BuildFingerprint.manifest@@ -108,6 +108,8 @@ Data/Scenarios/comanchepods.txtData/Scenarios/comturret.txtData/Scenarios/crowdbattle.txtData/Scenarios/defencereach.txt+Data/Scenarios/dragonfirewall.txt+Data/Scenarios/dragonflame.txtData/Scenarios/driveby.txtData/Scenarios/empfriendly.txtData/Scenarios/explreel.txtdiff --git a/GeneralsMD/Code/Data/Scenarios/dragonfirewall.txt b/GeneralsMD/Code/Data/Scenarios/dragonfirewall.txtnew file mode 100644index 000000000..c9030e616--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/dragonfirewall.txt@@ -0,0 +1,18 @@+# The Dragon Tank's fire wall from its button. The Dragon stands 100 west of the spot and has to+# close to the fire wall's 25 range first.+#+# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover+# -side 0 FactionChina -side 1 FactionAmerica -seed 1 -maxframes 600+# -scenario dragonfirewall -logPrefix dragonfirewall_+#+# Measured 2026-10-06 with a temporary log of every flame's detonation and every FireWallSegment's+# position when DeletionUpdate removed it. The Dragon stops at (676,904), 24 short of the spot, and+# sweeps; 201 flames burst 68 to 85 from it (mean 70), each lighting one segment, 143 in all.+#+# segment end, distance from the Dragon min max mean+# OCL INHERIT_VELOCITY as addVelocityTo 155 1047 807 9 units a frame inherited whole+# OCL INHERIT_VELOCITY as applyForce (EA) 123 179 164 the same / mass 50++30 spawn 0 ChinaTankDragon 1 600 920+60 weaponat 0 ChinaTankDragon 700 920 secondarydiff --git a/GeneralsMD/Code/Data/Scenarios/dragonflame.txt b/GeneralsMD/Code/Data/Scenarios/dragonflame.txtnew file mode 100644index 000000000..c5ae31b98--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/dragonflame.txt@@ -0,0 +1,17 @@+# The Dragon Tank's plain flame on a Crusader 70 away, inside its 75.+#+# generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover+# -side 0 FactionChina -side 1 FactionAmerica -seed 1 -maxframes 600+# -scenario dragonflame -logPrefix dragonflame_+#+# Measured 2026-10-06: every one of 262 flames burst on its fuel 106 from the Dragon, which is EA's+# FuelLifetime 350 at the locomotor's 300 a second. The attack went out with no victim, and the+# Crusader was still at 480 of 480 on frame 590; left alone, neither tank fired at the other at all,+# so the two seats may not be enemies in this setup. Not explained yet.++30 spawn 0 ChinaTankDragon 1 600 920+30 spawn 1 AmericaTankCrusader 1 670 920+60 attack 0 ChinaTankDragon 1 AmericaTankCrusader+120 tally 1 AmericaTankCrusader+590 tally 1 AmericaTankCrusaderdiff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cppindex 8fef3a283..25f58e9d6 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp@@ -1045,10 +1045,11 @@ protected:PhysicsBehavior *objectPhysics = obj->getPhysics();if( sourcePhysics && objectPhysics ){- // this is a velocity, not a force: applyForce divides by mass, so heavy debris- // used to inherit almost none of its source's motion.- objectPhysics->addVelocityTo( sourcePhysics->getVelocity() );- }+ // EA's: the source's velocity applied as a force, so the new object keeps 1/mass of it.+ // EA's masses are tuned against that. A Dragon's fire wall segment (mass 50) took the+ // whole 9 units a frame of the flame that spawned it as a velocity and slid up to 1000+ // units away; a napalm bomb (mass 75) would fly on as fast as its plane.+ objectPhysics->applyForce( sourcePhysics->getVelocity() ); }}if( BitTest( m_disposition, LIKE_EXISTING ) )