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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(data): laser kills burst missiles the way EA's game did
Olcay Seygan746a3cdc43e5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2f31fb359..51a8a378a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -68,7 +68,7 @@ found and fixed — EA's own, not port damage.**- The Air Force General's King Raptor, Aurora, Stealth Fighter, B-3 and Chinooks carried a laser that burned every missile out of the air as it came near. They drop flares now. A Stinger fired at a King Raptor sees the flares leave its tail, turns onto one and burns out behind the plane. The flares come fitted from the factory with no upgrade to buy: three volleys, then six seconds to reload. Two King Raptors making seven passes over a Stinger Site took between 60 and 180 damage of 480 over the measured runs, where the lasers let through 150 and 270.- Flares cannot do everything the laser did. A Chinook sitting on the ground has no missile defence at all, an Aurora on its supersonic run is too fast to throw them, and no flare fools a SCUD or a Tomahawk, which the laser used to shoot down near these aircraft. Bought anyway, Countermeasures still gives the Air Force General's planes its armor.-- The Paladin and the Avenger keep their point defense lasers, and you can see them again. In 2.4.0 they fired an invisible charge: a puff at the hull and a missile bursting in the air with nothing between them. The beam is back, drawn from the same spot on the tank EA drew it from, and a missile it touches still goes in one shot with a small burst. What 2.4.0 changed stays. The lasers fire in short bursts: a Paladin gets two shots and four seconds to recharge, each of the Avenger's two lasers gets four and three seconds. Under five Tank Hunters an Avenger stops 8 missiles where EA's endless laser stopped 14 or 16, but it dies on the same frame, because fifteen hits kill it either way. A Paladin under four Rocket Buggies stops 4 rockets of 36, as it always did.+- The Paladin and the Avenger keep their point defense lasers, and you can see them again. In 2.4.0 they fired an invisible charge: a puff at the hull and a missile bursting in the air with nothing between them. The beam is back, drawn from the same spot on the tank EA drew it from, and a missile it touches still goes in one shot. It bursts where it was hit the way it did in EA's game, a red flash with sparks and a scrap of casing falling away, where 2.4.0 had swapped that for a small blast of its own. What 2.4.0 changed stays. The lasers fire in short bursts: a Paladin gets two shots and four seconds to recharge, each of the Avenger's two lasers gets four and three seconds. Under five Tank Hunters an Avenger stops 8 missiles where EA's endless laser stopped 14 or 16, but it dies on the same frame, because fifteen hits kill it either way. A Paladin under four Rocket Buggies stops 4 rockets of 36, as it always did.- The Paladin's laser also burns any soldier who comes within 65 of the tank, and a soldier it kills burns up again instead of being thrown by a blast. It has a second laser of its own for that, with its own two shots, so firing at a soldier never leaves the tank empty when a missile arrives.- Lasers glow now. The Paladin's and the Avenger's point defense, the Laser General's Crusader, Paladin, Avenger and turrets, and the point defense drone each draw a white-hot core down the middle of the beam and a soft halo in the beam's own colour along its whole length, so a pink Laser Avenger beam sits in a pink haze from the tank to its target. On the default renderer the core spills into the screen's bloom; on the Direct3D 9 one the halo carries the glow by itself. Only the picture changed: damage, range and timing are what they were, and replays play back the same.- A replay recorded before this change plays back differently.diff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex 9e9ed133d..3cb5607ad 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -819,16 +819,17 @@ End; The Paladin and the Avenger keep their lasers, in clips now. From 2026-10-03 to 2026-10-06 they; fired an invisible charge instead (LaserName emptied, a launch puff for FireFX); players lost the-; beam, so EA's beam, bone and fire FX are back and only the clip and the blast at the missile stay.-; The weapons keep their reach and the laser's damage, which a missile cannot survive. The point-; defense module counts the clip itself (PointDefenseLaserUpdate), since it fires a fresh copy of-; its weapon every shot, and plays the ProjectileDetonationFX where the target was.+; beam, so EA's beam, bone and fire FX are back and only the clip stays. The weapons keep their+; reach and the laser's damage, which a missile cannot survive. The point defense module counts the+; clip itself (PointDefenseLaserUpdate), since it fires a fresh copy of its weapon every shot.;; A missile picks its death by DeathType, the same three ways in every missile EA made: LASERED-; plays a laser disintegration, DETONATED plays nothing (it is how a missile that reached its target-; leaves the world), and anything else plays a full Explosion with ExplosionSmoke, a grey cloud the-; size of a tank that stacked into a column under repeated intercepts. The laser kills with-; DETONATED, so the small blast it plays itself is all there is to see at the missile.+; plays FX_GenericMissileDisintegrate and throws a scrap of debris (OCL_GenericMissileDisintegrate),+; DETONATED plays nothing (it is how a missile that reached its target leaves the world), and+; anything else plays a full Explosion with ExplosionSmoke, a grey cloud the size of a tank that+; stacked into a column under repeated intercepts. The charge had killed with EXPLODED, then with+; DETONATED and a blast of its own; the missile weapons kill with EA's LASERED again, so a missile+; the beam reaches bursts the way it did in EA's game.;; The Paladin's laser also burns down infantry that come within 65. A second laser with its own clip; does that, so a Tank Hunter's missile and the Tank Hunter himself do not share one gun. That needs@@ -847,8 +848,6 @@ Weapon PaladinPointDefenseLaserDelayBetweenShots = 250 ; EA: 1000ClipSize = 2 ; EA: 0ClipReloadTime = 4000- DeathType = DETONATED- ProjectileDetonationFX = FX_ActiveProtectionBlastEndWeapon AirF_RaptorPointDefenseLaser ; the Paladin's anti-personnel laser, see above@@ -869,16 +868,12 @@ Weapon AvengerPointDefenseLaserOneDelayBetweenShots = 250 ; EA: 500ClipSize = 4 ; EA: 0ClipReloadTime = 3000- DeathType = DETONATED- ProjectileDetonationFX = FX_ActiveProtectionBlastEndWeapon AvengerPointDefenseLaserTwoDelayBetweenShots = 250 ; EA: 500ClipSize = 4 ; EA: 0ClipReloadTime = 3000- DeathType = DETONATED- ProjectileDetonationFX = FX_ActiveProtectionBlastEndObject AmericaTankPaladindiff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex 4ccb02bdd..2c1bba916 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -2608,31 +2608,6 @@ FXList SupW_FX_ParticleUplinkDeathInitialEndEnd-; -----------------------------------------------; The Paladin's and the Avenger's point defense laser bursting a missile-; (ProjectileDetonationFX, played by PointDefenseLaserUpdate where the target was). A small sharp-; burst, gone in half a second: its three systems are in ParticleSystemReforged.ini.-FXList FX_ActiveProtectionBlast- Sound- Name = ExplosionFlashBang- End- ParticleSystem- Name = APSBlastFlash- End- ParticleSystem- Name = APSBlastFragments- End- ParticleSystem- Name = APSBlastPuff- End- LightPulse- Color = R:255 G:190 B:120- Radius = 35- IncreaseTime = 0- DecreaseTime = 200- End-End-; ----------------------------------------------FXList WeaponFX_DemoSuicideDynamitePackDetonationPlusFireSounddiff --git a/GeneralsMD/Code/Data/Scenarios/missiledefence.txt b/GeneralsMD/Code/Data/Scenarios/missiledefence.txtindex f2a102710..d0ee6ff2a 100644--- a/GeneralsMD/Code/Data/Scenarios/missiledefence.txt+++ b/GeneralsMD/Code/Data/Scenarios/missiledefence.txt@@ -34,6 +34,11 @@# under Terrorists died on 386 and 396 with no Terrorist killed. Its laser never one-shot a soldier:# 100 LASER against HumanArmor's 50% is 50 of a Rebel's or Terrorist's 120.#+# Then the missile weapons went back to EA's LASERED (the disintegrate FX and a debris scrap) in+# place of DETONATED and the charge's blast. Seeds 7 and 8: Avenger 8 and 8 shot down, dead on 258+# and 258; Paladin under buggies 4 and 4, dead on 381 and 376; Paladin under Terrorists dead on 386+# and 396, one Terrorist killed by the Paladin on frame 337 of seed 8.+## Worth filming: flares come off a Raptor and Stingers turn onto them around 2620,3005 at about 95# high on frames 250 to 256 (seed 7); the Avenger at 2195,3906 bursts Tank Hunter missiles about 90# north of it on frames 150 to 190, and the Paladin at 3300,3800 a buggy rocket 60 north on 146.