Skip to content

Comments

Separation of AutoTarget for DeployFireWeapon, OpenTransportWeapon, and NoAmmoWeapon#2090

Open
Fly-Star-him wants to merge 11 commits intoPhobos-developers:developfrom
Fly-Star-him:autotargetExtra
Open

Separation of AutoTarget for DeployFireWeapon, OpenTransportWeapon, and NoAmmoWeapon#2090
Fly-Star-him wants to merge 11 commits intoPhobos-developers:developfrom
Fly-Star-him:autotargetExtra

Conversation

@Fly-Star-him
Copy link
Contributor

@Fly-Star-him Fly-Star-him commented Feb 5, 2026

  • When DeployFireWeapon, OpenTransportWeapon, and NoAmmoWeapon are set and available, their AutoTarget will only evaluate the current weapon's damage, similar to IFVs, rather than calculating the average damage from all weapons.
  • DeployFireWeaponOpenTransportWeaponNoAmmoWeapon被设置且可用时,其自动索敌功能仅评估当前武器的伤害值(类似于步兵战车)而非计算所有武器的平均伤害值。

@Fly-Star-him
Copy link
Contributor Author

The scope of application for this PR is extremely limited; I honestly can't think of any practical scenario where it would be useful.

@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.

@Fly-Star-him
Copy link
Contributor Author

Fly-Star-him commented Feb 7, 2026

  • Considering that direct fixes might affect the original behavior, I decided to add a new toggle option.
  • 考虑到直接修复可能会影响到原本的行为,因此我决定新增一个开关选项。

  • In Vanilla, when IsGattling=no and TurretCount is less than or equal to 0, units will only repair/heal targets if the following condition is met: the total Damage + AmbientDamage of all weapons divided by the total number of weapons is less than 0. This may cause units equipped with both healing and lethal weapons to fail to properly execute DeployFireWeapon, OpenTransportWeapon, and NoAmmoWeapon. Now you can use a new flag SeparateWeaponTypes to overcome this problem.
    • When using a separate auto-aiming device, the effective range will use the current weapon's range rather than the unit's maximum weapon range, GuardRange remains effective. Whether ground or air targets can be attacked is also entirely determined by the current weapon.

In rulesmd.ini:

[SOMETECHNO]                ; TechnoType
SeparateWeaponTypes=none    ; List of SeparateWeaponType Enumeration (none|deployfireweapon|opentransport|noammo|all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants