Skip to content

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.

feat(data): mine field shot list at the player's own camera

Olcay Seyganeaa09235670e
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 240302c62..cca18d511 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -23,6 +23,7 @@ Data/Cinema/demo.txt
Data/Cinema/explreel.txt
Data/Cinema/filterblur.txt
Data/Cinema/filterbw.txt
+Data/Cinema/gunfx.txt
Data/Cinema/headlights.txt
Data/Cinema/hero_loop.txt
Data/Cinema/hero_loop_01.txt
@@ -42,6 +43,7 @@ Data/Cinema/lsv_laser.txt
Data/Cinema/lsv_spam.txt
Data/Cinema/lsv_spam2.txt
Data/Cinema/minefx.txt
+Data/Cinema/minefx_player.txt
Data/Cinema/minefx_scene.txt
Data/Cinema/minefx_scene_enemy.txt
Data/Cinema/missileapex_film.txt
@@ -157,6 +159,7 @@ Data/Scenarios/glowbase.txt
Data/Scenarios/glowfight.txt
Data/Scenarios/glowmicrowave.txt
Data/Scenarios/guardradius.txt
+Data/Scenarios/gunfx.txt
Data/Scenarios/headlights.txt
Data/Scenarios/helislide.txt
Data/Scenarios/helitypes.txt
@@ -187,6 +190,7 @@ Data/Scenarios/mass420x2.txt
Data/Scenarios/mass840.txt
Data/Scenarios/massmove.txt
Data/Scenarios/minefx.txt
+Data/Scenarios/minefx_player.txt
Data/Scenarios/minefx_scene.txt
Data/Scenarios/minefx_scene_enemy.txt
Data/Scenarios/missileapex.txt
diff --git a/GeneralsMD/Code/Data/Cinema/minefx_player.txt b/GeneralsMD/Code/Data/Cinema/minefx_player.txt
new file mode 100644
index 000000000..2bc1332d6
--- /dev/null
+++ b/GeneralsMD/Code/Data/Cinema/minefx_player.txt
@@ -0,0 +1,26 @@
+# Scenarios/minefx_player.txt (minefx_blast with every unit on the defensive) seen the way a player sees it: no camera verb at all, so the view keeps
+# the zoom, heading and tilt the match opened with (300 over the ground, the map's own heading, no
+# extra pitch, 50 degree field of view) and the HUD stays up. -camera 780 900 parks the look-at on
+# the field, which is what a player panning there would get. Only stills and log lines here.
+#
+# generals.exe -win -borderless -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap
+# -multiInstance -fps 120 -noFPSLimit -particlecap 2500
+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover
+# -side 0 FactionChina -side 1 FactionAmerica -seed 1 -camera 780 900
+# -scenario minefx_player -cinema minefx_player -video 120 720 minefx_player -maxframes 730
+
+# own traffic crossing the field, mines sitting
+6.0 shot
+8.0 shot
+# the first EMP mine under the column, about frame 455
+14.8 shot
+15.1 shot
+15.4 shot
+16.0 shot
+# standard mines from about 570
+19.0 shot
+20.0 shot
+21.0 shot
+21.4 shot
+22.0 shot
+23.0 shot
diff --git a/GeneralsMD/Code/Data/Scenarios/minefx_player.txt b/GeneralsMD/Code/Data/Scenarios/minefx_player.txt
new file mode 100644
index 000000000..2395ead87
--- /dev/null
+++ b/GeneralsMD/Code/Data/Scenarios/minefx_player.txt
@@ -0,0 +1,48 @@
+# minefx_blast.txt for the player's own camera (Cinema/minefx_player.txt): the same outpost, field
+# and American column. In minefx_blast the Battlemasters never got off the field (560,680 is not a
+# point they reach) and shot it out with the column in the middle of the mines, so at play distance a
+# mine going off could not be told from a dying tank. Here seat 0's traffic is two supply trucks and
+# the Red Guard, and every unit on both sides is on the defensive stance, so what goes off in the
+# field is the mines and the vehicles they kill.
+#
+# generals.exe -win -borderless -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap
+# -multiInstance -fps 120 -noFPSLimit -particlecap 2500
+# -map "Maps\Alpine Assault\Alpine Assault.map" -autoskirmish 2 -takeover
+# -side 0 FactionChina -side 1 FactionAmerica -seed 1 -camera 780 900
+# -scenario minefx_player -cinema minefx_player -video 120 720 minefx_player -maxframes 730
+
+# the outpost
+30 spawn 0 ChinaPowerPlant 1 620 780
+30 spawn 0 ChinaBarracks 1 900 770
+30 spawn 0 ChinaBunker 1 880 1000
+
+# the field
+30 spawn 0 ChinaStandardMine 1 700 900
+30 spawn 0 ChinaEMPMine 1 820 900
+30 spawn 0 ChinaStandardMine 1 760 860
+30 spawn 0 ChinaEMPMine 1 760 940
+
+# own traffic through the field, then away from it before the Americans come
+30 spawn 0 ChinaInfantryRedguard 6 960 860 14
+30 spawn 0 ChinaVehicleSupplyTruck 2 980 960 40
+32 stance 0 ChinaInfantryRedguard defensive
+40 move 0 ChinaInfantryRedguard 600 880
+40 move 0 ChinaVehicleSupplyTruck 620 940
+300 move 0 ChinaVehicleSupplyTruck 600 700
+300 move 0 ChinaInfantryRedguard 540 720
+
+# the American column: Crusaders and a Humvee along the north edge onto the standard mines, kept
+# 60 off the EMP field (an EMP blast disables a vehicle and it never reaches the next mine), then
+# Paladins and a Tomahawk through the EMP fields
+300 spawn 1 AmericaTankCrusader 3 1020 830 30
+300 spawn 1 AmericaVehicleHumvee 1 1080 830
+302 stance 1 AmericaTankCrusader defensive
+302 stance 1 AmericaVehicleHumvee defensive
+305 move 1 AmericaTankCrusader 680 870
+305 move 1 AmericaVehicleHumvee 680 870
+380 spawn 1 AmericaTankPaladin 2 1000 1040 30
+380 spawn 1 AmericaVehicleTomahawk 1 1060 1000
+382 stance 1 AmericaTankPaladin defensive
+382 stance 1 AmericaVehicleTomahawk defensive
+385 move 1 AmericaTankPaladin 760 940
+385 move 1 AmericaVehicleTomahawk 820 900