|
| 1 | +- type: htnCompound |
| 2 | + id: GrenadePenguinCompound |
| 3 | + branches: |
| 4 | + - tasks: |
| 5 | + - !type:HTNCompoundTask |
| 6 | + task: GrenadePenguinMeleeCombatPrecondition |
| 7 | + - tasks: |
| 8 | + - !type:HTNCompoundTask |
| 9 | + task: IdleCompound |
| 10 | + |
| 11 | +- type: htnCompound |
| 12 | + id: GrenadePenguinMeleeCombatPrecondition |
| 13 | + branches: |
| 14 | + - preconditions: |
| 15 | + - !type:BuckledPrecondition |
| 16 | + isBuckled: true |
| 17 | + tasks: |
| 18 | + - !type:HTNPrimitiveTask |
| 19 | + operator: !type:UnbuckleOperator |
| 20 | + shutdownState: TaskFinished |
| 21 | + |
| 22 | + - preconditions: |
| 23 | + - !type:InFriendlyContainerPrecondition |
| 24 | + isInFriendlyContainer: true |
| 25 | + tasks: |
| 26 | + - !type:HTNCompoundTask |
| 27 | + task: DoNotEscapeCompound |
| 28 | + |
| 29 | + - preconditions: |
| 30 | + - !type:InContainerPrecondition |
| 31 | + isInContainer: true |
| 32 | + tasks: |
| 33 | + - !type:HTNCompoundTask |
| 34 | + task: EscapeCompound |
| 35 | + |
| 36 | + - preconditions: |
| 37 | + - !type:PulledPrecondition |
| 38 | + isPulled: true |
| 39 | + tasks: |
| 40 | + - !type:HTNPrimitiveTask |
| 41 | + operator: !type:UnPullOperator |
| 42 | + shutdownState: TaskFinished |
| 43 | + |
| 44 | + - tasks: |
| 45 | + - !type:HTNPrimitiveTask |
| 46 | + operator: !type:UtilityOperator |
| 47 | + proto: NearbyMeleeTargets |
| 48 | + - !type:HTNCompoundTask |
| 49 | + task: GrenadePenguinMeleeCombatCompound |
| 50 | + |
| 51 | +- type: htnCompound |
| 52 | + id: GrenadePenguinMeleeCombatCompound |
| 53 | + branches: |
| 54 | + - preconditions: |
| 55 | + - !type:KeyExistsPrecondition |
| 56 | + key: Target |
| 57 | + tasks: |
| 58 | + - !type:HTNPrimitiveTask |
| 59 | + operator: !type:MoveToOperator |
| 60 | + shutdownState: PlanFinished |
| 61 | + pathfindInPlanning: true |
| 62 | + removeKeyOnFinish: false |
| 63 | + targetKey: TargetCoordinates |
| 64 | + pathfindKey: TargetPathfind |
| 65 | + rangeKey: MeleeRange |
| 66 | + # too angry to juke |
| 67 | + - !type:HTNPrimitiveTask |
| 68 | + operator: !type:MeleeOperator |
| 69 | + targetKey: Target |
| 70 | + preconditions: |
| 71 | + - !type:KeyExistsPrecondition |
| 72 | + key: Target |
| 73 | + - !type:TargetInRangePrecondition |
| 74 | + targetKey: Target |
| 75 | + rangeKey: MeleeRange |
| 76 | + # no service, no changing target |
0 commit comments