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(cinema): stage the four-way fight tr_watch used to hope for
Olcay Seyganfe1438c644d3
diff --git a/GeneralsMD/Code/Data/Cinema/tr_oasis.txt b/GeneralsMD/Code/Data/Cinema/tr_oasis.txtindex de74ab1fd..7c2179540 100644--- a/GeneralsMD/Code/Data/Cinema/tr_oasis.txt+++ b/GeneralsMD/Code/Data/Cinema/tr_oasis.txt@@ -1,11 +1,13 @@-# Trailer: a low pass over the oasis water and the stone bridge, for the ground detail.+# Trailer: a low pass over the oasis, off the water and onto the stone bridge, for the ground+# detail. It used to run the other way and spent its last four seconds on open water with nothing+# in it at all.## generals.exe -borderless -msaa 0 -quickstart -noshellmap -observer -multiInstance# -autoskirmish 2 -aidiff easy -seed 5 -map "Maps\Golden Oasis\Golden Oasis.map"# -cinema tr_oasis -video 300 690 tr_oasis -maxframes 710-10 cut 3040 1450 0.75 0 -14-11 route 12 3040 1330 3040 1210 2980 1130-11 zoom 0.5 12+10 cut 2990 1130 0.5 0 -14+11 route 12 3040 1240 3040 1360 3040 1470+11 zoom 0.75 1219 orbit -30 523 enddiff --git a/GeneralsMD/Code/Data/Cinema/tr_watch.txt b/GeneralsMD/Code/Data/Cinema/tr_watch.txtindex 779289697..982d9acf3 100644--- a/GeneralsMD/Code/Data/Cinema/tr_watch.txt+++ b/GeneralsMD/Code/Data/Cinema/tr_watch.txt@@ -1,12 +1,19 @@-# Trailer: the computer players' own match, framed by -autocamera rather than by a shot list.+# Trailer: four armies, two to a team, in one fight on Twilight Flame. The look point is the+# ground all four are attack-moving on, 2450,3650.## generals.exe -borderless -msaa 0 -quickstart -noshellmap -observer -multiInstance# -particlecap 2500 -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 4 -teams 2-# -aidiff brutal -seed 7 -side 0 FactionChina -side 1 FactionAmerica -side 2 FactionGLA-# -side 3 FactionChina -autocamera 6 -cinema tr_watch -video 16200 16740 tr_watch-# -maxframes 16760+# -takeover -side 0 FactionChina -side 1 FactionAmerica -side 2 FactionGLA -side 3 FactionChina+# -seed 7 -scenario trailer_fourway -cinema tr_watch -video 1350 1890 tr_watch -maxframes 1910#-# No camera verb runs, so the camera stays the one -autocamera moves: every six seconds it jumps to-# wherever the fighting is. The jumps are the cuts.+# This used to be the four computer players' own match framed by -autocamera, and neither half of+# that worked. -autocamera scores a 16 by 16 grid of cells by units times sides squared and looks at+# the centre of the best cell, so the camera lands up to 150 units off what it picked; and on this+# seed the best cell in eleven minutes of brutal AI held twelve units, parked, not shooting. The+# fight is staged now, like the other trailer scenes, and the four seats are the four colours.-558 end+44 cut 2450 3650 1.05 -45 -16+45 zoom 0.8 14+45 orbit 28 17+60 pitch -26 3+63 enddiff --git a/GeneralsMD/Code/Data/Scenarios/trailer_arrival.txt b/GeneralsMD/Code/Data/Scenarios/trailer_arrival.txtnew file mode 100644index 000000000..9afaf5e58--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/trailer_arrival.txt@@ -0,0 +1,17 @@+# Trailer: two hundred mixed units sent to one point on Twilight Flame, which they fill as a crowd+# rather than a queue.+#+# generals.exe -borderless -msaa 0 -quickstart -noshellmap -multiInstance+# -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -takeover -seed 7 -peacetime 20+# -scenario trailer_arrival -cinema tr_arrival -video 420 960 tr_arrival -maxframes 980+#+# Slot 1's start is 1733,4405 on that map, which is where the crowd is sent and where the camera is.++30 spawn 0 AmericaTankCrusader 70 start0:0:300 40+30 spawn 0 AmericaVehicleHumvee 30 start0:-320:300 34+30 spawn 0 AmericaTankPaladin 20 start0:320:300 40+30 spawn 0 AmericaInfantryRanger 60 start0:0:520 18+30 spawn 0 AmericaInfantryMissileDefender 20 start0:320:520 18++90 playermove 0 * 1135 3900+90 arrive 0 AmericaTankCrusader 1135 3900 450diff --git a/GeneralsMD/Code/Data/Scenarios/trailer_clash.txt b/GeneralsMD/Code/Data/Scenarios/trailer_clash.txtnew file mode 100644index 000000000..c65a803e7--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/trailer_clash.txt@@ -0,0 +1,45 @@+# Trailer: a combined-arms fight where both sides shoot back, fed by two more waves so it does not+# end after the first clash.+#+# generals.exe -borderless -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -takeover+# -side 0 FactionAmerica -side 1 FactionChina -seed 7 -scenario trailer_clash+# -cinema tr_clash -video 780 1320 tr_clash -maxframes 1340+#+# The two starts are about 1570 units apart, so the armies meet around frame 780.++30 spawn 0 AmericaTankCrusader 14 start0:0:260 40+30 spawn 0 AmericaTankPaladin 6 start0:-260:260 40+30 spawn 0 AmericaVehicleHumvee 8 start0:300:260 34+30 spawn 0 AmericaVehicleTomahawk 6 start0:0:120 40+30 spawn 0 AmericaInfantryRanger 20 start0:-120:380 18+30 spawn 0 AmericaInfantryMissileDefender 10 start0:180:380 18+30 spawn 0 AmericaVehicleComanche 4 start0:-400:200 60++30 spawn 1 ChinaTankBattleMaster 16 start1:0:-260 40+30 spawn 1 ChinaTankOverlord 4 start1:-260:-260 50+30 spawn 1 ChinaTankGattling 8 start1:300:-260 36+30 spawn 1 ChinaTankDragon 6 start1:-380:-180 36+30 spawn 1 ChinaVehicleInfernoCannon 6 start1:0:-120 40+30 spawn 1 ChinaInfantryRedguard 24 start1:-120:-380 18+30 spawn 1 ChinaInfantryTankHunter 10 start1:180:-380 18+30 spawn 1 ChinaVehicleHelix 2 start1:420:-200 60++60 attackmove 0 * start1+60 attackmove 1 * start0++900 spawn 0 AmericaTankCrusader 10 start0:0:260 40+900 spawn 0 AmericaInfantryRanger 14 start0:-120:380 18+900 spawn 0 AmericaVehicleHumvee 6 start0:300:260 34+900 spawn 1 ChinaTankBattleMaster 12 start1:0:-260 40+900 spawn 1 ChinaInfantryRedguard 16 start1:-120:-380 18+900 spawn 1 ChinaTankGattling 6 start1:300:-260 36+930 attackmove 0 * start1+930 attackmove 1 * start0++1500 spawn 0 AmericaTankPaladin 8 start0:-260:260 40+1500 spawn 0 AmericaVehicleTomahawk 4 start0:0:120 40+1500 spawn 1 ChinaTankOverlord 4 start1:-260:-260 50+1500 spawn 1 ChinaVehicleInfernoCannon 4 start1:0:-120 40+1530 attackmove 0 * start1+1530 attackmove 1 * start0diff --git a/GeneralsMD/Code/Data/Scenarios/trailer_corridor.txt b/GeneralsMD/Code/Data/Scenarios/trailer_corridor.txtnew file mode 100644index 000000000..e47dd30b8--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/trailer_corridor.txt@@ -0,0 +1,15 @@+# Trailer: a mixed column crossing Alpine Assault, which funnels it between the hills. The order is+# a player move, not a script move, because the lane behaviour is what a click sets off.+#+# generals.exe -borderless -msaa 0 -quickstart -noshellmap -multiInstance+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover -seed 3 -peacetime 20+# -scenario trailer_corridor -cinema tr_corridor -video 300 840 tr_corridor -maxframes 860++30 spawn 0 AmericaTankCrusader 34 start0:0:300 40+30 spawn 0 AmericaTankPaladin 10 start0:-300:300 40+30 spawn 0 AmericaVehicleHumvee 12 start0:300:300 34+30 spawn 0 AmericaInfantryRanger 26 start0:0:460 18+30 spawn 0 AmericaInfantryMissileDefender 12 start0:300:460 18++90 playermove 0 * start1+90 arrive 0 AmericaTankCrusader start1 300diff --git a/GeneralsMD/Code/Data/Scenarios/trailer_fourway.txt b/GeneralsMD/Code/Data/Scenarios/trailer_fourway.txtnew file mode 100644index 000000000..a86116e34--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/trailer_fourway.txt@@ -0,0 +1,43 @@+# Trailer: four armies, two to a team, walking into each other in the middle of Twilight Flame.+# All four seats attack-move on 2450,3650, which sits between the four start positions the map gives+# a four-player game: 537,3188, 1733,4205, 3196,4103 and 4361,3126. America and the GLA have about+# 900 units to cover and are there by second 25; the two Chinese seats are twice as far out and+# arrive around second 45, which is what the shot list films.+#+# generals.exe -borderless -msaa 0 -quickstart -noshellmap -observer -multiInstance+# -particlecap 2500 -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 4 -teams 2+# -takeover -side 0 FactionChina -side 1 FactionAmerica -side 2 FactionGLA -side 3 FactionChina+# -seed 7 -scenario trailer_fourway -cinema tr_watch+#+# The four-AI match this scene used to be filmed from never produced a fight worth looking at: the+# busiest cell -autocamera found in eleven minutes held twelve units, and they were parked.++30 spawn 0 ChinaTankBattleMaster 12 start0:0:200 40+30 spawn 0 ChinaTankGattling 4 start0:260:200 36+30 spawn 0 ChinaInfantryRedguard 16 start0:-160:320 18++30 spawn 1 AmericaTankCrusader 12 start1:0:200 40+30 spawn 1 AmericaTankPaladin 4 start1:-260:200 40+30 spawn 1 AmericaInfantryRanger 16 start1:160:320 18++30 spawn 2 GLATankScorpion 14 start2:0:-200 36+30 spawn 2 GLAVehicleTechnical 8 start2:280:-200 30+30 spawn 2 GLAInfantryRebel 18 start2:-160:-320 18++30 spawn 3 ChinaTankOverlord 4 start3:0:-200 50+30 spawn 3 ChinaVehicleInfernoCannon 4 start3:-260:-200 40+30 spawn 3 ChinaInfantryTankHunter 14 start3:160:-320 18++90 attackmove 0 * 2450 3650+90 attackmove 1 * 2450 3650+90 attackmove 2 * 2450 3650+90 attackmove 3 * 2450 3650++1200 spawn 0 ChinaTankBattleMaster 8 start0:0:200 40+1200 spawn 1 AmericaTankCrusader 8 start1:0:200 40+1200 spawn 2 GLATankScorpion 10 start2:0:-200 36+1200 spawn 3 ChinaVehicleInfernoCannon 4 start3:0:-200 40+1230 attackmove 0 * 2450 3650+1230 attackmove 1 * 2450 3650+1230 attackmove 2 * 2450 3650+1230 attackmove 3 * 2450 3650