NPC · Core definition
Template Predator
Abstract
Template_PredatorParameters96
Derived NPCs39
NPCs based on this definition
- Bear Grizzly
- Chicken Undead
- Cow Undead
- Crawler Void
- Crocodile
- Emberwulf
- Fen Stalker
- Fox
- Ghoul
- Hound Bleached
- Hyena
- Larva Silk
- Larva Void
- Leopard Snow
- Molerat
- Pig Undead
- Raptor Cave
- Rat
- Rex Cave
- Scorpion
- Shadow Knight
- Slug Magma
- Snake Marsh
- Snapdragon
- Spider
- Tiger Sabertooth
- Toad Rhino
- Toad Rhino Magma
- Werewolf
- Wolf Black
- Wraith Lantern
- Yeti
- Zombie
- Zombie Aberrant
- Zombie Aberrant Big
- Zombie Aberrant Small
- Zombie Burnt
- Zombie Frost
- Zombie Sand
Parameters
| Parameter | Value | Description |
|---|---|---|
Appearance | Fox | Model to be used. |
WanderRadius | 8 | General wander radius. |
ViewRange | 24 | The range from which the target will be seen. If zero, sight will be disabled. |
ViewSector | 120 | The view sector within which the target needs to be to be seen. |
HearingRange | 12 | The range from which the target will be heard. If zero, hearing will be disabled. |
AbsoluteDetectionRange | 4 | The range at which a target is guaranteed to be detected. If zero, absolute detection will be disabled. |
FleeRange | 15 | How far to try and get away when fleeing. |
ChanceToBeAlertedWhenFlockAlerted | 70 | Percentage chance to engage in combat if another flock member engages a target. |
AlertedRange | 28 | A range within which the target can be seen/sensed when the NPC is alerted to their presence. Should be higher than sense ranges. |
AlertedTime | [3,5] | How long to wait in an alerted or threatening state before switching to active combat. |
MaintainDistanceWhileAlerted | false | Whether or not to maintain distance and strafe while in the alerted state. |
AlertedRelativeForwardsSpeed | 0.5 | Relative movement speed when moving forwards or strafing while in the alerted state. Only applies if MaintainDistanceWhileAlerted is true. |
AlertedStrafingDurationRange | [1,1] | How long to strafe for when in the alerted state. Only applies if MaintainDistanceWhileAlerted is true. |
AlertedStrafingFrequencyRange | [2,2] | How frequently to strafe when in the alerted state. Only applies if MaintainDistanceWhileAlerted is true. |
FleeIfNotThreatened | false | Whether to flee while in the alerted state if not threatened after AlertedTime expires. |
ThreatenAnimation | An optional animation to play to threaten the target before initiating combat. | |
ThreatenDelayRange | [2,4] | Delay before the threaten animation is played. |
DropList | Empty | Drop Items. |
MaxSpeed | 8 | Maximum walking speed. |
RunThreshold | 0.55 | At what ratio NPC switches to run animation e.g MaxSpeed is 10, at RunThreshold 0.55 NPC will run at speed 5.5. |
Chase | true | Whether the NPC will chase the target during combat. |
ChaseRelativeSpeed | 1 | Relative chasing speed when pursuing a target. |
CombatMovingRelativeSpeed | 0.6 | Relative speed to use during combat specific movement (e.g. to achieve slower strafing). |
Attack | Root_NPC_Attack_Melee | The attack to use. |
AttackDistance | 2.5 | The distance to attack from. |
DayTimePeriod | [6.01,17.99] | The hour range considered to be daytime for this NPC. |
DayTimeNapWeight | 2 | Weight used to determine if the NPC should have a short nap during the day. Set to 0 to disable. |
DayTimeNapTimeRange | [10,12] | How long a daytime nap should last. |
TimidDuringDay | false | Whether this NPC is a bit more timid during the day. |
AlwaysSleepAtNight | true | Whether this NPC always sleeps through the whole night. |
NightFlavorAnimation | A flavor animation to play at night. Ignored if null or empty. | |
NightFlavorAnimationLength | [3,5] | How long to play the night flavor animation. |
DayFlavorAnimation | A flavor animation to play during the day. Ignored if null or empty. | |
DayFlavorAnimationLength | [3,5] | How long to play the daytime flavor animation. |
AttitudeGroup | Predators | This NPC's attitude group. |
FlockArray | [] | Array containing NPCs for this flock type. |
AttackPauseRange | [2,3] | The range for absolute minimum time before an NPC can execute a second attack. |
CombatRelativeTurnSpeed | 1.5 | Modifier that decides turn speed difference in combat. |
CombatBehaviorDistance | 5 | The distance within which to switch from smart chasing to combat-oriented movement behavior. |
CombatAlwaysMovingWeight | 10 | Weight for the combat movement behavior where the npcs will always chharge at you,put 0 to disable. |
CombatDirectWeight | 10 | Weight for the direct combat movement behavior (i.e. just going straight at the target, maintaining a close distance and attacking. Set to 0 to disable. |
CombatStrafeWeight | 10 | Weight for the combat strafing movement behavior. Set to 0 to disable. |
CombatAttackPreDelay | [0.3,0.3] | The time delay range before the NPC performs an attack, provided it's in attack range. |
CombatAttackPostDelay | [0.4,0.4] | The time delay range after the NPC performs an attack, provided it's in attack range. |
CombatStrafingDurationRange | [1,1] | How long to strafe for when in the combat strafing movement behavior. Only applies if CombatStrafeWeight is greater than 0. |
CombatStrafingFrequencyRange | [2,2] | How frequently to strafe when in the combat strafing movement behavior. Only applies if CombatStrafeWeight is greater than 0. |
CombatBackOffAfterAttack | true | Whether to back off after performing an attack. |
CombatBackOffDistanceRange | [4,4] | How far to back off after performing an attack. Max should be lower than the CombatBehaviorDistance. |
CombatBackOffDurationRange | [2,3] | How long to back off for after performing an attack. |
TargetSwitchTimer | [1,3] | Minimum time the NPC will be locked onto a single target before switching |
TargetRange | 2.5 | The distance the target needs to be within to maintain priority over other targets while in combat |
CombatTurns | false | Whether this NPC's flock will take turns attacking a target. |
CombatTurnAttackWeight | 30 | The likelihood an NPC will choose to attack when a new turn is triggered, in percentage. |
CombatTurnDuration | [4,8] | The timeout between attack turns. |
CombatTurnDistanceRange | [5,8] | The distance range inside which flock NPCs will wait their turn. |
CombatTurnStrafingDurationRange | [3,5] | The strafing duration range of flock NPCs waiting their turn. |
CombatTurnStrafingFrequencyRange | [3,6] | The strafing duration range of flock NPCs waiting their turn. |
Weapons | [] | Weapons to equip in hotbar. |
BlockAbility | The interaction to use for blocking when backing away. Set to empty to disable blocking. | |
BlockProbability | 50 | The probability this NPC will block when backing away if a BlockAbility is set. |
CombatFleeIfTooCloseDistance | 0 | In combat, if the target gets within this distance for a certain amount of time, the NPC will attempt to flee to a safe distance instead of simply backing away. Set to 0 to disable behavior. |
AdditionalCombatBehaviorMacroElement | Component_Instruction_Null | An optional macro element for supplying more bespoke combat movement behavior. Weight for the behavior must be internally defined in the macro element. |
BlockStepDetectionBlockSet | Optional blockset that this NPC will passively detect steps on. | |
BlockStepDetectionRange | 30 | Detection range for the block step detection. |
BlockStepDetectionIncludePlayers | true | Whether block steps from players will be detected. |
BlockStepDetectionIncludeNPCs | false | Whether block steps from NPCs will be detected. |
BlockStepDetectionRelativeSpeed | 0.75 | The relative motion speed at which the NPC will investigate a stepped block |
BlockStepDetectionIgnoreGroups | ["Self"] | The NPC groups whose steps will be ignored. |
MaxHealth | 100 | Max health for the NPC. |
KnockbackScale | 0.5 | Scale factor for knockback. |
ClimbHeight | 1 | The maximum climb height, in blocks. |
MinJumpHeight | 0.8 | The minimum jump height. |
AscentAnimationType | Walk | Animation when climbing up. Options: Walk, Jump, Climb, Fly, Idle. |
ClimbSpeedMult | 0 | Climb speed multiplier (const + mult * walkspeed^pow). |
ClimbSpeedPow | 1 | Climb speed power (const + mult * walkspeed^pow). |
ClimbSpeedConst | 5 | Climb speed constant (const + mult * walkspeed^pow). |
DescendSpeedCompensation | 0.9 | Factor to compensate forward speed reduction while moving downwards. |
DescendFlatness | 0.7 | Relative scale how fast NPC moves forward while climbing down. |
DescentSteepness | 1.4 | The relative steepness of the descent. |
DescentBlending | 1.8 | Blending of the descent pattern. 0 is linear, higher values more curved. |
LeashDistance | 20 | The range after which an NPC will start to want to return to their spawn point. |
LeashMinPlayerDistance | 4 | The minimum distance from the player before the NPC will be willing to give up on the chase. |
LeashTimer | [3,5] | How long the NPC must be more than the minimum distance form the player and too far from leash before giving up. |
HardLeashDistance | 60 | An absolute maximum from the the leash position the NPC can go before turning back. |
LeashRelativeSpeed | 0.6 | The relative speed at which the NPC will return to its leash position |
ConfusedTimeRange | [1,2] | How long the NPC should act confused for when losing its target before beginning the search. While confused the NPC detection range is lowered. |
SearchTimeRange | [5,8] | How long the NPC should actively search for its lost target before giving up and going back to idle. |
DisableDamageGroups | ["Self"] | Groups not to take damage from. |
DeathParticles | Effect_Death_Medium | The particle system that spawns when the NPC's corpse disappears. |
DropDeathItemsInstantly | false | Whether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears. |
DeathAnimationTime | 1.5 | The time it takes for this NPC's corpse to disappear. |
IsMemory | false | Defines if the NPC is a memory |
MemoriesCategory | Mammal | Defines the category of the memory |
MemoriesNameOverride | Overrides the memory name if set | |
BreathesInWater | false | Whether this NPC can breathe underwater. |
NameTranslationKey | server.npcRoles.Template.name | Translation key for NPC name display |
Identifiers and data source
| Entity id | Template_Predator |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Templates/Template_Predator.json |
| Component class | — |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.