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): shrink the Scud and Tomahawk nozzle flare, dim rocket flares

Olcay Seygan6bff6646fe42
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 680c7ff8e..f2949c84d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1281,7 +1281,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- A big smoke cloud darkens the ground under it and fades as it does.
- Smoke and dust stand in the sunlight. A column off a burning building throws a soft shadow as thick as the smoke is: a puff of dust barely tints the sand, a black plume darkens the ground, the tanks and the houses under it and the smoke behind it. The column itself is bright on the side facing the sun and goes dark on the far side, and a cloud drifting through a building's shadow greys over with everything else in there. A cloud used to cast a round patch straight down whichever way the sun stood, and took no shade from anything. Fire casts nothing, it is light. A machine that cannot run the newer picture keeps the round patch.
- Fire lights its own smoke. The bottom of a column over a burning tank glows orange from the flames under it and flickers with them, then goes grey as it climbs out of their reach; an explosion's flash warms the smoke drifting past it. Smoke used to keep the same flat grey right down into the fire. Both renderers draw it. On the newer picture the glow stays lit where the column's own shadow falls, so a fire burning on the far side of a plume still shows orange through it instead of going dark with the smoke around it.
-- Rockets leave smoke. A Tank Hunter's or a Missile Defender's rocket, a Comanche's pods, a Raptor's missiles and a Patriot's used to fly on a thin bright line of fire and nothing else. Now one unbroken white vapour line hangs behind each one for just over a second, sitting on the fire line rather than floating above it, the width of the rocket where it leaves and about a sixth of a tank at its tail. A Patriot's line stays whole at full speed instead of breaking into a string of dots, a rocket that curves leaves a curve, and a volley of six stays six lines instead of one white bar. The fire line and the flash at the nose are still there. Scuds, Tomahawks and TOW missiles get the same treatment: EA let their exhaust swell into an orange-grey column 40 to 55 across, wider than the launcher that fired it, and now it opens on a short warm flash at the nozzle and runs out as a white line 6 to 12 across that follows the missile's climb without gaps. The flash at a Scud's and a Tomahawk's nozzle is as big as EA made it. On a low particle setting, or when the frame rate falls under 25, the rockets' white line is the first effect to go: with the slider at 300, a rocket fight that keeps the slider full draws no line at all and gives all 300 to the explosions and the rockets' own fire.
+- Rockets leave smoke. A Tank Hunter's or a Missile Defender's rocket, a Comanche's pods, a Raptor's missiles and a Patriot's used to fly on a thin bright line of fire and nothing else. Now one unbroken white vapour line hangs behind each one for just over a second, sitting on the fire line rather than floating above it, the width of the rocket where it leaves and about a sixth of a tank at its tail. A Patriot's line stays whole at full speed instead of breaking into a string of dots, a rocket that curves leaves a curve, and a volley of six stays six lines instead of one white bar. The fire line and the flash at the nose are still there. Scuds, Tomahawks and TOW missiles get the same treatment: EA let their exhaust swell into an orange-grey column 40 to 55 across, wider than the launcher that fired it, and now it opens on a short warm flash at the nozzle and runs out as a white line 6 to 12 across that follows the missile's climb without gaps. A Scud or a Tomahawk no longer drags a white ball of light behind it bigger than the launcher that fired it: the flash sits on the nozzle, about the width of the missile, and you see the missile climb and come down. The flash at the nose of the smaller rockets is half as bright, so a volley reads as rockets rather than a smear of light. On a low particle setting, or when the frame rate falls under 25, the rockets' white line is the first effect to go: with the slider at 300, a rocket fight that keeps the slider full draws no line at all and gives all 300 to the explosions and the rockets' own fire.
- The soft blob shadow for trees and scenery had never been drawn at all.
- Every one of the 128 tree types casts now, plus the bushes and palms.
- A tree's shadow is the tree. Trunk, crown, and the gaps between the leaves, lying along the
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 02a6bbb2e..f6d6edbab 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -20,6 +20,17 @@ Data/Cinema/blastcheck.txt
Data/Cinema/demo.txt
Data/Cinema/explreel.txt
Data/Cinema/headlights.txt
+Data/Cinema/hero_loop.txt
+Data/Cinema/hero_loop_01.txt
+Data/Cinema/hero_loop_02.txt
+Data/Cinema/hero_loop_03.txt
+Data/Cinema/hero_loop_04.txt
+Data/Cinema/hero_loop_05.txt
+Data/Cinema/hero_loop_06.txt
+Data/Cinema/hero_loop_07.txt
+Data/Cinema/hero_loop_08.txt
+Data/Cinema/hero_loop_09.txt
+Data/Cinema/hero_loop_10.txt
Data/Cinema/inf_jam.txt
Data/Cinema/inf_walk.txt
Data/Cinema/lsv_burst.txt
@@ -110,6 +121,17 @@ Data/Scenarios/headlights.txt
Data/Scenarios/helislide.txt
Data/Scenarios/helitypes.txt
Data/Scenarios/helixturret.txt
+Data/Scenarios/hero_loop.txt
+Data/Scenarios/hero_loop_01.txt
+Data/Scenarios/hero_loop_02.txt
+Data/Scenarios/hero_loop_03.txt
+Data/Scenarios/hero_loop_04.txt
+Data/Scenarios/hero_loop_05.txt
+Data/Scenarios/hero_loop_06.txt
+Data/Scenarios/hero_loop_07.txt
+Data/Scenarios/hero_loop_08.txt
+Data/Scenarios/hero_loop_09.txt
+Data/Scenarios/hero_loop_10.txt
Data/Scenarios/hitrun.txt
Data/Scenarios/infantrywalk.txt
Data/Scenarios/infconvoy.txt
@@ -154,6 +176,7 @@ Data/Scenarios/rf_smoke.txt
Data/Scenarios/rf_snow.txt
Data/Scenarios/rf_thumb_fa.txt
Data/Scenarios/rf_thumb_fe.txt
+Data/Scenarios/rocketglow.txt
Data/Scenarios/s240_beach.txt
Data/Scenarios/s240_bridge.txt
Data/Scenarios/s240_heli.txt
diff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
index 1230708ff..537bd5149 100644
--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini
@@ -855,10 +855,13 @@ ParticleSystem TowMissileExhaust
WindPingPongEndAngleMax = 6.283185
End
-; The Scud's and the Tomahawk's nozzle flares, EA's but for three numbers. A slave's Size,
-; SizeRate and SizeRateDamping are factors on its master's particle, so the narrower exhausts above
-; would have shrunk the flare with them. These factors put it back where EA had it: about 4.5 (Scud)
-; or 2.5 (Tomahawk) across at birth, growing 25 a frame, damped 0.87.
+; The Scud's and the Tomahawk's nozzle flares. A slave's Size, SizeRate and SizeRateDamping are
+; factors on its master's particle, and one flare is born per exhaust particle where that particle
+; stands. EA's flare lived 10 frames and grew 25 a frame to about 150 across, and its orange smoke
+; column hid most of it. Over the white ribbon above, bursting every frame, ten of them stacked
+; into a white ball bigger than the launcher, left hanging in the air behind the missile, and the
+; D3D11 bloom made it bigger still. Now each lives 3 frames like the small rockets' flares, about
+; 16 (Scud) or 12 (Tomahawk) across, growing 1 a frame, so it sits on the nozzle.
ParticleSystem ScudMissileExhaustLenzflare
Priority = WEAPON_EXPLOSION
@@ -871,11 +874,11 @@ ParticleSystem ScudMissileExhaustLenzflare
AngularDamping = 1.00 1.00
VelocityDamping = 1.00 1.00
Gravity = 0.00
- Lifetime = 10.00 10.00
+ Lifetime = 3.00 3.00
SystemLifetime = 0
- Size = 1.60 1.60
+ Size = 6.00 6.00
StartSizeRate = 0.00 0.00
- SizeRate = 50.00 50.00
+ SizeRate = 2.00 2.00
SizeRateDamping = 0.92 0.92
Alpha1 = 1.00 1.00 0
Alpha2 = 0.00 0.00 2
@@ -887,7 +890,7 @@ ParticleSystem ScudMissileExhaustLenzflare
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
Color2 = R:255 G:255 B:255 1
- Color3 = R:0 G:0 B:0 10
+ Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
Color6 = R:0 G:0 B:0 0
@@ -929,11 +932,11 @@ ParticleSystem HeroicScudMissileExhaustLenzflare
AngularDamping = 1.00 1.00
VelocityDamping = 1.00 1.00
Gravity = 0.00
- Lifetime = 10.00 10.00
+ Lifetime = 3.00 3.00
SystemLifetime = 0
- Size = 1.60 1.60
+ Size = 6.00 6.00
StartSizeRate = 0.00 0.00
- SizeRate = 50.00 50.00
+ SizeRate = 2.00 2.00
SizeRateDamping = 0.92 0.92
Alpha1 = 1.00 1.00 0
Alpha2 = 0.00 0.00 2
@@ -945,7 +948,7 @@ ParticleSystem HeroicScudMissileExhaustLenzflare
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
Color2 = R:255 G:255 B:255 1
- Color3 = R:0 G:0 B:0 10
+ Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
Color6 = R:0 G:0 B:0 0
@@ -987,11 +990,11 @@ ParticleSystem TomahawkMissileExhaustLenzflare
AngularDamping = 1.00 1.00
VelocityDamping = 1.00 1.00
Gravity = 0.00
- Lifetime = 10.00 10.00
+ Lifetime = 3.00 3.00
SystemLifetime = 0
- Size = 1.25 1.25
+ Size = 6.00 6.00
StartSizeRate = 0.00 0.00
- SizeRate = 62.50 62.50
+ SizeRate = 2.50 2.50
SizeRateDamping = 0.92 0.92
Alpha1 = 1.00 1.00 0
Alpha2 = 0.00 0.00 2
@@ -1003,7 +1006,7 @@ ParticleSystem TomahawkMissileExhaustLenzflare
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
Color2 = R:255 G:255 B:255 1
- Color3 = R:0 G:0 B:0 10
+ Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
Color6 = R:0 G:0 B:0 0
@@ -1045,11 +1048,11 @@ ParticleSystem HeroicTomahawkMissileExhaustLenzflare
AngularDamping = 1.00 1.00
VelocityDamping = 1.00 1.00
Gravity = 0.00
- Lifetime = 10.00 10.00
+ Lifetime = 3.00 3.00
SystemLifetime = 0
- Size = 1.25 1.25
+ Size = 6.00 6.00
StartSizeRate = 0.00 0.00
- SizeRate = 62.50 62.50
+ SizeRate = 2.50 2.50
SizeRateDamping = 0.92 0.92
Alpha1 = 1.00 1.00 0
Alpha2 = 0.00 0.00 2
@@ -1061,7 +1064,7 @@ ParticleSystem HeroicTomahawkMissileExhaustLenzflare
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
Color2 = R:255 G:255 B:255 1
- Color3 = R:0 G:0 B:0 10
+ Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
Color6 = R:0 G:0 B:0 0
@@ -1095,6 +1098,9 @@ End
; EA's four lens flares, unchanged but for the SlaveSystem line. Each is the slave of streak
; exhausts only (MissileExhaust, HeroicMissileExhaust, both Chem_ stingers, the infantry stingers,
; the Missile Defender's, the Comanche's and Raptor's, both Patriot trails) and of nothing else.
+; MissileLenzflare and HeroicComancheMissileLenzflare peak at 128 grey rather than white: their
+; masters burst every frame now instead of every second one, so twice as many overlap, and at
+; EA's white the glow drowned the rocket it sat on.
ParticleSystem MissileLenzflare
Priority = WEAPON_TRAIL
@@ -1124,7 +1130,7 @@ ParticleSystem MissileLenzflare
Alpha7 = 0.00 0.00 0
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
- Color2 = R:255 G:255 B:255 1
+ Color2 = R:128 G:128 B:128 1
Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
@@ -1181,7 +1187,7 @@ ParticleSystem HeroicComancheMissileLenzflare
Alpha7 = 0.00 0.00 0
Alpha8 = 0.00 0.00 0
Color1 = R:0 G:0 B:0 0
- Color2 = R:255 G:255 B:255 1
+ Color2 = R:128 G:128 B:128 1
Color3 = R:0 G:0 B:0 3
Color4 = R:0 G:0 B:0 0
Color5 = R:0 G:0 B:0 0
diff --git a/GeneralsMD/Code/Data/Scenarios/rocketglow.txt b/GeneralsMD/Code/Data/Scenarios/rocketglow.txt
new file mode 100644
index 000000000..099ba1b0e
--- /dev/null
+++ b/GeneralsMD/Code/Data/Scenarios/rocketglow.txt
@@ -0,0 +1,11 @@
+# Three GLA Scud Launchers on the open scrub of Golden Oasis shelling a power plant 300 east, for a
+# picture of the glow behind a Scud in flight. Drawn, Direct3D 11, the camera between the two:
+#
+# generals.exe -win -xres 1920 -yres 1080 -msaa 0 -noFPSLimit -quickstart -noshellmap -observer
+# -multiInstance -map "Maps\Golden Oasis\Golden Oasis.map" -autoskirmish 2 -takeover
+# -side 0 FactionAmerica -side 1 FactionGLA -seed 1 -scenario rocketglow -camera 2342 3537
+# -video 60 420 rocketglow -maxframes 430 -logPrefix rocketglow_
+
+10 spawn 0 AmericaPowerPlant 1 2492 3537
+10 spawn 1 GLAVehicleScudLauncher 3 2192 3537 50
+30 attack 1 GLAVehicleScudLauncher 0 AmericaPowerPlant