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): point defense lasers replace flares, burst on a missile kill
Olcay Seyganffb6a4f8d528
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7b6837027..265b5f387 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -68,13 +68,13 @@ found and fixed — EA's own, not port damage.**- A replay recorded before this change plays back differently.- Tell a tank to fire at the ground and it fires from where it stands. On any slope the game read the spot as hidden behind the very hill it was lying on, so a tank with the spot well inside its range drove off looking for a better angle, swinging its hull round under its own turret, and fired on the way. Pulled off a building to shell the ground 140 behind them, a Battlemaster took 84 frames to its first shell on the new spot and now takes 45, which is how long its turret needs to come round, and a pair of Scorpions that used to wander about 200 away over eight seconds now stay where they were put. Replays recorded before this play back differently.-## Flares on the planes, lasers in clips on the tanks+## Point defense lasers back on the planes, in clips on the tanks-- 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. 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 Air Force General's King Raptor, Aurora, Stealth Fighter, B-3 and Chinooks have their point defense lasers again, and so does the Boss General's Raptor. From 2.4.0 they dropped flares instead; the flares are gone, and the lasers fire the way they did in EA's game, with no clip and no upgrade to buy. Two King Raptors making seven passes over a Stinger Site burned down 52 and 54 Stingers and came home with 360 and 390 health of 480. A Chinook sitting on its pad shoots down missiles again too, and the laser takes on a SCUD or a Tomahawk near these aircraft, which no flare ever fooled. Countermeasures works as it did in EA's game.+- A missile a point defense laser hits now goes up in a proper burst: a bright flash, sparks falling away and a short orange blast on top of EA's red flash and scrap of casing. It is gone in a second and leaves no smoke, so a run of intercepts does not stack a grey column over the tank. This goes for every point defense laser: the Paladin, the Avenger, the Air Force General's planes and Chinooks, and the Superweapon General's drone.+- 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. 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.+- 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. The Avenger's marking laser, the one that paints a target for the rest of your army, is not a weapon and keeps EA's thin blue line without a halo. 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.## Helicopters fly like helicoptersdiff --git a/GeneralsMD/Code/Data/INI/BalanceReforged.ini b/GeneralsMD/Code/Data/INI/BalanceReforged.iniindex e21a786dd..10f69e640 100644--- a/GeneralsMD/Code/Data/INI/BalanceReforged.ini+++ b/GeneralsMD/Code/Data/INI/BalanceReforged.ini@@ -871,215 +871,91 @@ Locomotor CombatBikeTerroristCliffLocomotorTurnRateDamaged = 150 ; EA: 120End-; ---- missile defence: flares on the Air Force General's aircraft, a hard-kill charge on the tanks ---+; ---- missile defence: point defense lasers in clips, and a burst where they hit ------------------;-; EA gave these units a point defense laser that ran all the time and burned down every missile it-; reached. Measured with Scenarios/missiledefence.txt, seeds 7 and 8, before this change: two King-; Raptors flying seven passes over a Stinger Site shot down 113 of 117 Stingers and took 150 and 270-; damage of 480; an Avenger under five Tank Hunters shot down 14 and 16 of 29 and 30 missiles and-; died on frame 261 and 265; a Paladin under four Rocket Buggies shot down 4 of 36 and died on frame-; 376 and 380.+; EA gave the Air Force General's King Raptor, Aurora, Stealth Fighter, B-3 and both Chinooks, the+; Boss Raptor, the Paladin, the Avenger and the Superweapon General's drone a point defense laser+; that burns down missiles near them. From 2026-10-03 to 2026-10-07 the aircraft dropped flares+; instead, fitted from birth; players did not want them, so nothing here touches an aircraft any+; more and EA's lasers fly again, at EA's rate and with no clip, and the Countermeasures upgrade is+; EA's again too.;-; The aircraft now drop flares instead. They are fitted from birth (StartsActive, no Countermeasures-; upgrade needed), and a Stinger that rolls the evasion turns onto the newest flare and burns out-; harmlessly. EA's upgrade decoys 30%; at 90%, with three volleys of four and a six second reload,-; the King Raptors took 60 to 180 damage, about what the lasers let through. Flares only work in-; the air, so a Chinook sitting on its pad has no missile defence at all; an Aurora on its supersonic-; run gets none (Weapon.cpp skips a supersonic victim); and they do nothing against a SCUD or a-; Tomahawk, which the lasers used to shoot down near these aircraft. A Countermeasures upgrade bought-; by an Air Force General still brings its armor.--Object AirF_AmericaJetRaptor- RemoveModule ModuleTag_22- RemoveModule ModuleTag_Laser_One- ReplaceModule ModuleTag_26- Behavior = CountermeasuresBehavior ModuleTag_26_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object Boss_JetRaptor- RemoveModule ModuleTag_22- AddModule- Behavior = CountermeasuresBehavior ModuleTag_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object AirF_AmericaJetAurora- RemoveModule ModuleTag_Laser_One- ReplaceModule ModuleTag_10- Behavior = CountermeasuresBehavior ModuleTag_10_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object AirF_AmericaJetStealthFighter- RemoveModule ModuleTag_Laser_One- ReplaceModule ModuleTag_10- Behavior = CountermeasuresBehavior ModuleTag_10_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object AirF_AmericaJetB3- RemoveModule ModuleTag_Laser_One- ReplaceModule ModuleTag_12- Behavior = CountermeasuresBehavior ModuleTag_12_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object AirF_AmericaVehicleChinook- RemoveModule ModuleTag_Laser_One- AddModule- Behavior = CountermeasuresBehavior ModuleTag_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-End--Object AFG_AmericaVehicleChinook- RemoveModule ModuleTag_Laser_One- AddModule- Behavior = CountermeasuresBehavior ModuleTag_Flares- StartsActive = Yes- FlareTemplateName = CountermeasureFlare- VolleySize = 4- VolleyArcAngle = 90.0- VolleyVelocityFactor = 2.0- DelayBetweenVolleys = 1000- NumberOfVolleys = 3- ReloadTime = 6000- EvasionRate = 90%- ReactionLaunchLatency = 100- MissileDecoyDelay = 200- End- End-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 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.+; The Paladin and the Avenger keep their lasers in clips. 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 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 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.+; stacked into a column under repeated intercepts. Every point defense laser keeps EA's LASERED and+; adds FX_PointDefenseLaserBurst as its ProjectileDetonationFX, which PointDefenseLaserUpdate plays+; where the target was: a flash bang with sparks over EA's red flash, and still no cloud.;; 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-; a second weapon and a MULTIFILE file cannot add one, so it is AirF_RaptorPointDefenseLaser, which-; nothing fires any more since the King Raptor and the Boss Raptor took flares: every field that-; matters is set here, with the Paladin's beam from its LASER bone.+; a second weapon and a MULTIFILE file cannot add one. It used to borrow AirF_RaptorPointDefenseLaser,+; which the King Raptor fires again now, so it takes WatchTowerMachineGun, a weapon in EA's+; Weapon.ini that no object names: every field that matters is set here, with the Paladin's beam+; from its LASER bone and no burst.;; The Paladin's laser had already been slowed to one shot in two seconds, because at EA's one a; second it shot down every Patriot missile: Paladins killed a Patriot four times of four for 0.28-; of its price. Two charges a quarter second apart and a four second reload is 0.47 shots a second-; against the laser's 0.5, spent in a pair; the Patriot duel was not run again. The numbers after the-; change are in Scenarios/missiledefence.txt: the flares let through about what the lasers did, the-; Avenger bursts fewer missiles and dies on the same frame, the Paladin's two fights did not move.+; of its price. Two shots a quarter second apart and a four second reload is 0.47 shots a second+; against the laser's 0.5, spent in a pair; the Patriot duel was not run again. The numbers are in+; Scenarios/missiledefence.txt: the Avenger bursts fewer missiles than EA's and dies on the same+; frame, the Paladin's two fights did not move.Weapon PaladinPointDefenseLaserDelayBetweenShots = 250 ; EA: 1000ClipSize = 2 ; EA: 0ClipReloadTime = 4000+ ProjectileDetonationFX = FX_PointDefenseLaserBurstEnd-Weapon AirF_RaptorPointDefenseLaser ; the Paladin's anti-personnel laser, see above+Weapon WatchTowerMachineGun ; the Paladin's anti-personnel laser, see abovePrimaryDamage = 100.0PrimaryDamageRadius = 0.0AttackRange = 65.0DamageType = LASER+ DeathType = LASERED+ WeaponSpeed = 999999.0DelayBetweenShots = 250ClipSize = 2ClipReloadTime = 4000- DeathType = LASERED+ AcceptableAimDelta = 180LaserName = PointDefenseLaserBeamLaserBoneName = LASERFireFX = WeaponFX_PaladinPointDefenseLaser+ VeterancyFireFX = HEROIC WeaponFX_PaladinPointDefenseLaserEndWeapon AvengerPointDefenseLaserOneDelayBetweenShots = 250 ; EA: 500ClipSize = 4 ; EA: 0ClipReloadTime = 3000+ ProjectileDetonationFX = FX_PointDefenseLaserBurstEndWeapon AvengerPointDefenseLaserTwoDelayBetweenShots = 250 ; EA: 500ClipSize = 4 ; EA: 0ClipReloadTime = 3000+ ProjectileDetonationFX = FX_PointDefenseLaserBurst+End++Weapon AirF_PointDefenseLaser+ ProjectileDetonationFX = FX_PointDefenseLaserBurst+End++Weapon AirF_RaptorPointDefenseLaser+ ProjectileDetonationFX = FX_PointDefenseLaserBurst+End++Weapon SupW_PointDefenseDroneLaserWeapon+ ProjectileDetonationFX = FX_PointDefenseLaserBurstEndObject AmericaTankPaladin@@ -1094,7 +970,7 @@ Object AmericaTankPaladinEndAddModuleBehavior = PointDefenseLaserUpdate ModuleTag_07_Infantry- WeaponTemplate = AirF_RaptorPointDefenseLaser+ WeaponTemplate = WatchTowerMachineGunPrimaryTargetTypes = INFANTRYScanRate = 500ScanRange = 120.0@@ -1115,7 +991,7 @@ Object Boss_TankPaladinEndAddModuleBehavior = PointDefenseLaserUpdate ModuleTag_07_Infantry- WeaponTemplate = AirF_RaptorPointDefenseLaser+ WeaponTemplate = WatchTowerMachineGunPrimaryTargetTypes = INFANTRYScanRate = 500ScanRange = 120.0@@ -1136,7 +1012,7 @@ Object Lazr_AmericaTankPaladinEndAddModuleBehavior = PointDefenseLaserUpdate ModuleTag_07_Infantry- WeaponTemplate = AirF_RaptorPointDefenseLaser+ WeaponTemplate = WatchTowerMachineGunPrimaryTargetTypes = INFANTRYScanRate = 500ScanRange = 120.0@@ -1157,7 +1033,7 @@ Object SupW_AmericaTankPaladinEndAddModuleBehavior = PointDefenseLaserUpdate ModuleTag_07_Infantry- WeaponTemplate = AirF_RaptorPointDefenseLaser+ WeaponTemplate = WatchTowerMachineGunPrimaryTargetTypes = INFANTRYScanRate = 500ScanRange = 120.0diff --git a/GeneralsMD/Code/Data/INI/FXListReforged.ini b/GeneralsMD/Code/Data/INI/FXListReforged.iniindex 2953cf3be..4cec7ae97 100644--- a/GeneralsMD/Code/Data/INI/FXListReforged.ini+++ b/GeneralsMD/Code/Data/INI/FXListReforged.ini@@ -3848,3 +3848,35 @@ FXList FX_TerroristExplodeDecreaseTime = 500EndEnd++; ----------------------------------------------+; A point defense laser bursting a missile (ProjectileDetonationFX of every point defense laser,+; played by PointDefenseLaserUpdate where the target was), on top of the missile's own LASERED+; death. EA's flash bang and sparks with the fork's short blast from ParticleSystemReforged.ini:+; all additive or gone in half a second, so no grey cloud stacks up under a run of intercepts.+FXList FX_PointDefenseLaserBurst+ Sound+ Name = ExplosionFlashBang+ End+ ParticleSystem+ Name = FlashBangNormal+ End+ ParticleSystem+ Name = FlashBangNormalSpark+ End+ ParticleSystem+ Name = APSBlastFlash+ End+ ParticleSystem+ Name = APSBlastFragments+ End+ ParticleSystem+ Name = APSBlastPuff+ End+ LightPulse+ Color = R:255 G:170 B:90+ Radius = 45+ IncreaseTime = 0+ DecreaseTime = 300+ End+Enddiff --git a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.iniindex c36437a16..fdb220b0d 100644--- a/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini+++ b/GeneralsMD/Code/Data/INI/ParticleSystemReforged.ini@@ -176,8 +176,7 @@ ParticleSystem SupW_ParticleDeathImplodeWindPingPongEndAngleMax = 6.283185End-; The Paladin's and the Avenger's point defense laser bursting a missile (FX_ActiveProtectionBlast in-; FXListReforged.ini). The Rocket Buggy's explosion it first borrowed lives 100 frames and grew into a+; A point defense laser bursting a missile (FX_PointDefenseLaserBurst in FXListReforged.ini). The Rocket Buggy's explosion it first borrowed lives 100 frames and grew into a; cloud the size of the tank, stacking into a column under a run of intercepts. These three are over; inside half a second and stay about a quarter of a tank across: a flash of 8 frames, a handful of; fragments thrown about 20 out, and a grey puff that thins away in 15 frames. No name here holdsdiff --git a/GeneralsMD/Code/Data/Scenarios/missiledefence.txt b/GeneralsMD/Code/Data/Scenarios/missiledefence.txtindex d0ee6ff2a..dc0f34d7d 100644--- a/GeneralsMD/Code/Data/Scenarios/missiledefence.txt+++ b/GeneralsMD/Code/Data/Scenarios/missiledefence.txt@@ -1,6 +1,7 @@-# Missile defence, four fights at once, far enough apart not to meet: two King Raptors flying seven-# passes over a Stinger Site, an Avenger under five Tank Hunters, a Paladin under four Rocket Buggies-# and a Paladin rushed by six Terrorists.+# Missile defence, five fights at once, far enough apart not to meet: two King Raptors flying seven+# passes over a Stinger Site, an Avenger under five Tank Hunters, a Paladin under four Rocket Buggies,+# a Paladin rushed by six Terrorists and an Air Force Chinook on the ground under three Tunnel+# Defenders.## generals.exe -headless -quickstart -noshellmap -observer -multiInstance -noFPSLimit# -map "Maps\Twilight Flame\Twilight Flame.map" -autoskirmish 2 -takeover@@ -39,8 +40,16 @@# 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+# 2026-10-07 the flares went and the aircraft took EA's lasers back, with no clip; every point+# defense laser plays FX_PointDefenseLaserBurst where it hits, and the Paladin's infantry laser moved+# from AirF_RaptorPointDefenseLaser to WatchTowerMachineGun. A Chinook on the ground under three+# Tunnel Defenders joined the file. Seeds 7 and 8, counted with a temporary log of every shot: the+# King Raptors shot down 52 and 54 Stingers (each fires both its lasers) and ended on 360 and 390 of+# 480; the Avenger shot down 8 and 8, dead on 258 and 258; the Paladin under buggies 4 and 3, dead on+# 382 and 376; the Paladin under Terrorists dead on 419 and 395, one Terrorist killed each time; the+# Chinook shot down 221 rockets and died on frame 2291 both times.+#+# Worth filming: 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.30 spawn 1 GLAStingerSite 1 2600 3000@@ -66,6 +75,10 @@30 spawn 1 GLAInfantryTerrorist 6 1100 3950 1860 attackmove 1 GLAInfantryTerrorist 1100 3700+30 spawn 0 AirF_AmericaVehicleChinook 1 2200 2300+30 spawn 1 GLAInfantryTunnelDefender 3 2200 2500 18+60 attack 1 GLAInfantryTunnelDefender 0 AirF_AmericaVehicleChinook+60 tally 0 AirF_AmericaJetRaptor60 tally 0 AmericaTankAvenger60 tally 0 AmericaTankPaladin@@ -88,3 +101,6 @@2350 tally 1 GLAInfantryTerrorist2350 tally 1 ChinaInfantryTankHunter2350 tally 1 GLAStingerSite+600 tally 0 AirF_AmericaVehicleChinook+2350 tally 0 AirF_AmericaVehicleChinook+2350 tally 1 GLAInfantryTunnelDefenderdiff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cppindex 474fe51a4..dd09cfd6d 100644--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cpp+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DLaserDraw.cpp@@ -79,10 +79,14 @@ static TextureClass *s_glowTexture = NULL;// ponytail: chosen by template name so no INI field and no checksum change; a "Glow" field in// W3DLaserDraw is the upgrade if a mod ever wants it per beam. Every weapon laser in ZH ends in-// LaserBeam; the data streams, the waypoint line and the Particle Cannon's beams do not.+// LaserBeam; the data streams, the waypoint line and the Particle Cannon's beams do not. The+// Avenger's target designator is a marker, not a weapon, and keeps EA's thin blue line.static Bool beamGlows( const Thing *thing ){- return thing && thing->getTemplate() && thing->getTemplate()->getName().endsWith( "LaserBeam" );+ if( !thing || !thing->getTemplate() )+ return FALSE;+ const AsciiString &name = thing->getTemplate()->getName();+ return name.endsWith( "LaserBeam" ) && name != "AvengerTargetingLaserBeam";}static TextureClass *acquireGlowTexture()diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex 1ab0bb893..2c91472e9 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -765,7 +765,7 @@ TEST(replace_module_of_another_type_is_skipped)pink death, which has none and is the one block the count leaves out. The Paladin's and theAvenger's hard-kill charge added two of the fork's own, its launch and its blast, lit too.The explosion pass added 22 more of EA's, from the structure deaths to the nukes, each with- the light it lacked. */+ the light it lacked, and the point defense lasers' missile burst one of the fork's own. */static const char *const s_unlitReforgedFXList = "FXList SupW_FX_ParticleUplinkDeathInitial";TEST(fxlist_reforged_ini_parses_and_keeps_its_light)@@ -814,7 +814,7 @@ TEST(fxlist_reforged_ini_parses_and_keeps_its_light)}fclose( fp );- CHECK_EQ( blocks, 112 );+ CHECK_EQ( blocks, 113 );CHECK_EQ( lit, blocks );}