Skip to content

Comments

Group retaliate#2091

Draft
TaranDahl wants to merge 3 commits intoPhobos-developers:developfrom
TaranDahl:GroupRetaliate
Draft

Group retaliate#2091
TaranDahl wants to merge 3 commits intoPhobos-developers:developfrom
TaranDahl:GroupRetaliate

Conversation

@TaranDahl
Copy link
Contributor

Group retaliate

  • In vanilla, only the unit itself will counter - attack when it takes damage. This often makes units stupidly lured away one by one and eliminated.
  • Now you can make units "seek support from nearby friendly units" when they take damage. They will retaliate the attacker together with the victim.
    • GroupRetaliate.AllowAI and GroupRetaliate.AllowPlayer control whether this effect applies to AI units and player units respectively.
    • The attacker's threat must be higher than the GroupRetaliate.ThreatThreshold of the unit's current target to trigger retaliation.
    • GroupRetaliate.GroupRange controls the range within which the victim can call for friendly forces.
    • GroupRetaliate.TraceExtraRange controls the distance for retaliating against the attacker. When the attacker is farther from the unit than the unit's guard range + TraceExtraRange, retaliation will not be triggered.
  • An additional option DisableVanillaRetaliateBehavior is provided to turn off the vanilla retaliation behavior.

In rulesmd.ini:

[General]
GroupRetaliate.AllowAI=false             ; boolean
GroupRetaliate.AllowPlayer=false         ; boolean
GroupRetaliate.ThreatThreshold=1000.0    ; float, range in cell
GroupRetaliate.GroupRange=7.0            ; float, range in cell
GroupRetaliate.TraceExtraRange=20.0      ; float, range in cell
DisableVanillaRetaliateBehavior=false    ; boolean

[SOMETECHNO]                             ; TechnoType
GroupRetaliate.GroupRange=               ; float, range in cell, default to [General] -> GroupRetaliate.GroupRange
The unit must be able to trigger the vanilla retaliation behavior in order to trigger group retaliate.

core

Update Body.h

Replace vanilla

Update Body.cpp

修好了?

Unfinished

狗屎JJ又漂移

update

Update Body.cpp
@TaranDahl TaranDahl added ❓New feature Needs testing ⚙️T1 T1 maintainer review is sufficient labels Feb 5, 2026
@github-actions
Copy link

github-actions bot commented Feb 5, 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.

@deathreaperz
Copy link

What's the difference between Ares' TeamRetaliate and this one?

@TaranDahl
Copy link
Contributor Author

What's the difference between Ares' TeamRetaliate and this one?

As the name implies, TeamRetaliate only takes effect on units with a Team, and only on units of the same Team.
Here, Group does not refer to anything special. It refers to all friendly troops within a certain range around the unit.

@TaranDahl TaranDahl marked this pull request as draft February 6, 2026 17:13
update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs testing ❓New feature ⚙️T1 T1 maintainer review is sufficient

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants