| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- # Specific Root compound tasks being used for NPCs.
- # Tries to shoot a target in LOS in range.
- - type: htnCompound
- id: TurretCompound
- branches:
- - tasks:
- - !type:HTNPrimitiveTask
- operator: !type:UtilityOperator
- proto: NearbyGunTargets
- - !type:HTNPrimitiveTask
- preconditions:
- - !type:KeyExistsPrecondition
- key: Target
- - !type:TargetInRangePrecondition
- targetKey: Target
- # TODO: Non-scuffed
- rangeKey: RangedRange
- - !type:TargetInLOSPrecondition
- targetKey: Target
- rangeKey: RangedRange
- operator: !type:GunOperator
- targetKey: Target
- requireLOS: true
- services:
- - !type:UtilityService
- id: RangedService
- proto: NearbyGunTargets
- key: Target
- - tasks:
- - !type:HTNCompoundTask
- task: IdleSpinCompound
- - type: htnCompound
- id: EnergyTurretCompound
- branches:
- - tasks:
- - !type:HTNPrimitiveTask
- operator: !type:UtilityOperator
- proto: NearbyGunTargets
- - !type:HTNPrimitiveTask
- preconditions:
- - !type:KeyExistsPrecondition
- key: Target
- - !type:TargetInRangePrecondition
- targetKey: Target
- # TODO: Non-scuffed
- rangeKey: RangedRange
- - !type:TargetInLOSPrecondition
- targetKey: Target
- rangeKey: RangedRange
- opaqueKey: true
- operator: !type:GunOperator
- targetKey: Target
- opaqueKey: true
- services:
- - !type:UtilityService
- id: RangedService
- proto: NearbyGunTargets
- key: Target
- - tasks:
- - !type:HTNCompoundTask
- task: IdleSpinCompound
- - type: htnCompound
- id: SimpleRangedHostileCompound
- branches:
- - tasks:
- - !type:HTNCompoundTask
- task: InnateRangedCombatCompound
- - tasks:
- - !type:HTNCompoundTask
- task: MeleeCombatCompound
- - tasks:
- - !type:HTNCompoundTask
- task: IdleCompound
- - type: htnCompound
- id: SimpleHumanoidHostileCompound
- branches:
- - tasks:
- - !type:HTNCompoundTask
- task: RangedCombatCompound
- - tasks:
- - !type:HTNCompoundTask
- task: MeleeCombatCompound
- - tasks:
- - !type:HTNCompoundTask
- task: IdleCompound
|