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.

fix(data): mine field shot keeps own traffic off the column's path

Olcay Seygan8aed9a2343f5
diff --git a/GeneralsMD/Code/Data/Cinema/minefx_player.txt b/GeneralsMD/Code/Data/Cinema/minefx_player.txt
index 2bc1332d6..cb79807d8 100644
--- a/GeneralsMD/Code/Data/Cinema/minefx_player.txt
+++ b/GeneralsMD/Code/Data/Cinema/minefx_player.txt
@@ -9,18 +9,44 @@
# -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
+# the supply trucks crossing, mines sitting; every 4 frames over 56 so each LED's 8-frame blink
+# lands in at least one still
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
+6.133 shot
+6.267 shot
+6.4 shot
+6.533 shot
+6.667 shot
+6.8 shot
+6.933 shot
+7.067 shot
+7.2 shot
+7.333 shot
+7.467 shot
+7.6 shot
+7.733 shot
+7.867 shot
+# the first EMP mines under the Crusaders, frames 500 to 516
+16.533 shot
+16.667 shot
+16.8 shot
+16.933 shot
+17.067 shot
+17.2 shot
+17.333 shot
+17.467 shot
+# standard mines under the Crusaders and the Humvee, frames 568 to 604
+18.933 shot
+19.067 shot
+19.2 shot
+19.333 shot
+19.467 shot
+19.6 shot
+19.733 shot
+19.867 shot
20.0 shot
-21.0 shot
-21.4 shot
+20.133 shot
+20.267 shot
+# EMP under the Paladins, 660 to 672
22.0 shot
-23.0 shot
+22.267 shot
diff --git a/GeneralsMD/Code/Data/Scenarios/minefx_player.txt b/GeneralsMD/Code/Data/Scenarios/minefx_player.txt
index 2395ead87..bcd9b94ef 100644
--- a/GeneralsMD/Code/Data/Scenarios/minefx_player.txt
+++ b/GeneralsMD/Code/Data/Scenarios/minefx_player.txt
@@ -1,9 +1,13 @@
# 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.
+# mine going off could not be told from a dying tank. Here seat 0's only traffic is two supply trucks
+# that cross the field early and drive off west to 450,780 from frame 150. A headless tally keeps
+# both at full health to frame 700; sent to 600,700 at frame 300 instead, the Crusaders shot one
+# at about 440, and the Red Guard walked too slowly to leave the column's path at all. Every unit is
+# on the defensive stance, so what goes off in the field is the mines and the vehicles they kill.
+# Tallied at seed 1: EMP mines under the Crusaders 500 to 516 and 536 to 552, standard mines under
+# the Crusaders and the Humvee 568 to 604, EMP under the Paladins and the Tomahawk 660 to 672.
#
# generals.exe -win -borderless -xres 1920 -yres 1080 -msaa 0 -quickstart -noshellmap
# -multiInstance -fps 120 -noFPSLimit -particlecap 2500
@@ -22,14 +26,10 @@
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
+# own traffic through the field, then west and out of the column's way
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
+150 move 0 ChinaVehicleSupplyTruck 450 780
# 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