From 784e4a0b4ab3de65f9c3f305fee73ec8a0917fda Mon Sep 17 00:00:00 2001 From: Stubbjax Date: Fri, 28 Nov 2025 11:09:16 +1100 Subject: [PATCH] bugfix: GLA Bomb Truck now consistently plays detonation weapon effects --- Generals/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp | 1 + GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Generals/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp b/Generals/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp index 005d5ace98..43c47e7404 100644 --- a/Generals/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp +++ b/Generals/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp @@ -891,6 +891,7 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate if (!isVisible // if user watching cannot see us && sourceObj->testStatus(OBJECT_STATUS_STEALTHED) // if unit is stealthed (like a Pathfinder) + && !sourceObj->isKindOf(KINDOF_DISGUISER) // and not a disguiser (which should show FX while stealthed)... && !sourceObj->isKindOf(KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)... && !isPlayFXWhenStealthed() // and not a weapon marked to playwhenstealthed ) diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp index d9b9431ad8..2c8711aa4f 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Weapon.cpp @@ -922,6 +922,7 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate if (!isVisible // if user watching cannot see us && sourceObj->testStatus(OBJECT_STATUS_STEALTHED) // if unit is stealthed (like a Pathfinder) + && !sourceObj->isKindOf(KINDOF_DISGUISER) // and not a disguiser (which should show FX while stealthed)... && !sourceObj->isKindOf(KINDOF_MINE) // and not a mine (which always do the FX, even if hidden)... && !isPlayFXWhenStealthed() // and not a weapon marked to playwhenstealthed )