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
test(data): jet flight filming scripts and s-turn scenario
Olcay Seyganc7aabb970edc
diff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_crash.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_crash.txtnew file mode 100644index 000000000..e00c875e5--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_crash.txt@@ -0,0 +1,21 @@+# The jet crash blast and fire over Scenarios/jetcrash.txt on Twilight Flame. Fixed frames looking+# down each lane from behind the plane's line (heading -60), not a follow: a follow lets go the+# moment the plane is killed in the air and the framing offset for its height goes with it, which+# jolts the picture. Looking along the line also forgives not knowing where along it the plane+# comes down. The Raptor's lane from 6 s, the B-52's from 26 s, each pushing in on the fire.+# Jets cruise high enough that a camera much below relative zoom 0.6 on this map sits level with them.+#+# generals_jetfilm.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500+# -quickstart -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetcrash -cinema jetfilm_crash -recordfps 120 -video 360 2460 jf_crash -maxframes 2470++# Seed 7, 2026-10-16: the Raptor is killed on frame 490 (8.2 s), comes down round 2300,3650 and+# skids burning to about 2450 along the strip; the B-52 hits on frame 1948 (32.5 s) just past its+# lane's Avengers and leaves a row of fires from about 2250 to 2400 (read off the frame, not logged). At 2250,3650 relative 0.9 the Raptor's fire sat on+# the top edge and the push-in lost it.+0.0 cut 2400 3650 0.8 -60 0+1.0 shot+9.6 zoom 0.6 5+26.0 cut 2280 4100 1.0 -60 0+33.0 zoom 0.75 5diff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_passclose.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_passclose.txtnew file mode 100644index 000000000..4f254ae77--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_passclose.txt@@ -0,0 +1,15 @@+# The hits of Scenarios/jetpass.txt on Twilight Flame, close on the target: the Overlord followed as+# it drives south from 2250,3300 to 2250,3000, looking north (heading 0) like the other two pass+# lists, recorded at 120 a second for slow motion. The Raptor's first run hits about 16.3 s and the+# second about 23.5 s; the MiG's run on the Battle Master passes behind.+#+# generals.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500 -quickstart+# -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetpass -cinema jetfilm_passclose -recordfps 120 -video 360 1680 jf2_passclose+# -maxframes 1690++# The follow has to come after the spawn: at 1.0 s, the spawn's own frame, it found no Overlord and+# the camera held 2250,3300 while the Overlord drove out of the bottom of the frame before the hit.+0.0 cut 2250 3300 0.5 0 -6+1.2 follow ChinaTankOverlorddiff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_passtail.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_passtail.txtnew file mode 100644index 000000000..03294dac3--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_passtail.txt@@ -0,0 +1,13 @@+# The Raptor's attack runs over Scenarios/jetpass.txt on Twilight Flame, ridden with: followed from+# its spawn, looking north (heading 0) like jetfilm_passwide and jetfilm_passclose so the three cut+# together without the screen direction flipping. Ordered onto the Overlord at 8.3 s, it runs out+# east, loops south and comes back west to hit at about 16.3 s, then goes round for a second run+# that lands about 23.5 s. Cut to jetfilm_passclose for the hits.+#+# generals.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500 -quickstart+# -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetpass -cinema jetfilm_passtail -video 360 1680 jf2_passtail -maxframes 1690++0.0 cut 1000 3420 0.75 0 -6+1.2 follow AmericaJetRaptordiff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_passwide.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_passwide.txtnew file mode 100644index 000000000..a8b483a7e--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_passwide.txt@@ -0,0 +1,12 @@+# The attack passes of Scenarios/jetpass.txt on Twilight Flame, side on and wide: looking north+# (heading 0) over the Overlord's lane, so the Raptor comes in from the left, fires, runs out to+# the right, banks round and comes back, with the MiG on the Battle Master behind it. Wide enough+# to hold the whole loop; the close takes are cut against it.+#+# generals.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500 -quickstart+# -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetpass -cinema jetfilm_passwide -video 360 1680 jf_passwide -maxframes 1690++0.0 cut 2450 3250 1.3 0 -8+1.0 shotdiff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_runway.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_runway.txtnew file mode 100644index 000000000..7aa0ad71f--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_runway.txt@@ -0,0 +1,13 @@+# Takeoff and landing over Scenarios/jetrunway.txt on Golden Oasis: the Raptor the airfield builds+# by about 22 s is followed from a three-quarter view of the runway with the sun behind the camera+# (heading 135, the isobase2 ground), from the taxi out at 23.3 s through the trip north and back+# to the circuit, final, flare and rollout. Cut the takeoff and the landing out of the one take.+#+# generals_jetfilm.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500+# -quickstart -noshellmap -observer -multiInstance -map "Maps\Golden Oasis\Golden Oasis.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetrunway -cinema jetfilm_runway -video 1380 4800 jf_runway -maxframes 4810++0.0 cut 2520 3370 0.6 135 2+1.0 shot+22.8 follow AmericaJetRaptordiff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_sturn.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_sturn.txtnew file mode 100644index 000000000..5201cba19--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_sturn.txt@@ -0,0 +1,11 @@+# The roll reversal over Scenarios/jetsturn.txt on Twilight Flame: the Raptor from behind the tail,+# held at heading -90 so its swings left and right read against a camera that does not turn with+# it. Relative zoom 0.6 and pitch 0 keep the eye above cruise height (see jetfilm_turn.txt).+#+# generals.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500 -quickstart+# -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetsturn -cinema jetfilm_sturn -video 90 720 jf_sturn -maxframes 730++0.0 cut 1000 3000 0.6 -90 0+1.2 follow AmericaJetRaptordiff --git a/GeneralsMD/Code/Data/Cinema/jetfilm_turn.txt b/GeneralsMD/Code/Data/Cinema/jetfilm_turn.txtnew file mode 100644index 000000000..673c37795--- /dev/null+++ b/GeneralsMD/Code/Data/Cinema/jetfilm_turn.txt@@ -0,0 +1,17 @@+# The banked jet reversal over Scenarios/jetturn.txt on Twilight Flame: the Raptor from behind the+# tail flying east, and the camera orbiting with it through the 180 degree turn ordered at 5 s so+# the roll stays readable the whole way round. The pitch comes down as the camera ends up looking+# west, so the map's west edge stays out of the top of the frame. The camera has to stand well above+# cruise height: at relative zoom 0.4 and pitch +8 the eye was level with the jet, the frame was all+# ground with the jet cut off at the top edge, and after the turn the follow lost it entirely.+#+# generals_jetfilm.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -particlecap 2500+# -quickstart -noshellmap -observer -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map"+# -autoskirmish 2 -takeover -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetturn -cinema jetfilm_turn -video 90 900 jf_turn -maxframes 910++0.0 cut 1000 3000 0.6 -90 0+1.2 follow AmericaJetRaptor+3.0 shot+5.1 orbit 180 3.4+5.1 pitch -6 3.4diff --git a/GeneralsMD/Code/Data/Scenarios/jetsturn.txt b/GeneralsMD/Code/Data/Scenarios/jetsturn.txtnew file mode 100644index 000000000..8bd190c32--- /dev/null+++ b/GeneralsMD/Code/Data/Scenarios/jetsturn.txt@@ -0,0 +1,15 @@+# A Raptor flying an S: east at cruise, sent off to the left at 4 s, then while it is still banked+# into that turn sent off to the right at 5.5 s, then back towards east at 7.5 s. Each new order+# lands mid-turn, so the jet has to roll from one bank through level into the other: the reversal+# jetturn.txt's single 180 never shows. Made for a film; nothing is measured.+#+# generals.exe -win -xres 1280 -yres 720 -fps 120 -noFPSLimit -quickstart -noshellmap -observer+# -multiInstance -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -takeover+# -side 0 FactionAmerica -side 1 FactionChina -seed 7+# -scenario jetsturn -cinema jetfilm_sturn -video 90 720 jf_sturn -maxframes 730++30 spawn 0 AmericaJetRaptor 1 1000 3000+31 move 0 AmericaJetRaptor 4400 3000+120 move 0 AmericaJetRaptor 2300 3700+165 move 0 AmericaJetRaptor 3000 2300+225 move 0 AmericaJetRaptor 4400 2900