Sort Target in a special order, so u can choose the most dangerous one or just some random guy.
Category
CTargetSort
Ancestor class for all other CTargetSort
Descending
- reverse the order
Unit
Which unit should use this Target Sorts. Default is caster/attacker. U can also specify, if the target unit is effected by something like psi-storm-dmg
CTargetSortAlliance
Target unit from certain alliance first. This alliance is not an exact alliance, it is a relationship between caster unit's alliance and target unit's alliance. U can sort alliance using this values:
Chat
Control
Defeat
Give Help
Passive
Alliance, which act too passive.
Pushable
Seek Help
Spend
Alliance, which spend the most
Trade
Alliance, which trade the most
Vision
Alliance, which have most vision?
CTargetSortAngle
Sort by angle, Target unit in the front first
CTargetSortBehaviorCount
Sort by behavior count
CTargetSortBehaviorDuration
Sort by behavior duration
CTargetSortChargeCount
Charge is the number of certain ability a unit can cast, like grenade.
CTargetSortChargeRegen
Sort by regeneration of ability charge
CTargetSortCooldown
sort by ability cooldown
CTargetSortDistance
-
CTargetSortField
-
CTargetSortMarker
Marked unit will be targeted first
CTargetSortPowerSourceLevel
Target Power Source first (pylon)
CTargetSortPowerUserLevel
-
CTargetSortPriority
Priority is a field from unit: "Attacker Target Priority"
CTargetSortRandom
Target random unit in range
CTargetSortVeterancy
Target experienced unit first or last
CTargetSortVital
Target unit with most or least shield for example
CTargetSortVitalFraction
Same as above, but use fraction