Refactor Leap attack logic
This commit is contained in:
@@ -429,6 +429,7 @@
|
||||
Radius: 128
|
||||
MapEditorData:
|
||||
Categories: Infantry
|
||||
EdibleByLeap:
|
||||
|
||||
^Soldier:
|
||||
Inherits: ^Infantry
|
||||
|
||||
@@ -20,6 +20,7 @@ DOG:
|
||||
Mobile:
|
||||
Speed: 99
|
||||
Voice: Move
|
||||
RequiresCondition: !attack-cooldown && !eating
|
||||
Guard:
|
||||
Voice: Move
|
||||
Passenger:
|
||||
@@ -28,10 +29,17 @@ DOG:
|
||||
Range: 5c0
|
||||
Armament:
|
||||
Weapon: DogJaw
|
||||
ReloadingCondition: attack-cooldown
|
||||
AttackLeap:
|
||||
Voice: Attack
|
||||
PauseOnCondition: attacking || attack-cooldown
|
||||
AttackMove:
|
||||
Voice: Move
|
||||
GrantConditionOnAttack:
|
||||
Condition: eating
|
||||
RevokeDelay: 45
|
||||
GrantConditionWhileAiming:
|
||||
Condition: run
|
||||
AutoTarget:
|
||||
InitialStance: AttackAnything
|
||||
AutoTargetPriority@DEFAULT:
|
||||
@@ -39,8 +47,16 @@ DOG:
|
||||
Targetable:
|
||||
TargetTypes: Ground, Infantry
|
||||
WithInfantryBody:
|
||||
DefaultAttackSequence: shoot
|
||||
MoveSequence: walk
|
||||
StandSequences: stand
|
||||
DefaultAttackSequence: eat
|
||||
RequiresCondition: !attacking && !run
|
||||
WithInfantryBody@RUN:
|
||||
MoveSequence: run
|
||||
RequiresCondition: run
|
||||
SpeedMultiplier:
|
||||
Modifier: 150
|
||||
RequiresCondition: run
|
||||
IgnoresDisguise:
|
||||
DetectCloaked:
|
||||
CloakTypes: Cloak, Thief
|
||||
|
||||
@@ -499,11 +499,21 @@ e2:
|
||||
dog:
|
||||
stand:
|
||||
Facings: 8
|
||||
run:
|
||||
walk:
|
||||
Start: 8
|
||||
Length: 6
|
||||
Facings: 8
|
||||
Tick: 80
|
||||
run:
|
||||
Start: 56
|
||||
Length: 6
|
||||
Facings: 8
|
||||
Tick: 80
|
||||
eat:
|
||||
Start: 104
|
||||
Length: 14
|
||||
Facings: 8
|
||||
Tick: 120
|
||||
idle1:
|
||||
Start: 216
|
||||
Length: 7
|
||||
@@ -537,7 +547,7 @@ dog:
|
||||
TilesetOverrides:
|
||||
DESERT: TEMPERAT
|
||||
INTERIOR: TEMPERAT
|
||||
shoot: dogbullt
|
||||
jump: dogbullt
|
||||
Length: 4
|
||||
Facings: 8
|
||||
icon: dogicon
|
||||
|
||||
@@ -109,8 +109,9 @@ DogJaw:
|
||||
ReloadDelay: 10
|
||||
Range: 3c0
|
||||
Report: dogg5p.aud
|
||||
Warhead@1Dam: SpreadDamage
|
||||
Spread: 213
|
||||
TargetActorCenter: true
|
||||
Projectile: InstantHit
|
||||
Warhead@1Dam: TargetDamage
|
||||
Damage: 10000
|
||||
ValidTargets: Infantry
|
||||
InvalidTargets: Ant
|
||||
|
||||
Reference in New Issue
Block a user