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(data): saturated blue mine led, emp mine throws no earth
Olcay Seygan09beb18d7757
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 21d0a7faa..7c76596c5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1374,7 +1374,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same- A bright cloud no longer shows what is behind it as a line drawing. Inside a nuke's white cloud, or a falling War Factory's fireball, every tree and wreck under it used to come out as a thin grey outline, and the picture's sharpening ringed each dark piece in white. Both stop where the frame is bright.- Smoke and fire no longer end on a straight line where they meet the ground or a building. A puff that sinks into a hillside or drifts against a wall thins out over its last few metres, softly enough that a nuke's haze and a Scud's grey smoke no longer come out as stacked, stair-stepped terraces, and a toxin cloud lying low over the ground keeps its body instead of breaking into hard-edged green islands. A China mine field blinks where you can see it again: its lights hang just off the ground, and the fade had eaten all but a thirtieth of their bright middle. No effect fades over more than its own size now, so a small spark close to the ground keeps its light. This is the default renderer; Classic and the old renderer keep the hard edge they had in 2003.- Gunfire shows at the zoom you play at. A rifle's tracer was a third of a unit wide, about one pixel from the default camera, and a bullet hit nothing you could see. Tracers from rifles, Gattlings, Humvees, Technicals and Quad Cannons are now twice as wide and half again as long, the muzzle flash is half as big again, and every hit kicks up sparks and a puff of dirt where it lands. A tank shell burns a short hot streak behind it all the way to the target, where it used to be a grey sliver you could not pick out between the flash and the blast. A Crusader's, Battlemaster's, Scorpion's, Paladin's or Overlord's shot used to be a soft white glow drifting out in front of the gun, wider than the tank; it is now a short orange blast at the barrel tip, with a bigger flame and smoke puff behind it. A shell landing throws dirt and sparks around its blast. The colours are the ones the game always used, and no weapon does anything different.-- A China mine field has mines in it. EA's field had no model at all, only a white glint blinking on each of its eight spots, so your own minefield looked like a patch of fireflies. Each spot is now a round steel mine pressed into a ring of dug earth, at a random turn, with an arming LED over its fuse that flicks on for a quarter of a second every second and a half, red on standard and cluster mines and a cold blue on EMP mines. You and your allies see them a little see-through, the way you see your own stealthed units. The enemy still sees nothing until he detects the field, and then he sees the same mines. A mine going off under a tank now throws a column of dark earth twice the tank's height, scatters clods round it and leaves a low black smoke and a scorch, with a short jolt of the screen; it used to puff a pale spray of specks that looked like dust kicked up. An EMP mine adds a blue ring across the ground, a crackle of blue sparks and a short blue flash at the spot; EA's flash grew until it washed the whole screen white for a fifth of a second. What a mine does is unchanged.+- A China mine field has mines in it. EA's field had no model at all, only a white glint blinking on each of its eight spots, so your own minefield looked like a patch of fireflies. Each spot is now a round steel mine pressed into a ring of dug earth, at a random turn, with an arming LED over its fuse that flicks on for a quarter of a second every second and a half, red on standard and cluster mines and a cold blue on EMP mines. You and your allies see them a little see-through, the way you see your own stealthed units. The enemy still sees nothing until he detects the field, and then he sees the same mines. A mine going off under a tank now throws a column of dark earth twice the tank's height, scatters clods round it and leaves a low black smoke and a scorch, with a short jolt of the screen; it used to puff a pale spray of specks that looked like dust kicked up. An EMP mine throws no earth, so you can tell which kind went off: it lights a blue ring across the ground, a crackle of blue sparks and a short blue flash at the spot; EA's flash grew until it washed the whole screen white for a fifth of a second. What a mine does is unchanged.- A base out of power looks out of power. A building that switches off when your power runs short, or one a hacker shut down, drains to a cold grey and sags darker, and its windows and lamps go out. Every few seconds it blinks dark for an instant or its lights catch again for a moment, and blue sparks jump on its walls where something shorts. A tank or building hit by an EMP crawls with thin blue arcs for as long as it stays dead, where it used to just turn dark grey.- Your own stealthed units look cloaked instead of faded. What stands behind a Pathfinder, Colonel Burton or a stealthed GLA unit bends through its body in a slow ripple, under a cold edge you can still read the unit by. When an enemy detector has found him, that edge turns amber and flares with each sweep. On every renderer, a stealthed unit of yours no longer comes out solid whenever no building is on the screen: the game drew it a second time without its see-through. An enemy stealth unit your detector finds used to turn into a flat orange shape with no paint; now it keeps its own paint, drained of colour, under a burning red-orange outline with scan lines running up it, and all of it flares on every sweep of the detector. This is the default renderer; Classic and the old renderer keep the 2003 look for all of these.- Effects fade out instead of blinking off. The rings a nuke sends across the ground, and any spark, flash or puff whose own colours never reached nothing, used to vanish at full strength on their last frame. Each one now dims away over its last quarter of a second, or over a quarter of its life when it lives shorter than that. One that was already fading looks the way it always did.diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedMineLedBlue.tga b/GeneralsMD/Code/Data/Art/Textures/ReforgedMineLedBlue.tgaindex a881ec0a1..35398f2f3 100644Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedMineLedBlue.tga and b/GeneralsMD/Code/Data/Art/Textures/ReforgedMineLedBlue.tga differdiff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex 398f12b17..377b1542c 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -1248,12 +1248,6 @@ FXList Neutron_WeaponFX_MineParticleSystemName = MineEMPFlareEnd- ParticleSystem- Name = MineBlastColumn- End- ParticleSystem- Name = MineBlastClods- EndParticleSystemName = MineBlastSmokeEnddiff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.iniindex b76c976ad..f7845717a 100644--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini@@ -3404,7 +3404,7 @@ End; in a ring of dug earth five across, laid flat on the bone at a random turn, with an arming LED; above its middle, red on the standard and cluster mines and cold sky blue on the EMP mines.; The LED is ReforgedMineLedRed.tga or ReforgedMineLedBlue.tga, a hard pale core inside a glow,-; 15 across on the red and 16 on the blue, the core about a quarter of that (the slave's Size scales+; 15 across, the core about a quarter of that (the slave's Size scales; the plate's); nine across was still lost at the player's camera. It comes on at full; strength, holds for eight frames and is out two frames later, then stays dark until the next plate; a second and a half on: the lens flare it replaced was a soft blob that swelled and faded over 24@@ -3484,7 +3484,7 @@ ParticleSystem MineFXLightPurpleGravity = 0.00Lifetime = 11.00 11.00SystemLifetime = 0- Size = 3.20 3.20+ Size = 3.00 3.00StartSizeRate = 0.00 0.00SizeRate = 0.00 0.00SizeRateDamping = 1.00 1.00@@ -3645,8 +3645,8 @@ End; dust kicked up rather than a charge. These throw a column of near-black earth about 40 high that; falls back inside two seconds, wider and darker than the orange fireball of the vehicle dying on; top of it, a spray of clods out to about 30 either side, and a low dark smoke that hangs for five-; seconds. The EMP mine adds a blue ring across the ground, a crackle of blue sparks for most of a-; second and a short blue flash about 100 across. EA's EMP mine used NeutronFlare there, a white+; seconds. The EMP mine throws no earth, so the two read apart: a blue ring across the ground, a+; crackle of blue sparks for most of a second, a short blue flash about 100 across and the smoke. EA's EMP mine used NeutronFlare there, a white; flare growing 75 a frame for ten frames that lit the whole screen; NeutronFlare itself is left; alone for the neutron weapons that still use it.@@ -3675,7 +3675,7 @@ ParticleSystem MineBlastColumnAlpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:42 G:33 B:22 0+ Color1 = R:35 G:30 B:25 0Color2 = R:0 G:0 B:0 0Color3 = R:0 G:0 B:0 0Color4 = R:0 G:0 B:0 0@@ -3733,7 +3733,7 @@ ParticleSystem MineBlastClodsAlpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:38 G:30 B:20 0+ Color1 = R:33 G:29 B:24 0Color2 = R:0 G:0 B:0 0Color3 = R:0 G:0 B:0 0Color4 = R:0 G:0 B:0 0diff --git a/GeneralsMD/Code/Tools/mine_marks.py b/GeneralsMD/Code/Tools/mine_marks.pyindex f3b821736..a57d0a17c 100644--- a/GeneralsMD/Code/Tools/mine_marks.py+++ b/GeneralsMD/Code/Tools/mine_marks.py@@ -31,7 +31,7 @@ BOLTS = 0.55LED_CORE = 0.22 # radius of the hard core, as a share of the half widthLED_GLOW = 0.22 # the glow falls off as exp(-(r - core) / this)LED_GLOW_PEAK = 0.85 # the glow's strength just outside the core, against the core's 1-LEDS = (("Red", (255, 30, 12), (255, 215, 200)), ("Blue", (150, 190, 255), (225, 235, 255)))+LEDS = (("Red", (255, 30, 12), (255, 215, 200)), ("Blue", (60, 100, 255), (170, 200, 255)))OUT_FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "Data", "Art", "Textures")