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): 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.ini
index ca984c6c0..12578f02c 100644
--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini
@@ -2980,11 +2980,13 @@ FXList FX_StructureLargeDeath
Type = RANDOM
Radius = 65
End
+ ; 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 half
LightPulse
- Color = R:255 G:125 B:45
+ Color = R:200 G:98 B:35
Radius = 200
IncreaseTime = 0
- DecreaseTime = 1000
+ DecreaseTime = 800
End
End
@@ -3047,10 +3049,10 @@ FXList FX_StructureCollapseFinal
Type = NORMAL
End
LightPulse
- Color = R:255 G:135 B:55
+ Color = R:200 G:106 B:43
Radius = 140
IncreaseTime = 0
- DecreaseTime = 700
+ DecreaseTime = 550
End
End
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 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 ReforgedHotCoreLarge
Priority = CRITICAL
@@ -881,7 +884,7 @@ ParticleSystem ReforgedHotCoreHuge
SystemLifetime = 3
Size = 45.00 55.00
StartSizeRate = 0.00 0.00
- SizeRate = 8.00 10.00
+ SizeRate = 5.00 6.00
SizeRateDamping = 0.87 0.87
Alpha1 = 1.00 1.00 0
Alpha2 = 1.00 1.00 18
@@ -891,9 +894,9 @@ ParticleSystem ReforgedHotCoreHuge
Alpha6 = 0.00 0.00 0
Alpha7 = 0.00 0.00 0
Alpha8 = 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 10
Color4 = R:0 G:0 B:0 18
Color5 = R:0 G:0 B:0 0
Color6 = R:0 G:0 B:0 0
@@ -901,7 +904,7 @@ ParticleSystem ReforgedHotCoreHuge
Color8 = R:0 G:0 B:0 0
ColorScale = 0.00 0.00
BurstDelay = 99999.00 99999.00
- BurstCount = 3.00 3.00
+ BurstCount = 2.00 2.00
InitialDelay = 0.00 0.00
DriftVelocity = X:0.00 Y:0.00 Z:0.00
VelocityType = 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 ReforgedHeatRingLarge
AngularDamping = 1.00 1.00
VelocityDamping = 0.93 0.93
Gravity = 0.00
- Lifetime = 28.00 32.00
+ Lifetime = 42.00 46.00
SystemLifetime = 3
Size = 22.00 26.00
StartSizeRate = 0.00 0.00
@@ -945,8 +949,8 @@ ParticleSystem ReforgedHeatRingLarge
SizeRateDamping = 0.97 0.97
Alpha1 = 0.00 0.00 0
Alpha2 = 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 46
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Alpha7 = 0.00 0.00 0
@@ -987,7 +991,7 @@ ParticleSystem ReforgedHeatRingHuge
AngularDamping = 1.00 1.00
VelocityDamping = 0.94 0.94
Gravity = 0.00
- Lifetime = 40.00 45.00
+ Lifetime = 58.00 62.00
SystemLifetime = 3
Size = 40.00 45.00
StartSizeRate = 0.00 0.00
@@ -995,8 +999,8 @@ ParticleSystem ReforgedHeatRingHuge
SizeRateDamping = 0.97 0.97
Alpha1 = 0.00 0.00 0
Alpha2 = 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 62
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Alpha7 = 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 ReforgedCollapseDustSmall
SizeRate = 1.10 1.60
SizeRateDamping = 0.975 0.975
Alpha1 = 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 70
Alpha4 = 0.00 0.00 160
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Alpha7 = 0.00 0.00 0
Alpha8 = 0.00 0.00 0
- Color1 = R:150 G:136 B:112 0
+ Color1 = R:126 G:114 B:95 0
Color2 = R:120 G:110 B:95 120
Color3 = R:0 G:0 B:0 0
Color4 = R:0 G:0 B:0 0
@@ -1101,14 +1107,14 @@ ParticleSystem ReforgedCollapseDustMedium
SizeRate = 1.40 1.90
SizeRateDamping = 0.975 0.975
Alpha1 = 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 80
Alpha4 = 0.00 0.00 180
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Alpha7 = 0.00 0.00 0
Alpha8 = 0.00 0.00 0
- Color1 = R:150 G:136 B:112 0
+ Color1 = R:126 G:114 B:95 0
Color2 = R:120 G:110 B:95 130
Color3 = R:0 G:0 B:0 0
Color4 = R:0 G:0 B:0 0
@@ -1151,14 +1157,14 @@ ParticleSystem ReforgedCollapseDustLarge
SizeRate = 1.80 2.40
SizeRateDamping = 0.975 0.975
Alpha1 = 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 90
Alpha4 = 0.00 0.00 200
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Alpha7 = 0.00 0.00 0
Alpha8 = 0.00 0.00 0
- Color1 = R:150 G:136 B:112 0
+ Color1 = R:126 G:114 B:95 0
Color2 = R:120 G:110 B:95 140
Color3 = R:0 G:0 B:0 0
Color4 = R:0 G:0 B:0 0
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DSmudge.cpp
index 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 1920
const 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