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(cinema): scenarios and shot lists for the 2.4.0 Shorts
Olcay Seygan12129da959b0
diff --git a/GeneralsMD/Code/Data/Cinema/s240_beach.txt b/GeneralsMD/Code/Data/Cinema/s240_beach.txtnew file mode 100644index 000000000..1fb7bedb6--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_beach.txt@@ -0,0 +1,7 @@+# Scenarios/s240_beach.txt on Flash Effect, wide: looking north across the fight on the sand to+# the sea, a slow turn while the two lines meet.++12.5 cut 1700 1480 0.53 0 10+12.6 orbit -10 13+19.0 shot+25.9 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_bridge.txt b/GeneralsMD/Code/Data/Cinema/s240_bridge.txtnew file mode 100644index 000000000..8786e2c4f--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_bridge.txt@@ -0,0 +1,9 @@+# Scenarios/s240_bridge.txt on Golden Oasis: looking north-east along the long bridge from its+# south-west end, the deck receding up the frame with its shadow on the water to the left, the+# camera pushing along it more slowly than the column drives.++7.7 cut 2690 1240 0.48 40 6+7.8 move 2830 1400 15+10.0 shot+18.0 shot+23.9 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_heli.txt b/GeneralsMD/Code/Data/Cinema/s240_heli.txtnew file mode 100644index 000000000..2381e67eb--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_heli.txt@@ -0,0 +1,13 @@+# The 2.4.0 Shorts' helicopter takes over Scenarios/s240_heli.txt on Fortress Avalanche, looking+# down steeper than the game's own tilt so a hovering helicopter draws close to its ground point:+# the Comanche from behind, the Battlemasters at the top of the frame, backing down the frame+# towards the camera while it fires up it, the camera following it once it backs away; then the+# Helix held still with the Crusader circling it. Relative zoom 0.52 (absolute 1.81) drew the+# Comanche about 50 pixels long, too small to read; 0.35 is absolute 1.2.++7.7 cut 1000 2200 0.35 0 -20+11.0 follow AmericaVehicleComanche+12.5 shot+17.7 cut 3300 2030 0.42 0 -12+24.0 shot+31.3 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_hook_hud.txt b/GeneralsMD/Code/Data/Cinema/s240_hook_hud.txtnew file mode 100644index 000000000..2954e72ce--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_hook_hud.txt@@ -0,0 +1,19 @@+# The 2.4.0 Shorts' hook from a player's seat: Scenarios/v240_hook.txt on Fortress Avalanche run+# without -observer, so seat 0 (America) is the local player, with the interface back on. A+# player's view of the fight, heading 0 and pitch 0, wide enough for the superweapon banners under+# the clock, the countdowns in the top right and the centred command bar. The shoot script selects+# the army with Ctrl+Q over -control before the range starts.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -multiInstance+# -particlecap 5000 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 3+# -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA -seed 7+# -scenario v240_hook -cinema s240_hook_hud -control 8811 -video 760 1110 s240_hook_hud -maxframes 1120++3.0 hud on+3.0 cut 1000 2060 0.76 0 0+# repeated so a pointer resting on the window edge cannot scroll the view away for long+24.0 cut 1000 2060 0.76 0 0+27.0 cut 1000 2060 0.76 0 0+30.0 cut 1000 2060 0.76 0 0+33.0 cut 1000 2060 0.76 0 0+36.9 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_hook_wide.txt b/GeneralsMD/Code/Data/Cinema/s240_hook_wide.txtnew file mode 100644index 000000000..af0673a4e--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_hook_wide.txt@@ -0,0 +1,18 @@+# The 2.4.0 Shorts' opening, from Scenarios/v240_hook.txt on Fortress Avalanche, watched with no+# interface. First the three armies in contact from the south-west with the left lake in shot+# (frames 600 to 810), then the superweapons wide from the south-west, pushing in slowly as the+# nuke, the particle beam and the SCUD storm land (frames 810 to 1260).+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 5000 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 3+# -takeover -side 0 FactionAmerica -side 1 FactionChina -side 2 FactionGLA -seed 7+# -scenario v240_hook -cinema s240_hook_wide -video 600 1260 s240_hook_wide -maxframes 1270++19.5 cut 1000 2100 0.64 -135 10+19.6 orbit 10 8+23.5 shot+27.0 cut 1000 2120 0.8 30 10+27.1 zoom 0.66 14+27.1 orbit 12 14+35.0 shot+41.9 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_hud.txt b/GeneralsMD/Code/Data/Cinema/s240_hud.txtnew file mode 100644index 000000000..93478a6e6--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_hud.txt@@ -0,0 +1,14 @@+# Scenarios/s240_hud.txt on Fortress Avalanche from the local player's seat with the interface on:+# a player's view of the base, heading 0, pitch 0, at about the release's own furthest zoom, the+# GLA camp along the top edge. Repeated cuts so a pointer resting on the window edge cannot scroll+# it away for long.++3.0 hud on+3.0 cut 1000 2080 0.76 0 0+22.5 cut 1000 2080 0.76 0 0+26.0 cut 1000 2080 0.76 0 0+29.0 cut 1000 2080 0.76 0 0+32.0 cut 1000 2080 0.76 0 0+35.0 cut 1000 2080 0.76 0 0+38.0 cut 1000 2080 0.76 0 0+40.2 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_md.txt b/GeneralsMD/Code/Data/Cinema/s240_md.txtnew file mode 100644index 000000000..7831946c3--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_md.txt@@ -0,0 +1,20 @@+# The 2.4.0 Shorts' missile defence takes over Scenarios/v240_md.txt on Fortress Avalanche. Each+# fight is laid along the frame's height so it fits an 864 pixel column: the shooters at the top,+# the tank low in the frame with the missiles coming down at it, and the King Raptors flying up and+# down the frame over the Stinger Site rather than across it.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionGLA -seed 7 -scenario v240_md+# -cinema s240_md -video 100 720 s240_md -maxframes 730++# Avenger under five Tank Hunters, frames 128 to 200+3.3 cut 1000 2010 0.32 0 10+5.5 shot+# Paladin under four Rocket Buggies, frames 322 to 375+9.5 cut 3300 1960 0.32 0 10+11.5 shot+# King Raptors over the Stinger Site, looking west, frames 520 to 700+17.0 cut 2960 1800 0.44 -90 12+20.5 shot+23.9 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_snow.txt b/GeneralsMD/Code/Data/Cinema/s240_snow.txtnew file mode 100644index 000000000..94e14096b--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_snow.txt@@ -0,0 +1,7 @@+# Scenarios/s240_snow.txt on Fortress Avalanche, wide: the fight on the snow plateau seen across+# the line between the two armies, a slow turn.++5.0 cut 2110 2070 0.62 -45 10+5.1 orbit 10 13+12.0 shot+18.5 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_tank.txt b/GeneralsMD/Code/Data/Cinema/s240_tank.txtnew file mode 100644index 000000000..54ad0e6f8--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_tank.txt@@ -0,0 +1,14 @@+# The 2.4.0 Shorts' tank takes over Scenarios/s240_tank.txt on Fortress Avalanche, wider than+# v240_tank.txt (absolute zoom 1.2 to 1.3 where that list was 0.5 to 0.7) and held still, so each+# moment stays inside an 864 pixel column of the 1920 frame.++# Marauder, coming towards the camera from the west, the crawlers to its right+5.8 cut 1000 2040 0.38 -70 8+9.5 shot+# Crusader, driving up and right at 45 degrees, braking, backing down and left+13.2 cut 905 2400 0.35 45 6+19.0 shot+# Humvee with Rangers aboard, coming towards the camera, rebels on its right+23.8 cut 3270 1990 0.38 -90 8+27.0 shot+30.3 enddiff --git a/GeneralsMD/Code/Data/Cinema/s240_town.txt b/GeneralsMD/Code/Data/Cinema/s240_town.txtnew file mode 100644index 000000000..3af753f4b--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/s240_town.txt@@ -0,0 +1,7 @@+# Scenarios/s240_town.txt on Tournament Desert, wide: the crossroads seen diagonally, the two+# armies meeting between the town houses, held with a slow push.++11.5 cut 1020 1350 0.56 45 10+11.6 zoom 0.48 14+19.0 shot+25.9 enddiff --git a/GeneralsMD/Code/Data/Scenarios/s240_beach.txt b/GeneralsMD/Code/Data/Scenarios/s240_beach.txtnew file mode 100644index 000000000..6dcbe2176--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_beach.txt@@ -0,0 +1,27 @@+# A wide battle on the palm beach of Flash Effect for the 2.4.0 Shorts: America from the grass in+# the west, China from the grass in the east, both attack-moving onto the sand at 1700,1500 with+# the sea behind it, an A-10 strike and a carpet bomb called into the middle.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 5000 -map "Maps\Flash Effect\Flash Effect.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7 -scenario s240_beach+# -cinema s240_beach -video 390 780 s240_beach -maxframes 790++10 spawn 0 AmericaCommandCenter 1 start0:240:60+10 spawn 1 ChinaCommandCenter 1 start1:-260:60++30 spawn 0 AmericaTankCrusader 10 1180 1460 36+30 spawn 0 AmericaTankPaladin 4 1100 1520 40+30 spawn 0 AmericaInfantryRanger 12 1250 1420 18+30 spawn 0 AmericaVehicleComanche 3 1080 1400 60+30 spawn 0 AmericaVehicleTomahawk 2 1060 1560 40+30 spawn 1 ChinaTankBattleMaster 10 2220 1460 40+30 spawn 1 ChinaTankOverlord 3 2300 1520 50+30 spawn 1 ChinaTankGattling 3 2180 1400 36+30 spawn 1 ChinaInfantryRedguard 12 2150 1500 18+30 spawn 1 ChinaVehicleHelix 2 2320 1400 60+60 attackmove 0 * 1700 1500+60 attackmove 1 * 1700 1500++450 power 0 AmericaCommandCenter 1760 1480 SuperweaponA10ThunderboltMissileStrike+520 power 1 ChinaCommandCenter 1640 1520 Early_SuperweaponChinaCarpetBombdiff --git a/GeneralsMD/Code/Data/Scenarios/s240_bridge.txt b/GeneralsMD/Code/Data/Scenarios/s240_bridge.txtnew file mode 100644index 000000000..3d8b6899a--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_bridge.txt@@ -0,0 +1,13 @@+# A column crossing the long stone bridge of Golden Oasis for the 2.4.0 Shorts' bridge shadow shot:+# six Crusaders and two Humvees from bpark_l.txt's spawn on the south-west bank, sent to the far+# bank past the north end (bpark_e.txt's spawn), so they drive the whole deck.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Golden Oasis\Golden Oasis.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionGLA -seed 1 -scenario s240_bridge+# -cinema s240_bridge -video 230 720 s240_bridge -maxframes 730++30 spawn 0 AmericaTankCrusader 6 2417 893 30+30 spawn 0 AmericaVehicleHumvee 2 2360 840 30+60 move 0 AmericaTankCrusader 3150 1800+75 move 0 AmericaVehicleHumvee 3150 1800diff --git a/GeneralsMD/Code/Data/Scenarios/s240_heli.txt b/GeneralsMD/Code/Data/Scenarios/s240_heli.txtnew file mode 100644index 000000000..afe6c0fa6--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_heli.txt@@ -0,0 +1,36 @@+# The 2.4.0 Shorts' helicopter takes on the open grass of Fortress Avalanche: a Comanche shooting+# three Battlemasters 250 to its north is sent 380 straight back and backs away with its nose and+# its guns still on them, then a gattling Helix holds its heading while its turret follows a+# Crusader driving circles round it (v240_heli.txt's Helix, started earlier).+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7 -scenario s240_heli+# -cinema s240_heli -video 230 940 s240_heli -maxframes 950+#+# Flash Effect's beach was tried first (2026-10-04) and dropped: the oil derrick cluster at+# 1700,1700 filled the frame and both helicopters drew at the top edge of a pitch 12 view, about+# 490 pixels above their ground point at absolute zoom 1.42.+#+# Moments: Comanche attacking 150 to 330, backing away firing 330 to 480; Helix 540 to 940.++30 spawn 1 ChinaTankBattleMaster 3 1000 2350 30+30 spawn 0 AmericaVehicleComanche 1 1000 2100+120 attack 0 AmericaVehicleComanche 1 ChinaTankBattleMaster+330 move 0 AmericaVehicleComanche 1000 1720++30 spawn 1 ChinaVehicleHelix 1 3300 2000+40 shiftupgrade 1 ChinaVehicleHelix Upgrade_ChinaHelixGattlingCannon+520 spawn 0 AmericaTankCrusader 1 3400 2000+540 attack 1 ChinaVehicleHelix 0 AmericaTankCrusader+560 move 0 AmericaTankCrusader 3371 2071+620 move 0 AmericaTankCrusader 3300 2100+680 move 0 AmericaTankCrusader 3229 2071+740 move 0 AmericaTankCrusader 3200 2000+800 move 0 AmericaTankCrusader 3229 1929+860 move 0 AmericaTankCrusader 3300 1900+920 move 0 AmericaTankCrusader 3371 1929++330 tally 1 ChinaTankBattleMaster+500 tally 1 ChinaTankBattleMaster+940 tally 0 AmericaTankCrusaderdiff --git a/GeneralsMD/Code/Data/Scenarios/s240_hud.txt b/GeneralsMD/Code/Data/Scenarios/s240_hud.txtnew file mode 100644index 000000000..e834f2e19--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_hud.txt@@ -0,0 +1,30 @@+# A calm China base on the open grass of Fortress Avalanche for the 2.4.0 Shorts' HUD shot, seat 0+# being the local player: barracks (its ten empty garrison boxes), a bunker with three Red Guards in+# it (three of five boxes lit), two power plants, a war factory, two oil derricks paying in (the+# "+N/s" beside the money) and two Nuke Cannons shelling a GLA camp 340 to the north, so their+# amber reload bars fill while they are selected. The shoot script selects them with Ctrl+W over+# -control and later opens the console's trainer panel.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -multiInstance+# -particlecap 2500 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 2+# -takeover -side 0 FactionChina -side 1 FactionGLA -seed 7 -scenario s240_hud+# -cinema s240_hud -control 8812 -video 690 1200 s240_hud -maxframes 1210++# China's radar is an upgrade at the command center (Upgrade_ChinaRadar, 20 s); without it the+# radar panel is an empty brown box.+40 shiftupgrade 0 ChinaCommandCenter Upgrade_ChinaRadar++30 spawn 0 ChinaBarracks 1 820 2130+30 spawn 0 ChinaPowerPlant 2 790 1975 95+30 spawn 0 ChinaWarFactory 1 1210 2000+30 spawn 0 ChinaBunker 1 1060 2265+30 spawn 0 TechOilDerrick 2 1260 2200 110+30 spawn 0 ChinaVehicleNukeLauncher 2 960 2130 70+30 spawn 0 ChinaInfantryRedguard 3 1040 2190 16+30 spawn 0 ChinaInfantryRedguard 5 900 2260 16+60 enter 0 ChinaInfantryRedguard 0 ChinaBunker++30 spawn 1 GLABarracks 1 1000 2480+30 spawn 1 GLASupplyStash 1 860 2480+30 spawn 1 GLAArmsDealer 1 1140 2490+90 attack 0 ChinaVehicleNukeLauncher 1 GLABarracksdiff --git a/GeneralsMD/Code/Data/Scenarios/s240_snow.txt b/GeneralsMD/Code/Data/Scenarios/s240_snow.txtnew file mode 100644index 000000000..3b8c44ff9--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_snow.txt@@ -0,0 +1,23 @@+# A wide battle on the snow plateau of Fortress Avalanche, between its two lakes, for the 2.4.0+# Shorts: America from the south-west and China from the north-east, spawned close on the snow+# round 2110,2070 (the middle of the snow in the probe of 2026-10-03) and attack-moving onto it,+# an A-10 strike called into the middle.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 5000 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7 -scenario s240_snow+# -cinema s240_snow -video 150 560 s240_snow -maxframes 570++10 spawn 0 AmericaCommandCenter 1 start0:240:60++30 spawn 0 AmericaTankCrusader 8 2000 1990 36+30 spawn 0 AmericaTankPaladin 3 1950 1940 40+30 spawn 0 AmericaInfantryRanger 10 2060 2020 18+30 spawn 1 ChinaTankBattleMaster 8 2220 2150 40+30 spawn 1 ChinaTankOverlord 2 2270 2200 50+30 spawn 1 ChinaTankGattling 3 2180 2200 36+30 spawn 1 ChinaInfantryRedguard 10 2160 2120 18+60 attackmove 0 * 2110 2070+60 attackmove 1 * 2110 2070++300 power 0 AmericaCommandCenter 2120 2080 SuperweaponA10ThunderboltMissileStrikediff --git a/GeneralsMD/Code/Data/Scenarios/s240_tank.txt b/GeneralsMD/Code/Data/Scenarios/s240_tank.txtnew file mode 100644index 000000000..3ad972a0c--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_tank.txt@@ -0,0 +1,28 @@+# The 2.4.0 Shorts' tank takes on Fortress Avalanche: v240_tank.txt's Marauder past four Troop+# Crawlers and its Crusader that pulls away, brakes and backs up, plus a Humvee carrying four+# Rangers past six rebels on the grass by the right lake, the Rangers shooting from inside.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Fortress Avalanche\Fortress Avalanche.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 1 -scenario s240_tank+# -cinema s240_tank -video 175 910 s240_tank -maxframes 920+#+# Moments: Marauder 190 to 390, Crusader 400 to 700, Humvee 720 to 900.++5 spawn 0 GLATankMarauder 1 750 2000+20 spawn 1 ChinaVehicleTroopCrawler 4 1000 2100 14+30 playermove 0 GLATankMarauder 1250 2000++400 spawn 0 AmericaTankCrusader 1 800 2400+430 move 0 AmericaTankCrusader 1000 2400+560 move 0 AmericaTankCrusader 910 2400++30 spawn 0 AmericaVehicleHumvee 1 3100 1950+30 spawn 0 AmericaInfantryRanger 4 3060 1900 20+60 enter 0 AmericaInfantryRanger 0 AmericaVehicleHumvee+700 spawn 1 GLAInfantryRebel 6 3280 2060 20+740 move 0 AmericaVehicleHumvee 3480 1950++20 tally 1 ChinaVehicleTroopCrawler+400 tally 1 ChinaVehicleTroopCrawler+900 tally 1 GLAInfantryRebeldiff --git a/GeneralsMD/Code/Data/Scenarios/s240_town.txt b/GeneralsMD/Code/Data/Scenarios/s240_town.txtnew file mode 100644index 000000000..628e64a87--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/s240_town.txt@@ -0,0 +1,26 @@+# A wide battle at the town crossroads of Tournament Desert (1020,1350) for the 2.4.0 Shorts:+# America from the south, the GLA from the north, both attack-moving onto the crossroads, an A-10+# strike and an anthrax bomb called into it.+#+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 5000 -map "Maps\Tournament Desert\Tournament Desert.map" -autoskirmish 2+# -takeover -side 0 FactionAmerica -side 1 FactionGLA -seed 7 -scenario s240_town+# -cinema s240_town -video 360 780 s240_town -maxframes 790++10 spawn 0 AmericaCommandCenter 1 start0:240:60+10 spawn 1 GLACommandCenter 1 start1:-260:0++30 spawn 0 AmericaTankCrusader 10 1020 960 36+30 spawn 0 AmericaTankPaladin 4 960 900 40+30 spawn 0 AmericaInfantryRanger 12 1080 1000 18+30 spawn 0 AmericaVehicleComanche 3 1000 860 60+30 spawn 1 GLATankScorpion 10 1020 1740 36+30 spawn 1 GLATankMarauder 4 960 1800 40+30 spawn 1 GLAVehicleRocketBuggy 6 1090 1790 32+30 spawn 1 GLAVehicleQuadCannon 3 1100 1700 36+30 spawn 1 GLAInfantryRebel 12 1000 1690 18+60 attackmove 0 * 1020 1350+60 attackmove 1 * 1020 1350++460 power 0 AmericaCommandCenter 1040 1330 SuperweaponA10ThunderboltMissileStrike+540 power 1 GLACommandCenter 990 1370 SuperweaponAnthraxBomb