2025-07-25 18:22 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003430Spring engineGeneralpublic2013-02-01 18:53
ReporterKingRaptor 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusfeedbackResolutionreopened 
Product Version 
Target VersionFixed in Version 
Summary0003430: (91.0.1) Units remain at range of longest-ranged weapon
DescriptionUnits will not approach any closer to their target (whether ground or unit) than the range of their longest-ranged weapon, rather than weapon 1 as in previous versions. This occurs even if the LRW is a commandfire weapon on a canManualFire=true unit.

Observed on the ZK Bantha (armbanth) and White Dragon (chicken_dragon) in Spring 91.0.1-1239-g70b9f8e release (OMP).
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009669

Kloot (developer)

see changelog:

 ! fix units failing ground-attack orders when their "main" weapon != weapons[0] (3276)
    logic change: MobileCAI::ExecuteAttack now cycles through all weapons until
    it finds one which can execute the order, and no longer depends on weapon[0]
    being the "main" weapon

~0009679

KingRaptor (reporter)

Is there then a way to define the "primary" weapon, or otherwise set the distance the unit closes in to? Current behavior is otherwise highly undesirable if the unit needs to get closer than max weapon range in order to deal damage effectively, especially for units under AI control.

~0009681

Kloot (developer)

Not yet.

It's my plan to make the closing distance a parameter of CMD_ATTACK, but 92.0 is feature-frozen now.

~0009682

jK (developer)

why not just add a Lua function to select `main` weapon?

~0009683

FLOZi (reporter)

I imagine setting it as param of CMD will be clunky for game devs compared to a straightforward tag but others may well prefer the extra flexibility.
+Notes

-Issue History
Date Modified Username Field Change
2013-01-30 17:43 KingRaptor New Issue
2013-01-30 18:43 Kloot Note Added: 0009669
2013-01-30 18:43 Kloot Status new => closed
2013-01-30 18:43 Kloot Assigned To => Kloot
2013-01-30 18:43 Kloot Resolution open => no change required
2013-01-31 13:15 KingRaptor Note Added: 0009679
2013-01-31 13:15 KingRaptor Status closed => feedback
2013-01-31 13:15 KingRaptor Resolution no change required => reopened
2013-01-31 16:35 Kloot Note Added: 0009681
2013-02-01 00:35 jK Note Added: 0009682
2013-02-01 18:53 FLOZi Note Added: 0009683
+Issue History