Skip to content

Comments

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

Open
CnCRAZER wants to merge 16 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 16 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.)

- Fixed the issue that technos cannot spawn survivors due to non-probabilistic reasons when the tech type was destroyed (by NetsuNegi)
- Fixed the bug that vehicle survivor can spawn on wrong position when transport has been destroyed (by NetsuNegi)
- Fixed the bug that building with `Explodes=yes` use Ares's rubble logic will cause it's owner cannot defeat normally (by NetsuNegi)
- Passengers in open-topped transports can no longer decloak the transporter when firing weapons with `DecloakToFire=yes`. The transporter will only decloak if it fires its own weapons.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The format does not conform to the specifications.

- **CnCRazer** - Wall overlay unit sell exploit fix
- **RAZER**:
- Revert Ares patch to allow passengers inside cloaked transports which are opentopped fire out
- Wall overlay unit sell exploit fix
Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally speaking, the existing entries in this document are arranged in chronological order rather than the reverse.

@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

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