Skip to content

Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior#2110

Open
CnCRAZER wants to merge 26 commits intoPhobos-developers:developfrom
CnCRAZER:ares-fix-opentopped-transports
Open

Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior#2110
CnCRAZER wants to merge 26 commits intoPhobos-developers:developfrom
CnCRAZER:ares-fix-opentopped-transports

Conversation

@CnCRAZER
Copy link
Contributor

@CnCRAZER CnCRAZER commented Feb 20, 2026

This pull request introduces a fix and new customization for the decloaking behavior of open-topped transports, specifically when passengers fire weapons with DecloakToFire=yes. The changes allow modders to control whether passenger actions can decloak their transporter, and revert a previous patch that forced decloaking under certain conditions.

Open-topped transport decloak behavior improvements:

  • Added the OpenTopped.DecloakToFire option to both RulesExt and TechnoTypeExt, allowing global or per-unit control over whether passengers firing with DecloakToFire=yes decloak their open-topped transporter.

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Copy link
Member

@Metadorius Metadorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to simply revert, we need to have the behavior configurable between "uncloak transport on firing" and "don't uncloak on firing". as much as it may be desirable for CnCNet YR, the vanilla behavior is a bug, so we have to offer a fix with a possibility to revert (for CnCNet YR)

Introduce a new OpenTopped.DecloakToFire setting (global Rules and per-TechnoType) to control decloak-to-fire behavior for open-topped units.

Load/serialize the option in RulesExt and TechnoTypeExt, add nullable per-type value with global fallback (Rules default false), and update Cloak hook to check the per-type setting before applying the fix.
@CnCRAZER CnCRAZER changed the title Ares Fix -- Cloaked OpenTopped Transports Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior Feb 22, 2026
Copy link
Contributor

@NetsuNegi NetsuNegi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DEFINE_HOOK(0x6FCD1D, TechnoClass_CanFire_OpenTopCloakFix, 0x5) you did nothing here, why you hook on this address

@CnCRAZER
Copy link
Contributor Author

DEFINE_HOOK(0x6FCD1D, TechnoClass_CanFire_OpenTopCloakFix, 0x5) you did nothing here, why you hook on this address

I didn't do anything is 100% correct. I took @MortonPL and deleted the part that didn't make it act like vanilla. If I need to delete it please tell me, I'm complete noob in this

Copy link
Collaborator

@DeathFishAtEase DeathFishAtEase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The document is incomplete. Please complete it in the OpenTopped extension section, or if you don't mind, I might directly submit the changes (since I see you have checked Maintainers are allowed to edit this pull request.)

@CnCRAZER
Copy link
Contributor Author

The document is incomplete. Please complete it in the OpenTopped extension section, or if you don't mind, I might directly submit the changes (since I see you have checked Maintainers are allowed to edit this pull request.)

There's an open topped extension section? Jesus Christ

@DeathFishAtEase
Copy link
Collaborator

There's an open topped extension section? Jesus Christ

See the section Customizable OpenTopped properties in the documentation.

This title corresponds to line 1552 of .\docs\New-or-Enhanced-Logics.md in the branch where the PR is located.

@CnCRAZER
Copy link
Contributor Author

The document is incomplete. Please complete it in the OpenTopped extension section, or if you don't mind, I might directly submit the changes (since I see you have checked Maintainers are allowed to edit this pull request.)

Once I get the patch working in an acceptable manner I will go back and update the documentation. Thank you

@CnCRAZER
Copy link
Contributor Author

DEFINE_HOOK(0x6FCD1D, TechnoClass_CanFire_OpenTopCloakFix, 0x5) you did nothing here, why you hook on this address

This has been addressed and implemented now.

Copy link
Member

@Metadorius Metadorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but add Morton to credits too, can be merged after this

CREDITS.md Outdated
- **CnCRazer** - Wall overlay unit sell exploit fix
- **RAZER**:
- Wall overlay unit sell exploit fix
- Revert Ares patch to allow OpenTopped transport customization.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto, duplicate for Morton

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DeathFishAtEase should I put him in parenthesis on this line including he helped or should I add it under his section :P

Copy link
Collaborator

@DeathFishAtEase DeathFishAtEase Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DeathFishAtEase should I put him in parenthesis on this line including he helped or should I add it under his section :P

In the Changelog, if there are two individuals, parentheses are used at the end with & separating them; for three or more individuals, they are separated by ,. Just like the suggestion below.
In the CREDITS, the two entries are each placed under the respective person's section. Specifically, you need to insert the - Revert Ares patch to allow OpenTopped transport customization field between lines 311 and 312.

Co-authored-by: Kerbiter <crabiter@vivaldi.net>
CnCRAZER and others added 2 commits February 26, 2026 08:53
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants