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): tank death flash with torn fire and spark streaks

Olcay Seygan8931ccd5433b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 02a5ce366..5af6043fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1991,6 +1991,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. 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 45a7e90f8..4ba053299 100644
--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini
@@ -239,8 +239,9 @@ FXList FX_GenericTankDeathExplosion
ParticleSystem
Name = MammothTankExplosionDebris
End
+ ; its own flash, sparks and torn fire, so the howitzer blasts that share EA's flare keep theirs
ParticleSystem
- Name = MammothTankExplosionLenzflare
+ Name = ReforgedTankDeathLenzflare
Offset = X:0.0 Y:0.0 Z:10.0
End
ParticleSystem
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 799c1d821..2626960cb 100644
--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
@@ -1838,6 +1838,278 @@ ParticleSystem MammothTankExplosionLenzflare
WindPingPongEndAngleMax = 6.283185
End
+; The tank death's own flash (FX_GenericTankDeathExplosion in FXListReforged.ini), so the Spectre and
+; Firebase howitzer blasts keep MammothTankExplosionLenzflare above. One card for ten frames instead of
+; four for forty. Hanging off it: ReforgedTankBlastCore, ReforgedHotCore's copy with SizeRate raised by
+; 40/28 so the core keeps its size under the slower flare, carrying the fire burst as its chained slave;
+; and the flare particle's own attached spark emitter.
+
+ParticleSystem ReforgedTankDeathLenzflare
+ Priority = CRITICAL
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = PARTICLE
+ ParticleName = EXLnzFlar2.tga
+ SlaveSystem = ReforgedTankBlastCore
+ PerParticleAttachedSystem = ReforgedTankBlastSparks
+ AngleZ = 0.00 0.00
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 1.00 1.00
+ Gravity = 0.00
+ Lifetime = 10.00 10.00
+ SystemLifetime = 2
+ Size = 1.00 1.00
+ StartSizeRate = 0.00 0.00
+ SizeRate = 28.00 28.00
+ SizeRateDamping = 0.70 0.70
+ Alpha1 = 0.00 0.00 0
+ Alpha2 = 0.00 0.00 0
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ 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:0 G:0 B:0 0
+ Color2 = R:255 G:240 B:215 2
+ Color3 = R:0 G:0 B:0 10
+ 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 = 99999.00 99999.00
+ BurstCount = 1.00 1.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = OUTWARD
+ VelOutward = 0.00 0.00
+ VelOutwardOther = 0.00 0.00
+ VolumeType = CYLINDER
+ VolCylinderRadius = 0.00
+ VolCylinderLength = 0.00
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+ WindMotion = Unused
+ WindAngleChangeMin = 0.149924
+ WindAngleChangeMax = 0.449946
+ WindPingPongStartAngleMin = 0.000000
+ WindPingPongStartAngleMax = 0.785398
+ WindPingPongEndAngleMin = 5.497787
+ WindPingPongEndAngleMax = 6.283185
+End
+
+ParticleSystem ReforgedTankBlastCore
+ Priority = WEAPON_EXPLOSION
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = PARTICLE
+ ParticleName = EXLnzFlar2.tga
+ SlaveSystem = ReforgedTankBlastFire
+ AngleZ = 0.00 6.28
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 1.00 1.00
+ Gravity = 0.00
+ Lifetime = 11.00 14.00
+ SystemLifetime = 0
+ Size = 0.80 1.00
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.43 0.57
+ SizeRateDamping = 0.90 0.90
+ Alpha1 = 1.00 1.00 0
+ Alpha2 = 1.00 1.00 14
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ 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:255 G:255 B:255 0
+ Color2 = R:255 G:228 B:175 3
+ Color3 = R:215 G:105 B:30 8
+ Color4 = R:0 G:0 B:0 11
+ 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 = 99999.00 99999.00
+ BurstCount = 1.00 1.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = ORTHO
+ VelOrthoX = 0.00 0.00
+ VelOrthoY = 0.00 0.00
+ VelOrthoZ = 0.00 0.00
+ VolumeType = POINT
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+End
+
+; Five or six of EA's EXTnkExpl02 cards (a 4 by 4 flipbook that ends broken into burning pieces),
+; each played once over half to three quarters of a second, rotated, thrown a few units apart and
+; gone in about 22 frames. Fed once, from the flare's single emission, by the chain under the core.
+
+ParticleSystem ReforgedTankBlastFire
+ Priority = DEATH_EXPLOSION
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = PARTICLE
+ ParticleName = EXTnkExpl02.tga
+ FlipbookGrid = 4
+ AngleZ = 0.00 6.28
+ AngularRateZ = -0.02 0.02
+ AngularDamping = 0.98 0.98
+ VelocityDamping = 0.85 0.88
+ Gravity = 0.00
+ SlavePosOffset = X:0.00 Y:0.00 Z:-2.00
+ Lifetime = 14.00 22.00
+ SystemLifetime = 0
+ Size = 14.00 24.00
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.40 0.90
+ SizeRateDamping = 0.92 0.92
+ Alpha1 = 1.00 1.00 0
+ Alpha2 = 0.00 0.00 0
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ 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:255 G:250 B:235 0
+ Color2 = R:255 G:200 B:150 6
+ Color3 = R:200 G:110 B:60 12
+ Color4 = R:0 G:0 B:0 22
+ 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 = 99999.00 99999.00
+ BurstCount = 5.00 7.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.15
+ VelocityType = SPHERICAL
+ VelSpherical = 0.80 1.80
+ VolumeType = POINT
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+End
+
+; Fourteen sparks (EA's EXSpark02) thrown up and out of the blast, falling under gravity, each
+; dragging a short additive EXContrail streak about four frames long. Off with DebrisTrails, like
+; the shrapnel. The streaks sit at the lowest priority, so the cap or detail setting drops them first.
+
+ParticleSystem ReforgedTankBlastSparks
+ ExplosionDebrisTrail = Yes
+ Priority = WEAPON_EXPLOSION
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = PARTICLE
+ ParticleName = EXSpark02.tga
+ PerParticleAttachedSystem = ReforgedTankBlastSparkTrail
+ GroundCollision = Yes
+ AngleZ = 0.00 6.28
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 0.96 0.98
+ Gravity = -0.25
+ Lifetime = 14.00 24.00
+ SystemLifetime = 1
+ Size = 1.00 1.60
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.00 0.00
+ SizeRateDamping = 1.00 1.00
+ Alpha1 = 1.00 1.00 0
+ Alpha2 = 0.00 0.00 0
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ 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:255 G:240 B:200 0
+ Color2 = R:255 G:160 B:70 8
+ Color3 = R:0 G:0 B:0 24
+ 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 = 99999.00 99999.00
+ BurstCount = 14.00 14.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = HEMISPHERICAL
+ VelHemispherical = 3.00 6.50
+ VolumeType = SPHERE
+ VolSphereRadius = 3.00
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+End
+
+ParticleSystem ReforgedTankBlastSparkTrail
+ Priority = WEAPON_EXPLOSION
+ IsOneShot = No
+ Shader = ADDITIVE
+ Type = STREAK
+ ParticleName = EXContrail.tga
+ AngleZ = 0.00 0.00
+ AngularRateZ = 0.00 0.00
+ AngularDamping = 1.00 1.00
+ VelocityDamping = 1.00 1.00
+ Gravity = 0.00
+ Lifetime = 4.00 4.00
+ SystemLifetime = 0
+ Size = 0.60 0.60
+ StartSizeRate = 0.00 0.00
+ SizeRate = 0.00 0.00
+ SizeRateDamping = 1.00 1.00
+ Alpha1 = 1.00 1.00 0
+ Alpha2 = 0.00 0.00 0
+ Alpha3 = 0.00 0.00 0
+ Alpha4 = 0.00 0.00 0
+ 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:255 G:220 B:160 0
+ Color2 = R:255 G:120 B:40 2
+ Color3 = R:0 G:0 B:0 4
+ 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 = 0.00 0.00
+ BurstCount = 1.00 1.00
+ InitialDelay = 0.00 0.00
+ DriftVelocity = X:0.00 Y:0.00 Z:0.00
+ VelocityType = ORTHO
+ VelOrthoX = 0.00 0.00
+ VelOrthoY = 0.00 0.00
+ VelOrthoZ = 0.00 0.00
+ VolumeType = POINT
+ IsHollow = No
+ IsGroundAligned = No
+ IsEmitAboveGroundOnly = No
+ IsParticleUpTowardsEmitter = No
+End
+
ParticleSystem BattleMasterTankExplosionLenzflare
Priority = CRITICAL
IsOneShot = No