Skip to content

Conversation

@Stubbjax
Copy link

@Stubbjax Stubbjax commented Nov 27, 2025

This change fixes weapon effects not showing when spawned by hidden objects such as toxin and radiation fields.

If the object is invisible, the OBJECT_STATUS_STEALTHED status is explicitly checked. This ensures objects that are invisible as a result of being stealthed do not play their effects; while still allowing detected, allied or observed stealthed objects to play their effects as they are considered visible.

@Stubbjax Stubbjax self-assigned this Nov 27, 2025
@Stubbjax Stubbjax added Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour ThisProject The issue was introduced by this project, or this task is specific to this project labels Nov 27, 2025
@xezon
Copy link

xezon commented Nov 27, 2025

Nice. Does this also fix #1905?

@Stubbjax
Copy link
Author

Nice. Does this also fix #1905?

I believe so; though I did discover a retail issue with Bomb Truck detonation effects which I will address in a follow up change to this one, as it requires a lot more explanation.

@xezon xezon changed the title bugfix: Weapon effects now show for hidden objects that are not explicitly stealthed bugfix(weapon): Weapon effects now show for hidden objects that are not explicitly stealthed Nov 27, 2025
@xezon xezon changed the title bugfix(weapon): Weapon effects now show for hidden objects that are not explicitly stealthed bugfix(weapon): Weapon effects now show again for hidden objects that are not explicitly stealthed Nov 27, 2025
@xezon xezon merged commit c060a47 into TheSuperHackers:main Nov 27, 2025
27 checks passed
@Stubbjax Stubbjax deleted the fix-hidden-weapon-effects branch November 28, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Gen Relates to Generals Major Severity: Minor < Major < Critical < Blocker ThisProject The issue was introduced by this project, or this task is specific to this project ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toxin and radiation fields are not present. Explosion effects are missing in Generals

2 participants