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): drop the collapse dust that hung over every dead building

Olcay Seyganfb1eb92abddf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 24493f963..877a260a3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1304,7 +1304,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- 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. This is the default renderer; Classic and the old renderer keep the hard edge they had in 2003.
- A Scud Storm or a carpet bomb shakes the screen as hard as it should. The game cut a pile of heavy shakes back to a mild one, so a run of missiles or bombs landing together shook less than one of them alone. Each now shakes a step lighter and the run builds up. Demo traps and Aurora bombs shake now, and a falling building shakes harder the bigger it was.
- The shake knows how close you are. A shell landing in the middle of the screen kicks the camera half as hard again as it used to, one at the edge of the range barely moves it, and a heavy hit settles over about a second instead of stopping dead after half of one. The cut that put a pile of shakes back to a mild one is gone too: past the limit the camera holds at full shake.
-- A building that falls throws up a cloud of dust that rolls out from its footprint and hangs for five or six seconds over a scorched patch of ground, thin enough that the collapse's own fire no longer lights it up into a white screen. A damaged building's fires burn bigger, and its smoke runs darker and longer, the closer it gets to falling.
+- A damaged building's fires burn bigger, and its smoke runs darker and longer, the closer it gets to falling.
- Only the picture changed: damage, timing and what dies are what they were, and a recorded match plays back to the same checksum. In a test fight with a nuke and a Scud Storm the game carried 1631 effect particles where it carried 1610.
- Tanks and buildings come apart in more pieces, and the pieces stay. A Crusader throws 19 plates and scraps where it threw 12, an Overlord 9 where it threw 3, and a Scorpion, a Marauder or a Paladin five more bits of scrap each. A falling building adds the biggest slabs of its rubble, heavy enough to hop low and land close: a large base building throws 55 pieces where it threw 39, a War Factory 45 and a Power Plant 45. Wreckage lies on the ground for three seconds before it starts to sink, where EA gave it one, so a battlefield still shows what died on it after the smoke has gone. All of it is EA's own wreckage, thrown more often. The pieces are part of the match, so a replay recorded before this change plays back differently. In a test of rocket waves against tanks the busiest moment went from 791 things on the map to 898, and the game's rules took 3% longer a frame.
diff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.ini
index 12578f02c..2953cf3be 100644
--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini
@@ -2831,7 +2831,9 @@ End
; the Spectre, firebase and strategy centre shells one of radius 30, which lit
; about a tank's width; each is re-declared whole with a LightPulse, and the big
; ones also carry the white-hot core, the heat ring and a scorch from
-; ParticleSystemReforged.ini. Falling buildings throw up a dust cloud.
+; ParticleSystemReforged.ini. The dust cloud a falling building threw up is gone:
+; it grew past a hundred units across and hung olive-grey for six seconds after
+; every structure and civilian building death, so a busy match was never clear of it.
; A light sized by the blast: about 85 for a shell, 150 for a bomb truck or a
; Scud launcher, 220 for a High Explosive bomb truck or a bunker buster, 260 for
; the MOAB and the Daisy Cutter, 320 for a nuke. The terrain takes the first 20
@@ -2858,9 +2860,6 @@ FXList FX_StructureTinyDeath
ParticleSystem
Name = StructureTransitionTinyFlare
End
- ParticleSystem
- Name = ReforgedCollapseDustSmall
- End
Sound
Name = BuildingDie
End
@@ -2893,9 +2892,6 @@ FXList FX_StructureSmallDeath
ParticleSystem
Name = StructureTransitionSmallFlare
End
- ParticleSystem
- Name = ReforgedCollapseDustSmall
- End
Sound
Name = BuildingDie
End
@@ -2928,9 +2924,6 @@ FXList FX_StructureMediumDeath
ParticleSystem
Name = StructureTransitionMediumFlare
End
- ParticleSystem
- Name = ReforgedCollapseDustMedium
- End
Sound
Name = BuildingDie
End
@@ -2963,9 +2956,6 @@ FXList FX_StructureLargeDeath
ParticleSystem
Name = StructureTransitionLargeFlare
End
- ParticleSystem
- Name = ReforgedCollapseDustLarge
- End
ParticleSystem
Name = ReforgedHeatRingLarge
Offset = X:0.0 Y:0.0 Z:4.0
@@ -2980,8 +2970,7 @@ 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
+ ; below full orange, and the collapse's own a step lower again
LightPulse
Color = R:200 G:98 B:35
Radius = 200
@@ -2995,9 +2984,6 @@ FXList FX_BuildingDie
Sound
Name = BuildingDie
End
- ParticleSystem
- Name = ReforgedCollapseDustMedium
- End
ViewShake
Type = SUBTLE
End
@@ -3042,9 +3028,6 @@ FXList FX_StructureCollapseFinal
ParticleSystem
Name = StructureCollapseFinalShockwave
End
- ParticleSystem
- Name = ReforgedCollapseDustLarge
- End
ViewShake
Type = NORMAL
End
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 89cd21b25..44fa88089 100644
--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
@@ -1030,165 +1030,6 @@ ParticleSystem ReforgedHeatRingHuge
IsParticleUpTowardsEmitter = No
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 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.
-
-ParticleSystem ReforgedCollapseDustSmall
- Priority = DEATH_EXPLOSION
- IsOneShot = No
- Shader = ALPHA
- Type = PARTICLE
- ParticleName = EXCloud02.tga
- AngleZ = 0.00 6.28
- AngularRateZ = -0.005 0.005
- AngularDamping = 0.99 0.99
- VelocityDamping = 0.95 0.95
- Gravity = 0.00
- Lifetime = 130.00 160.00
- SystemLifetime = 16
- Size = 15.00 20.00
- StartSizeRate = 0.00 0.00
- SizeRate = 1.10 1.60
- SizeRateDamping = 0.975 0.975
- Alpha1 = 0.00 0.00 0
- 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: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
- Color5 = R:0 G:0 B:0 0
- Color6 = R:0 G:0 B:0 0
- Color7 = R:0 G:0 B:0 0
- Color8 = R:0 G:0 B:0 0
- ColorScale = 0.00 0.00
- BurstDelay = 2.00 3.00
- BurstCount = 1.00 2.00
- InitialDelay = 0.00 0.00
- DriftVelocity = X:0.00 Y:0.00 Z:0.06
- VelocityType = OUTWARD
- VelOutward = 1.00 1.60
- VelOutwardOther = 0.20 0.50
- VolumeType = CYLINDER
- VolCylinderRadius = 15.00
- VolCylinderLength = 6.00
- IsHollow = Yes
- IsGroundAligned = No
- IsEmitAboveGroundOnly = No
- IsParticleUpTowardsEmitter = No
-End
-
-ParticleSystem ReforgedCollapseDustMedium
- Priority = DEATH_EXPLOSION
- IsOneShot = No
- Shader = ALPHA
- Type = PARTICLE
- ParticleName = EXCloud02.tga
- AngleZ = 0.00 6.28
- AngularRateZ = -0.005 0.005
- AngularDamping = 0.99 0.99
- VelocityDamping = 0.95 0.95
- Gravity = 0.00
- Lifetime = 150.00 180.00
- SystemLifetime = 16
- Size = 20.00 26.00
- StartSizeRate = 0.00 0.00
- SizeRate = 1.40 1.90
- SizeRateDamping = 0.975 0.975
- Alpha1 = 0.00 0.00 0
- 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: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
- Color5 = R:0 G:0 B:0 0
- Color6 = R:0 G:0 B:0 0
- Color7 = R:0 G:0 B:0 0
- Color8 = R:0 G:0 B:0 0
- ColorScale = 0.00 0.00
- BurstDelay = 2.00 2.00
- BurstCount = 2.00 2.00
- InitialDelay = 0.00 0.00
- DriftVelocity = X:0.00 Y:0.00 Z:0.06
- VelocityType = OUTWARD
- VelOutward = 1.30 2.00
- VelOutwardOther = 0.20 0.50
- VolumeType = CYLINDER
- VolCylinderRadius = 25.00
- VolCylinderLength = 6.00
- IsHollow = Yes
- IsGroundAligned = No
- IsEmitAboveGroundOnly = No
- IsParticleUpTowardsEmitter = No
-End
-
-ParticleSystem ReforgedCollapseDustLarge
- Priority = DEATH_EXPLOSION
- IsOneShot = No
- Shader = ALPHA
- Type = PARTICLE
- ParticleName = EXCloud02.tga
- AngleZ = 0.00 6.28
- AngularRateZ = -0.005 0.005
- AngularDamping = 0.99 0.99
- VelocityDamping = 0.95 0.95
- Gravity = 0.00
- Lifetime = 170.00 200.00
- SystemLifetime = 16
- Size = 28.00 34.00
- StartSizeRate = 0.00 0.00
- SizeRate = 1.80 2.40
- SizeRateDamping = 0.975 0.975
- Alpha1 = 0.00 0.00 0
- 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: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
- Color5 = R:0 G:0 B:0 0
- Color6 = R:0 G:0 B:0 0
- Color7 = R:0 G:0 B:0 0
- Color8 = R:0 G:0 B:0 0
- ColorScale = 0.00 0.00
- BurstDelay = 2.00 2.00
- BurstCount = 2.00 3.00
- InitialDelay = 0.00 0.00
- DriftVelocity = X:0.00 Y:0.00 Z:0.06
- VelocityType = OUTWARD
- VelOutward = 1.60 2.60
- VelOutwardOther = 0.20 0.50
- VolumeType = CYLINDER
- VolCylinderRadius = 40.00
- VolCylinderLength = 6.00
- IsHollow = Yes
- IsGroundAligned = No
- IsEmitAboveGroundOnly = No
- IsParticleUpTowardsEmitter = No
-End
-
; EA's blast lens flares, unchanged but for the SlaveSystem line that hangs a ReforgedHotCore on
; each flare particle, or a ReforgedHotCoreStructure on the four structure death flares.