Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior#2110
Ares Optional Fix -- Ability To Revert Ares Transport Cloak Behavior#2110CnCRAZER wants to merge 26 commits intoPhobos-developers:developfrom
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
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. |
There was a problem hiding this comment.
@DeathFishAtEase should I put him in parenthesis on this line including he helped or should I add it under his section :P
There was a problem hiding this comment.
@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>
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
Co-authored-by: Noble Fish <89088785+DeathFishAtEase@users.noreply.github.com>
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.