Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior#2110
Conversation
|
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. |
There was a problem hiding this comment.
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.
…nCRAZER/Phobos into ares-fix-opentopped-transports
This reverts commit 81ba9f6.
This reverts commit fdb880d.
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 |
DeathFishAtEase
left a comment
There was a problem hiding this comment.
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 |
See the section Customizable OpenTopped properties in the documentation. This title corresponds to line 1552 of |
Once I get the patch working in an acceptable manner I will go back and update the documentation. Thank you |
This has been addressed and implemented now. |
Metadorius
left a comment
There was a problem hiding this comment.
LGTM but add Morton to credits too, can be merged after this
Co-authored-by: Kerbiter <crabiter@vivaldi.net>
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
# Conflicts: # CREDITS.md
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:
OpenTopped.DecloakToFireoption to bothRulesExtandTechnoTypeExt, allowing global or per-unit control over whether passengers firing withDecloakToFire=yesdecloak their open-topped transporter.