Refactor Leap attack logic

This commit is contained in:
abcdefg30
2018-12-25 13:57:57 +01:00
committed by reaperrr
parent 9c4cb9091e
commit 0ff4e466ee
9 changed files with 299 additions and 62 deletions

View File

@@ -429,6 +429,7 @@
Radius: 128
MapEditorData:
Categories: Infantry
EdibleByLeap:
^Soldier:
Inherits: ^Infantry

View File

@@ -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

View File

@@ -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

View File

@@ -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