Add assault move to TD.

This commit is contained in:
Paul Chote
2017-09-09 20:46:07 +00:00
committed by reaperrr
parent c46d1944d9
commit d588854cc5
9 changed files with 50 additions and 28 deletions

BIN
mods/cnc/bits/mouse8.shp Normal file

Binary file not shown.

View File

@@ -303,8 +303,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: 5 X: 5

View File

@@ -167,12 +167,6 @@ Cursors:
attackmove-minimap: attackmove-minimap:
Start: 20 Start: 20
Length: 4 Length: 4
assaultmove:
Start: 12
Length: 8
assaultmove-minimap:
Start: 20
Length: 4
move-blocked: move-blocked:
Start: 24 Start: 24
Length: 1 Length: 1
@@ -223,3 +217,10 @@ Cursors:
Length: 8 Length: 8
attackoutsiderange-minimap: attackoutsiderange-minimap:
Start: 8 Start: 8
mouse8.shp: cursor
assaultmove:
Start: 0
Length: 8
assaultmove-minimap:
Start: 8
Length: 4

View File

@@ -150,3 +150,4 @@ ORCA.IN:
-AutoTarget: -AutoTarget:
-AutoTargetPriority@DEFAULT: -AutoTargetPriority@DEFAULT:
-AutoTargetPriority@ATTACKANYTHING: -AutoTargetPriority@ATTACKANYTHING:
-AttackMove:

View File

@@ -37,6 +37,7 @@ UNITCRATE:
Units: e3 Units: e3
APC: APC:
Inherits@AUTOTARGET: ^AutoTargetAll
Health: Health:
HP: 1000 HP: 1000
MustBeDestroyed: MustBeDestroyed:

View File

@@ -54,7 +54,7 @@ TRAN:
HELI: HELI:
Inherits: ^Helicopter Inherits: ^Helicopter
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 1200 Cost: 1200
Tooltip: Tooltip:
@@ -113,7 +113,7 @@ HELI:
ORCA: ORCA:
Inherits: ^Helicopter Inherits: ^Helicopter
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 1200 Cost: 1200
Tooltip: Tooltip:

View File

@@ -159,6 +159,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
^AutoTargetAir: ^AutoTargetAir:
AutoTarget: AutoTarget:
AutoTargetPriority@DEFAULT: AutoTargetPriority@DEFAULT:
@@ -177,6 +186,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
^AcceptsCloakCrate: ^AcceptsCloakCrate:
Cloak: Cloak:
InitialDelay: 15 InitialDelay: 15
@@ -457,7 +475,7 @@
^DINO: ^DINO:
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld
Inherits@2: ^SpriteActor Inherits@2: ^SpriteActor
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Huntable: Huntable:
Health: Health:
HP: 1000 HP: 1000
@@ -518,7 +536,7 @@
^Viceroid: ^Viceroid:
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld
Inherits@2: ^SpriteActor Inherits@2: ^SpriteActor
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Huntable: Huntable:
Health: Health:
HP: 300 HP: 300

View File

@@ -1,7 +1,7 @@
E1: E1:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 100 Cost: 100
Tooltip: Tooltip:
@@ -27,7 +27,7 @@ E1:
E2: E2:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 160 Cost: 160
Tooltip: Tooltip:
@@ -60,7 +60,7 @@ E2:
E3: E3:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 300 Cost: 300
Tooltip: Tooltip:
@@ -89,7 +89,7 @@ E3:
E4: E4:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 200 Cost: 200
Tooltip: Tooltip:
@@ -120,7 +120,7 @@ E4:
E5: E5:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 300 Cost: 300
Tooltip: Tooltip:
@@ -180,7 +180,7 @@ E6:
RMBO: RMBO:
Inherits: ^Soldier Inherits: ^Soldier
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 2000 Cost: 2000
Tooltip: Tooltip:

View File

@@ -82,7 +82,7 @@ APC:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 550 Cost: 550
Tooltip: Tooltip:
@@ -132,7 +132,7 @@ ARTY:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 600 Cost: 600
Tooltip: Tooltip:
@@ -170,7 +170,7 @@ FTNK:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 600 Cost: 600
Tooltip: Tooltip:
@@ -205,7 +205,7 @@ BGGY:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@@EXPERIENCE: ^GainsExperience Inherits@@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 300 Cost: 300
Tooltip: Tooltip:
@@ -241,7 +241,7 @@ BIKE:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 500 Cost: 500
Tooltip: Tooltip:
@@ -279,7 +279,7 @@ JEEP:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 400 Cost: 400
Tooltip: Tooltip:
@@ -315,7 +315,7 @@ LTNK:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 650 Cost: 650
Tooltip: Tooltip:
@@ -354,7 +354,7 @@ MTNK:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 800 Cost: 800
Tooltip: Tooltip:
@@ -392,7 +392,7 @@ HTNK:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 1500 Cost: 1500
Tooltip: Tooltip:
@@ -443,7 +443,7 @@ MSAM:
Inherits: ^Tank Inherits: ^Tank
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@CLOAK: ^AcceptsCloakCrate Inherits@CLOAK: ^AcceptsCloakCrate
Inherits@AUTOTARGET: ^AutoTargetGround Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
Valued: Valued:
Cost: 1000 Cost: 1000
Tooltip: Tooltip:
@@ -525,7 +525,7 @@ MLRS:
STNK: STNK:
Inherits: ^Vehicle Inherits: ^Vehicle
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Valued: Valued:
Cost: 900 Cost: 900
Tooltip: Tooltip: