Skip to content

Conversation

Stubbjax
Copy link

@Stubbjax Stubbjax commented Sep 25, 2025

This change fixes tunnels stacking their healing behaviour for each existing tunnel.

The TunnelContain module specifies a healing time of 5000 milliseconds (5 seconds) for its occupants.

Behavior = TunnelContain ModuleTag_05
  TimeForFullHeal = 5000 ; (in milliseconds)
End

This works as expected when there is a single tunnel. However, when there are two tunnels, this time drops to 2500 milliseconds as both tunnels are applying the healing, and is halved again for every additional tunnel.

This behaviour is undesirable as it nullifies the purpose of the TimeForFullHeal field and makes healing time feel random. Players typically end up with enough tunnels for their units to effectively heal instantly. If the instantaneous heal speeds from retail remain desirable, the TimeForFullHeal field can be adjusted accordingly.

Below is a summary of the heal times based on the number of tunnels in retail:

Tunnels Heal time Heal frames
1 5000 ms 150
2 2500 ms 75
3 1250 ms 38
4 625 ms 19
5 313 ms 10
6 156 ms 5
7 78 ms 3
8 39 ms 2
9 20 ms 1

Note: These are times for a full heal; e.g. if a unit has 50% health, the heal time is halved.

@Stubbjax Stubbjax self-assigned this Sep 25, 2025
@Stubbjax Stubbjax added Bug Something is not working right, typically is user facing Major Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour labels Sep 25, 2025
@xezon xezon changed the title bugfix: Prevent tunnel healing from stacking bugfix(tunnel): Fix stacked unit healing time inside multiple GLA Tunnel Networks Sep 25, 2025
@xezon xezon added the Controversial Is controversial label Sep 25, 2025
@Stubbjax Stubbjax added GLA Affects GLA faction NoRetail This fix or change is not applicable with Retail game compatibility labels Sep 26, 2025
@xezon xezon merged commit fe49f3b into TheSuperHackers:main Oct 8, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something is not working right, typically is user facing Controversial Is controversial Gen Relates to Generals GLA Affects GLA faction Major Severity: Minor < Major < Critical < Blocker NoRetail This fix or change is not applicable with Retail game compatibility ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLA Tunnel unit repair stacks with every additional Tunnel

2 participants