We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68c0b9 commit 59482a6Copy full SHA for 59482a6
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Body/ActiveBody.cpp
@@ -1323,6 +1323,11 @@ Bool ActiveBody::isSubdued() const
1323
#if RETAIL_COMPATIBLE_CRC
1324
return m_maxHealth <= m_currentSubdualDamage;
1325
#else
1326
+ // TheSuperHackers @info Projectiles don't receive the DISABLED_SUBDUED flag (or any flag for
1327
+ // that matter) when jammed, so we have to check their subdual damage directly.
1328
+ if (getObject()->isKindOf(KINDOF_PROJECTILE))
1329
+ return m_maxHealth <= m_currentSubdualDamage;
1330
+
1331
return getObject()->isDisabledByType(DISABLED_SUBDUED);
1332
#endif
1333
}
0 commit comments