Skip to content

Extended auto-targeting#2087

Open
TaranDahl wants to merge 5 commits intoPhobos-developers:developfrom
TaranDahl:ExtraTargeting_Final
Open

Extended auto-targeting#2087
TaranDahl wants to merge 5 commits intoPhobos-developers:developfrom
TaranDahl:ExtraTargeting_Final

Conversation

@TaranDahl
Copy link
Contributor

@TaranDahl TaranDahl commented Feb 4, 2026

Extended auto-targeting

  • Now you can activate multiple auto-targeting optimizations by setting ExtendedAutoTargeting=true. These include:
    • When using stop, guard, or mouse commands, refresh the auto-targeting cooldown.
    • When the target becomes invalid, refresh the auto-targeting cooldown (In vanilla, this cooldown will be reduced to less than 10 frames).
    • When a unit is on a task that allows auto-targeting but already has a target, it will still auto-target. If a target with a threat level higher than the original target by more than ExtendedAutoTargeting.SwitchTargetThreshold is found, switch the target.

In rulesmd.ini:

[General]
ExtendedAutoTargeting=false                        ; boolean
ExtendedAutoTargeting.SwitchTargetThreshold=1000   ; integer

@TaranDahl TaranDahl added ❓New feature Tested ⚙️T1 T1 maintainer review is sufficient labels Feb 4, 2026
@TaranDahl
Copy link
Contributor Author

Prerequisite: #2078
The new feature of auto-targeting when having a target will not take effect unless this fix is enabled.

@TaranDahl
Copy link
Contributor Author

TaranDahl commented Feb 4, 2026

Demonstration of one of the features:

Vanilla:
对照组

ExtendedAutoTargeting=yes
实验组

Unit did auto-targeting and changed target.
换目标

@github-actions
Copy link

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

@TaranDahl TaranDahl changed the title Extra targeting final Extended auto-targeting Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❓New feature ⚙️T1 T1 maintainer review is sufficient Tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant