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): overlord and building blasts spread over their footprint

Olcay Seygan3236f8f3bb77
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c0455f90a..9b8af0092 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1940,7 +1940,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
## Bright things can glow
- Explosions open on a white-hot flash. A tank shell, a rocket, a bomb truck or a dying tank now starts with a white core that cools through yellow and orange in a third of a second before EA's fireball takes over, and the core is as big as the blast: about a tank's width for a shell, much wider for a Scud Storm missile, a MOAB or a Daisy Cutter. On the default renderer the core spills into the screen's glow.
-- A tank that blows up flashes once, short and warm, and its fire tears into five or six burning scraps that spin apart instead of swelling as one ball. Fourteen sparks fly up out of it, each dragging a short glowing streak that shrinks as the spark slows and falls; Explosion Debris Trails turned off takes them away. The fire, sparks, shrapnel, thrown dirt and the smaller blasts that follow spread over the tank's own hull and line up with the way it faced, so a long vehicle burns along its length and a small one goes up small; all of it used to burst from a round patch in the middle. Classic Graphics keeps EA's blast, and the Spectre's and the Firebase's howitzer shells keep the flash they had.
+- A tank that blows up flashes once, short and warm, and its fire tears into five or six burning scraps that spin apart instead of swelling as one ball. Fourteen sparks fly up out of it, each dragging a short glowing streak that shrinks as the spark slows and falls; Explosion Debris Trails turned off takes them away. The fire, sparks, shrapnel, thrown dirt and the smaller blasts that follow spread over the tank's own hull and line up with the way it faced, so a long vehicle burns along its length and a small one goes up small; all of it used to burst from a round patch in the middle. The Overlord and the Emperor blow up the same way along their long hulls, torn fire and sparks included. A building that falls throws its fireballs, dust and shards over the ground it stood on: a firebase still goes up in one tight burst, while an airfield burns from end to end. Classic Graphics keeps EA's blast, and the Spectre's and the Firebase's howitzer shells keep the flash they had.
- Big blasts light the ground further and for longer. Every explosion's light is warmer and holds a little longer, and a bomb truck, a Scud, a bunker buster, a carpet bomb or a nuke throws a wide orange glow that fades over one to two seconds. Falling buildings, the Daisy Cutter, the MOAB, nukes, exploding cars and suicide bombers used to light nothing at all.
- The heaviest blasts leave bigger craters and send a ring of heat haze out across the ground for a second and a half to two seconds, if Heat Effects is on. Heat haze bends what is behind it by a few pixels now. On a blast that size it used to lay a second copy of the ground over the first, shifted by as much as twenty pixels, so the trees and ridges inside a nuke's ring came out doubled.
- A nuke pulls the picture into itself. For a quarter of a second the ground around the blast bends inward toward it, then a dome of shock rises out of it, running flat across the ground in front and standing up behind, rolling well past the fireball and shoving the battlefield aside as it passes, weaker the further it gets. Each Scud Storm missile does a smaller version of the same, and Nuke Cannon shells, Scud Launcher missiles, Tomahawks and bomb trucks give a short kick that is gone in half a second, so a battery firing all match never turns the screen to jelly. This is the default renderer; Classic and the old renderer keep only the heat ring.
diff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.ini
index 7a6923d36..19be43925 100644
--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini
@@ -744,26 +744,44 @@ FXList FX_OverlordExplosionOneInitial
End
; ----------------------------------------------
+; Only the Overlord and its generals' copies (the Emperor among them) die on this. Its blast follows
+; the hull the way FX_GenericTankDeathExplosion's does; the hull is twice a Crusader's area, so the
+; shrapnel and the dirt come twice. The flash and the shockwave stay round, at the centre.
FXList FX_OverlordExplosionOneFinal
ParticleSystem
Name = ReforgedVehicleShrapnel
+ Count = 2
+ FootprintBox = 0.6
End
ParticleSystem
Name = OverlordExplosionSmoke
+ FootprintBox = 0.6
End
ParticleSystem
- Name = OverlordSubExplosionSmoke
- Radius = 15 30 UNIFORM
+ Name = OverlordSubExplosionSmoke
+ FootprintBox = 1.0
Height = 0 20 UNIFORM
InitialDelay = 167 667 UNIFORM
End
ParticleSystem
Name = OverlordExplosionDebris
+ Count = 2
+ FootprintBox = 0.8
End
ParticleSystem
Name = OverlordExplosionLenzflare
Offset = X:0.0 Y:0.0 Z:10.0
End
+ ParticleSystem
+ Name = ReforgedTankBlastFire
+ Offset = X:0.0 Y:0.0 Z:8.0
+ FootprintBox = 0.6
+ End
+ ParticleSystem
+ Name = ReforgedTankBlastSparks
+ Offset = X:0.0 Y:0.0 Z:10.0
+ FootprintBox = 0.6
+ End
ParticleSystem
Name = OverlordExplosionShockwave
End
@@ -3090,12 +3108,24 @@ End
;//////////////////////////////////////////////////////////////////////////////
; ----------------------------------------------
+; A building's fireballs, dust and shards spread over its own footprint and turn with it
+; (FootprintBox, as on the tank death), so an airfield goes up along its whole length. Each size
+; covers a band of buildings: Tiny is tank-sized (a Gattling Cannon, 8 by 8 half-extents), Small
+; runs from a fuel tank (11 by 28) to a Chinese supply centre (52 by 47), Medium from a firebase
+; (26 by 26) to an airfield (112 by 74). The fractions keep the smallest of a band about as wide
+; as EA's round patch was, and stop where EA's fireballs, 50 to 75 across and growing, still
+; cover the biggest one's box; the dust is hollow, so two thirds of it rises along the box's edge.
+; Large has no building of EA's on it and takes Medium's fractions.
+; Only the shards are thin enough to go sparse, and they come twice on the Small and bigger deaths.
+; The flash, the shockwave, the heat ring and the smoke column stay round, at the centre.
FXList FX_StructureTinyDeath
ParticleSystem
Name = StructureTransitionTinySmoke
+ FootprintBox = 0.8
End
ParticleSystem
Name = StructureTransitionTinyExplosion
+ FootprintBox = 0.6
End
ParticleSystem
Name = StructureTransitionTinyShockwave
@@ -3125,12 +3155,16 @@ End
FXList FX_StructureSmallDeath
ParticleSystem
Name = ReforgedBlastShardsLarge
+ Count = 2
+ FootprintBox = 0.5
End
ParticleSystem
Name = StructureTransitionSmallSmoke
+ FootprintBox = 0.6
End
ParticleSystem
Name = StructureTransitionSmallExplosion
+ FootprintBox = 0.5
End
ParticleSystem
Name = StructureTransitionSmallShockwave
@@ -3160,12 +3194,16 @@ End
FXList FX_StructureMediumDeath
ParticleSystem
Name = ReforgedBlastShardsLarge
+ Count = 2
+ FootprintBox = 0.5
End
ParticleSystem
Name = StructureTransitionMediumSmoke
+ FootprintBox = 0.6
End
ParticleSystem
Name = StructureTransitionMediumExplosion
+ FootprintBox = 0.45
End
; a column of dark smoke climbing from the ruin after EA's fireball
ParticleSystem
@@ -3199,12 +3237,16 @@ End
FXList FX_StructureLargeDeath
ParticleSystem
Name = ReforgedBlastShardsHuge
+ Count = 2
+ FootprintBox = 0.5
End
ParticleSystem
Name = StructureTransitionLargeSmoke
+ FootprintBox = 0.6
End
ParticleSystem
Name = StructureTransitionLargeExplosion
+ FootprintBox = 0.45
End
ParticleSystem
Name = StructureTransitionLargeShockwave