Vinifera
Vinifera copied to clipboard
[Vanilla Bug] Helipads Cannot Repair Aircraft
First Check
- [X] I added a very descriptive title to this issue.
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I have attached as much information as possible (screenshots, videos, links, etc).
Description
What the title says. Allowing aircraft to repair while docked in a helipad would remove the need to manually shuffle aircraft between reloads and repairs (especially when the player house doesn't have a service depot, like Nod in the vanilla game). This is a standard feature in later C&C games.
UnitRepair
works on helipads, but causes adverse side-effects, in that the aircraft will undock as soon as it has full health (and will not dock again until damaged). It also seems to conflict with aircraft helipad-seeking behavior.
Currently, there are some ways to work around this, such as negative damage particles on the helipad or the aircraft, but none are ideal. For example, if the aircraft is cloaked, any time the aircraft is dealt negative "damage" it will uncloak.
Proposed Code (optional)
Fixing whatever issues lie with UnitRepair
would be the obvious direction.
Note that WWP apparently attempted to implement UnitRepair
for the Allied Airforce Command building, but the issues described above made them change their minds. See ModEnc for more information.
Additional Context
Also note issue #23.