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
docs(changelog): measured uss bender launch and a shellpaths lane for it
Olcay Seygandffa1ddef4f7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 96e5690f9..f3c7bd2c4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -365,7 +365,7 @@ found and fixed, EA's own, not port damage.**- Tell a tank to fire at the ground and it fires from where it stands. On any slope the game read the spot as hidden behind the very hill it was lying on, so a tank with the spot well inside its range drove off looking for a better angle, swinging its hull round under its own turret, and fired on the way. Pulled off a building to shell the ground 140 behind them, a Battlemaster took 84 frames to its first shell on the new spot and now takes 45, which is how long its turret needs to come round, and a pair of Scorpions that used to wander about 200 away over eight seconds now stay where they were put. Replays recorded before this play back differently.- Tank shells fly straight at the target. EA's shell climbed ten over the highest ground on the way and dropped back down, so once the shells glowed, every Crusader shot looked like a lob: it left the barrel 12 degrees high, rose 7 over the line and hit coming down at 25 degrees. Now it flies the line, rising off it by nothing, and only a hill between the tank and its target still lifts it over. This goes for every tank cannon, the Battlemaster, Overlord, Scorpion and Marauder too.- Artillery shells leave along the barrel. A Nuke Cannon's shell used to come out six and a half degrees under its raised barrel and jerk onto its arc; it now leaves the muzzle at the barrel's angle and the arc grows from there. Inferno and Nuke Cannon shells still lob as high as they did.-- The Fire Base lobs its shells again. Its howitzer fires the tanks' shell, so once tank shells went straight it fired flat as well: the barrel stood 46 degrees up and the shell went out ten degrees down, straight along the line to the target. A shell from a raised barrel now follows the barrel, climbs 35 over the line on a 105 shot and drops onto the target at about 67 degrees, and the Air Force, Laser and Superweapon generals' Fire Bases do the same. Tank barrels sit level, so tank shells still fly straight, at a target close below them too. The campaign's battleships had it the other way round: the front turret's art faces backward, and its shells left 12 degrees under barrels drawn 12 degrees up (20 under on the USS Bender). They now leave along the barrel and still land on the target.+- The Fire Base lobs its shells again. Its howitzer fires the tanks' shell, so once tank shells went straight it fired flat as well: the barrel stood 46 degrees up and the shell went out ten degrees down, straight along the line to the target. A shell from a raised barrel now follows the barrel, climbs 35 over the line on a 105 shot and drops onto the target at about 67 degrees, and the Air Force, Laser and Superweapon generals' Fire Bases do the same. Tank barrels sit level, so tank shells still fly straight, at a target close below them too. The campaign's battleships were off the other way: the front turret's art faces backward, the game read its barrels as pointing down, and the demo battleship's shells went out flat under barrels drawn 12 degrees up while the USS Bender's went up at 43 from barrels at 20. Both now leave along the barrel and still land on the target.- A SCUD or a Tomahawk flies one smooth curve to its target. A SCUD went straight up, flipped over the top at six degrees a frame, glided flat for a moment and then kinked again into its dive. Now it rolls over and comes down in a single sweep that only ever eases off, its sharpest turn 4.6 degrees a frame. The Scud Storm takes the same curve and lands within half a second of when it did. Replays recorded before this play back differently.- Machine gun fire looks fast. The tracers of a Humvee, a Technical or a Quad Cannon crawled across the field at 300 a second and took half a second to reach a target 150 away; they now cross it in a tenth of a second, at 1,500, as streaks twice as long. Rangers, Rebels, Gattling Tanks and Cannons, Comanches and the Spectre got the same treatment. Only the picture changed: every bullet lands when it always did.diff --git a/GeneralsMD/Code/Data/Scenarios/shellpaths.txt b/GeneralsMD/Code/Data/Scenarios/shellpaths.txtindex 296869be3..5f10691f5 100644--- a/GeneralsMD/Code/Data/Scenarios/shellpaths.txt+++ b/GeneralsMD/Code/Data/Scenarios/shellpaths.txt@@ -1,8 +1,9 @@# Projectile flight paths, one launcher per lane, each shooting an unarmed target: tank shell# (Crusader), lobbed shells (Inferno Cannon, Nuke Cannon), missiles (Scud Launcher, Tomahawk,# Rocket Buggy), tank shells out of raised barrels (the four Fire Bases, the base one at about 105 and-# then 160; the demo battleship at 330) and tank shells on uneven ground (a Crusader up a slope at-# 100, a Scorpion down one at 75, an Overlord at a car 40 away and 10 degrees below). The paths are+# then 160; the demo battleship at 330; the USS Bender's own shell at 230) and tank shells on+# uneven ground (a Crusader up a slope at 100, a Scorpion down one at 75, an Overlord at a car 40+# away and 10 degrees below). The paths are# only in the log with a temporary per-frame trace of each projectile's position and nose, a# DEBUG_LOG in DumbProjectileBehavior::update and MissileAIUpdate::update.#@@ -16,12 +17,16 @@# degrees up while the shell flew the line, 9 to 12 degrees down, because StraightWhenClear never# looked at the barrel. It now leaves at 44 and 51 and comes down at 66 to 71. The Air Force, Laser# and Superweapon Fire Bases do the same (barrel 38 to 57, leave 1.4 under it). Every tank barrel-# reads -2.5 or 0, since the logic never tilts a hull on a slope, and every tank shell, the Overlord's-# at 10 degrees down included, still flies the line. The battleship's front turret is aimed 12 up but-# its launch matrix read 12 down (its art faces backward, it has no launch bone, and the identity-# matrix was turned by the art angle anyway), so its shells flew the line. It now reads 12 up: the-# shell leaves at 11, peaks 19 over the line on a 330 shot and comes down on the car at 17. Inferno and Nuke Cannon shells are-# unchanged to the tenth of a degree.+# reads -2.5 or 0, since the logic never tilts a hull on a slope, and every tank shell, the+# Overlord's at 10 degrees down included, still flies the line. The battleships' front turret is aimed 12 up (20 on the USS Bender)+# but its launch matrix read 12 down (20 down): its art faces backward, it has no launch bone, and the+# identity matrix was turned by the art angle anyway. The demo battleship's shell flew the line and+# the Bender's took EA's arc, out at 43. Both now leave along the barrel: the demo's at 11, in at 17,+# peaking 19 over the line at 330; the Bender's at 21, in at 76, its own arc 63 over the line at+# 230. Inferno and Nuke Cannon shells are unchanged to the tenth of a degree.+#+# A battleship's shell starts about 65 beyond the drawn muzzle: with no launch bone the logic launches+# from the ship's origin swung round the turret's pivot, 180 to 190 from the ship's centre.## Sharpest nose turn in one frame, before and after straight tank shells, barrel-led lobs and the# cruise missiles' single curve (2026-10-13): tank shell 13.7 to 1.9 and 7.2 to 0 over the line, Nuke@@ -53,6 +58,8 @@30 spawn 1 CarSUV01 1 250 126030 spawn 0 AmericaVehicleBattleShipDemo 1 1400 155030 spawn 1 CarTaxiCab01 1 1000 1250+30 spawn 0 AmericaVehicleBattleShipUSSBender 1 1400 1100+30 spawn 1 CarBug1 1 1000 100030 spawn 0 ChinaTankOverlord 1 1150 172030 spawn 1 CarTaxiCab02 1 1150 165030 spawn 0 SupW_AmericaTankCrusader 1 850 1600@@ -71,6 +78,7 @@60 attack 0 Lazr_AmericaFireBase 1 CarCompact60 attack 0 SupW_AmericaFireBase 1 CarSUV0160 attack 0 AmericaVehicleBattleShipDemo 1 CarTaxiCab01+60 attack 0 AmericaVehicleBattleShipUSSBender 1 CarBug160 attack 0 ChinaTankOverlord 1 CarTaxiCab0260 attack 0 SupW_AmericaTankCrusader 1 CarCamaro60 attack 0 GLATankScorpion 1 CarTaxiCab04