Add assault move to D2K.

This commit is contained in:
Paul Chote
2017-09-09 21:01:55 +00:00
committed by reaperrr
parent d588854cc5
commit 3575e82078
7 changed files with 56 additions and 35 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -39,8 +39,9 @@ Container@PLAYER_WIDGETS:
Key: AttackMove Key: AttackMove
DisableKeySound: true DisableKeySound: true
TooltipText: Attack Move TooltipText: Attack Move
TooltipDesc: Selected units will move to the desired location\nand attack any enemies they encounter en route.\n\nLeft-click icon then right-click on target location. TooltipDesc: Selected units will move to the desired location\nand attack any enemies they encounter en route.\n\nHold {(Ctrl)} while targeting to order an Assault Move\nthat attacks any units or structures encountered en route.\n\nLeft-click icon then right-click on target location.
TooltipContainer: TOOLTIP_CONTAINER TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: BUTTON_WITH_DESC_HIGHLIGHT_TOOLTIP
Children: Children:
Image@ICON: Image@ICON:
X: 4 X: 4

View File

@@ -128,26 +128,6 @@ Cursors:
Length: 8 Length: 8
X: 24 X: 24
Y: 24 Y: 24
attackmove:
Start: 16
Length: 8
X: 24
Y: 24
attackmove-minimap:
Start: 16
Length: 8
X: 24
Y: 24
assaultmove:
Start: 16
Length: 8
X: 24
Y: 24
assaultmove-minimap:
Start: 16
Length: 8
X: 24
Y: 24
harvest: harvest:
Start: 16 Start: 16
Length: 8 Length: 8
@@ -315,3 +295,25 @@ Cursors:
Length: 3 Length: 3
X: 12 X: 12
Y: 12 Y: 12
attackmove.shp: mouse
attackmove:
Start: 0
Length: 8
X: -2
Y: -2
attackmove-minimap:
Start: 0
Length: 8
X: -2
Y: -2
assaultmove.shp: mouse
assaultmove:
Start: 0
Length: 8
X: -2
Y: -2
assaultmove-minimap:
Start: 0
Length: 8
X: -2
Y: -2

View File

@@ -132,6 +132,15 @@
ValidTargets: Infantry, Vehicle, Creep, Water, Structure, Defense ValidTargets: Infantry, Vehicle, Creep, Water, Structure, Defense
InvalidTargets: NoAutoTarget InvalidTargets: NoAutoTarget
^AutoTargetGroundAssaultMove:
Inherits: ^AutoTargetGround
AutoTargetPriority@DEFAULT:
RequiresCondition: !stance-attackanything && !assault-move
AutoTargetPriority@ATTACKANYTHING:
RequiresCondition: stance-attackanything || assault-move
AttackMove:
AssaultMoveScanCondition: assault-move
^AutoTargetAll: ^AutoTargetAll:
AutoTarget: AutoTarget:
AttackAnythingCondition: stance-attackanything AttackAnythingCondition: stance-attackanything
@@ -144,6 +153,15 @@
ValidTargets: Infantry, Vehicle, Creep, Water, Air, Structure, Defense ValidTargets: Infantry, Vehicle, Creep, Water, Air, Structure, Defense
InvalidTargets: NoAutoTarget InvalidTargets: NoAutoTarget
^AutoTargetAllAssaultMove:
Inherits: ^AutoTargetAll
AutoTargetPriority@DEFAULT:
RequiresCondition: !stance-attackanything && !assault-move
AutoTargetPriority@ATTACKANYTHING:
RequiresCondition: stance-attackanything || assault-move
AttackMove:
AssaultMoveScanCondition: assault-move
^Vehicle: ^Vehicle:
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld
Inherits@2: ^GainsExperience Inherits@2: ^GainsExperience

View File

@@ -1,6 +1,6 @@
light_inf: light_inf:
Inherits: ^Infantry Inherits: ^Infantry
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Infantry Queue: Infantry
BuildPaletteOrder: 10 BuildPaletteOrder: 10
@@ -50,7 +50,7 @@ engineer:
trooper: trooper:
Inherits: ^Infantry Inherits: ^Infantry
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Infantry Queue: Infantry
BuildPaletteOrder: 20 BuildPaletteOrder: 20
@@ -124,7 +124,7 @@ thumper:
fremen: fremen:
Inherits: ^Infantry Inherits: ^Infantry
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Tooltip: Tooltip:
Name: Fremen Name: Fremen
Buildable: Buildable:
@@ -166,7 +166,7 @@ fremen:
grenadier: grenadier:
Inherits: ^Infantry Inherits: ^Infantry
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Infantry Queue: Infantry
BuildPaletteOrder: 80 BuildPaletteOrder: 80
@@ -197,7 +197,7 @@ grenadier:
sardaukar: sardaukar:
Inherits: ^Infantry Inherits: ^Infantry
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Infantry Queue: Infantry
BuildPaletteOrder: 80 BuildPaletteOrder: 80

View File

@@ -100,7 +100,7 @@ harvester:
trike: trike:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Vehicle Queue: Vehicle
BuildPaletteOrder: 10 BuildPaletteOrder: 10
@@ -140,7 +140,7 @@ trike:
quad: quad:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Vehicle Queue: Vehicle
Prerequisites: upgrade.light, ~techlevel.medium Prerequisites: upgrade.light, ~techlevel.medium
@@ -175,7 +175,7 @@ quad:
siege_tank: siege_tank:
Inherits: ^Tank Inherits: ^Tank
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Armor Queue: Armor
Prerequisites: upgrade.heavy, ~techlevel.medium Prerequisites: upgrade.heavy, ~techlevel.medium
@@ -222,7 +222,7 @@ siege_tank:
missile_tank: missile_tank:
Inherits: ^Tank Inherits: ^Tank
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Tooltip: Tooltip:
Name: Missile Tank Name: Missile Tank
Buildable: Buildable:
@@ -261,7 +261,7 @@ missile_tank:
sonic_tank: sonic_tank:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Armor Queue: Armor
BuildPaletteOrder: 100 BuildPaletteOrder: 100
@@ -296,7 +296,7 @@ sonic_tank:
devastator: devastator:
Inherits: ^Tank Inherits: ^Tank
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Armor Queue: Armor
BuildPaletteOrder: 100 BuildPaletteOrder: 100
@@ -341,7 +341,7 @@ devastator:
raider: raider:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Vehicle Queue: Vehicle
BuildPaletteOrder: 10 BuildPaletteOrder: 10
@@ -405,7 +405,7 @@ stealth_raider:
deviator: deviator:
Inherits: ^Tank Inherits: ^Tank
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 1000 Cost: 1000
Tooltip: Tooltip:
@@ -442,7 +442,7 @@ deviator:
^combat_tank: ^combat_tank:
Inherits: ^Tank Inherits: ^Tank
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Buildable: Buildable:
Queue: Armor Queue: Armor
BuildPaletteOrder: 40 BuildPaletteOrder: 40