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
feat(data): heat ring that reads, gentler collapse dust and nuke core
Olcay Seygan06e086034d4e
diff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex ca984c6c0..12578f02c 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -2980,11 +2980,13 @@ FXList FX_StructureLargeDeathType = RANDOMRadius = 65End+ ; below full orange, and the collapse's own a step lower again: with the dust taking this light+ ; at full strength a War Factory's frame went almost white for a second and a halfLightPulse- Color = R:255 G:125 B:45+ Color = R:200 G:98 B:35Radius = 200IncreaseTime = 0- DecreaseTime = 1000+ DecreaseTime = 800EndEnd@@ -3047,10 +3049,10 @@ FXList FX_StructureCollapseFinalType = NORMALEndLightPulse- Color = R:255 G:135 B:55+ Color = R:200 G:106 B:43Radius = 140IncreaseTime = 0- DecreaseTime = 700+ DecreaseTime = 550EndEnddiff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.iniindex 320db1369..89cd21b25 100644--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini@@ -815,6 +815,9 @@ End; The cores of the big blasts, placed by FXListReforged.ini rather than slaved: three stacked; particles of a fixed size, Large for bomb trucks, Scud launchers, demo traps and bunker; busters, Huge for the Scud Storm, the MOAB, the Daisy Cutter and the High Explosive bomb truck.+; Huge is two particles that open warm grey and peak a warm near-white on their fourth frame, growing at five+; to six units a frame: three that opened white and grew at eight to ten took a nuke's whole+; frame to white within a few frames.ParticleSystem ReforgedHotCoreLargePriority = CRITICAL@@ -881,7 +884,7 @@ ParticleSystem ReforgedHotCoreHugeSystemLifetime = 3Size = 45.00 55.00StartSizeRate = 0.00 0.00- SizeRate = 8.00 10.00+ SizeRate = 5.00 6.00SizeRateDamping = 0.87 0.87Alpha1 = 1.00 1.00 0Alpha2 = 1.00 1.00 18@@ -891,9 +894,9 @@ ParticleSystem ReforgedHotCoreHugeAlpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:255 G:255 B:255 0- Color2 = R:255 G:232 B:185 4- Color3 = R:220 G:110 B:35 10+ Color1 = R:150 G:135 B:110 0+ Color2 = R:235 G:215 B:170 4+ Color3 = R:200 G:100 B:32 10Color4 = R:0 G:0 B:0 18Color5 = R:0 G:0 B:0 0Color6 = R:0 G:0 B:0 0@@ -901,7 +904,7 @@ ParticleSystem ReforgedHotCoreHugeColor8 = R:0 G:0 B:0 0ColorScale = 0.00 0.00BurstDelay = 99999.00 99999.00- BurstCount = 3.00 3.00+ BurstCount = 2.00 2.00InitialDelay = 0.00 0.00DriftVelocity = X:0.00 Y:0.00 Z:0.00VelocityType = ORTHO@@ -921,7 +924,8 @@ End; "SMUD" as screen distortion instead of a billboard (the 0x44554D53 test in W3DParticleSys.cpp),; so the texture named here is never loaded. It draws only where the smudge manager reports; hardware support and Heat Effects are on in the options; elsewhere it draws nothing at all.-; Large runs out about 100 in a second, Huge about 230 in a second and a half. The shifted copy of+; Large runs out for about a second and a half, Huge for two, and both hold three quarters of their+; strength through the middle of that so the ring reads past the blast's own smoke. The shifted copy of; the ground these drew on 2026-10-06 was the smudge pass pulling by a share of each smudge's own; width, which on rings this size was twenty pixels; it holds the pull to a few pixels now; (W3DSmudge.cpp), so the ring is back at full strength.@@ -937,7 +941,7 @@ ParticleSystem ReforgedHeatRingLargeAngularDamping = 1.00 1.00VelocityDamping = 0.93 0.93Gravity = 0.00- Lifetime = 28.00 32.00+ Lifetime = 42.00 46.00SystemLifetime = 3Size = 22.00 26.00StartSizeRate = 0.00 0.00@@ -945,8 +949,8 @@ ParticleSystem ReforgedHeatRingLargeSizeRateDamping = 0.97 0.97Alpha1 = 0.00 0.00 0Alpha2 = 1.00 1.00 3- Alpha3 = 0.60 0.60 15- Alpha4 = 0.00 0.00 32+ Alpha3 = 0.75 0.75 26+ Alpha4 = 0.00 0.00 46Alpha5 = 0.00 0.00 0Alpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0@@ -987,7 +991,7 @@ ParticleSystem ReforgedHeatRingHugeAngularDamping = 1.00 1.00VelocityDamping = 0.94 0.94Gravity = 0.00- Lifetime = 40.00 45.00+ Lifetime = 58.00 62.00SystemLifetime = 3Size = 40.00 45.00StartSizeRate = 0.00 0.00@@ -995,8 +999,8 @@ ParticleSystem ReforgedHeatRingHugeSizeRateDamping = 0.97 0.97Alpha1 = 0.00 0.00 0Alpha2 = 1.00 1.00 3- Alpha3 = 0.60 0.60 20- Alpha4 = 0.00 0.00 45+ Alpha3 = 0.75 0.75 36+ Alpha4 = 0.00 0.00 62Alpha5 = 0.00 0.00 0Alpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0@@ -1028,7 +1032,9 @@ End; The dust a building throws up as it comes down, rolled out from its footprint and left to; hang for five or six seconds. At full strength it hid a War Factory's whole block from a-; close camera for seven seconds, so it stays under half opacity. Small for EA's small and tiny+; close camera for seven seconds, so it stays under a third of opacity, in a darker tan: lit by the+; collapse's light at the 0.45 it had, it took a War Factory's frame almost to white for a second+; and a half. Small for EA's small and tiny; structure deaths, Medium for the; medium ones and the civilian buildings, Large for the large ones and the collapse's last stage.; 12, 16 and about 20 particles.@@ -1051,14 +1057,14 @@ ParticleSystem ReforgedCollapseDustSmallSizeRate = 1.10 1.60SizeRateDamping = 0.975 0.975Alpha1 = 0.00 0.00 0- Alpha2 = 0.38 0.45 12- Alpha3 = 0.22 0.28 70+ Alpha2 = 0.26 0.31 12+ Alpha3 = 0.15 0.19 70Alpha4 = 0.00 0.00 160Alpha5 = 0.00 0.00 0Alpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:150 G:136 B:112 0+ Color1 = R:126 G:114 B:95 0Color2 = R:120 G:110 B:95 120Color3 = R:0 G:0 B:0 0Color4 = R:0 G:0 B:0 0@@ -1101,14 +1107,14 @@ ParticleSystem ReforgedCollapseDustMediumSizeRate = 1.40 1.90SizeRateDamping = 0.975 0.975Alpha1 = 0.00 0.00 0- Alpha2 = 0.38 0.45 12- Alpha3 = 0.22 0.28 80+ Alpha2 = 0.26 0.31 12+ Alpha3 = 0.15 0.19 80Alpha4 = 0.00 0.00 180Alpha5 = 0.00 0.00 0Alpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:150 G:136 B:112 0+ Color1 = R:126 G:114 B:95 0Color2 = R:120 G:110 B:95 130Color3 = R:0 G:0 B:0 0Color4 = R:0 G:0 B:0 0@@ -1151,14 +1157,14 @@ ParticleSystem ReforgedCollapseDustLargeSizeRate = 1.80 2.40SizeRateDamping = 0.975 0.975Alpha1 = 0.00 0.00 0- Alpha2 = 0.38 0.45 12- Alpha3 = 0.22 0.28 90+ Alpha2 = 0.26 0.31 12+ Alpha3 = 0.15 0.19 90Alpha4 = 0.00 0.00 200Alpha5 = 0.00 0.00 0Alpha6 = 0.00 0.00 0Alpha7 = 0.00 0.00 0Alpha8 = 0.00 0.00 0- Color1 = R:150 G:136 B:112 0+ Color1 = R:126 G:114 B:95 0Color2 = R:120 G:110 B:95 140Color3 = R:0 G:0 B:0 0Color4 = R:0 G:0 B:0 0diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cppindex b11d11022..657fde4fa 100644--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp@@ -456,7 +456,9 @@ void W3DSmudgeManager::render(RenderInfoClass &rinfo)// pixels across at the default zoom, sixteen to twenty-four of them overlap, and each// blended a copy of the ground shifted by up to twenty pixels over the unshifted one,// on both devices. Held to a few pixels of the view it stays a shimmer at any size.- const Real MAX_PULL = 0.004f; // of the view's width and height, about 8 pixels at 1920+ // 0.004 kept the doubling off and the nuke's ring with it, readable for half a second;+ // 0.006 stacked shifted copies of the flash's white edge into stepped bands+ const Real MAX_PULL = 0.005f; // of the view's width and height, about 10 pixels at 1920const Real pullX = WWMath::Clamp(uvSpanX*smudge->m_offset.X, -MAX_PULL*texClampX, MAX_PULL*texClampX);// .Y, not .X: the vertical offset was rolled, clamped against the top and bottom of the// view a dozen lines up, and then never read - the centre vertex took the horizontal