Template Predator

NPC · Core definition

Template Predator

AbstractTemplate_Predator
Parameters96
Derived NPCs39

NPCs based on this definition

Parameters

ParameterValueDescription
AppearanceFoxModel to be used.
WanderRadius8General wander radius.
ViewRange24The range from which the target will be seen. If zero, sight will be disabled.
ViewSector120The view sector within which the target needs to be to be seen.
HearingRange12The range from which the target will be heard. If zero, hearing will be disabled.
AbsoluteDetectionRange4The range at which a target is guaranteed to be detected. If zero, absolute detection will be disabled.
FleeRange15How far to try and get away when fleeing.
ChanceToBeAlertedWhenFlockAlerted70Percentage chance to engage in combat if another flock member engages a target.
AlertedRange28A 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.
MaintainDistanceWhileAlertedfalseWhether or not to maintain distance and strafe while in the alerted state.
AlertedRelativeForwardsSpeed0.5Relative 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.
FleeIfNotThreatenedfalseWhether to flee while in the alerted state if not threatened after AlertedTime expires.
ThreatenAnimationAn optional animation to play to threaten the target before initiating combat.
ThreatenDelayRange[2,4]Delay before the threaten animation is played.
DropListEmptyDrop Items.
MaxSpeed8Maximum walking speed.
RunThreshold0.55At what ratio NPC switches to run animation e.g MaxSpeed is 10, at RunThreshold 0.55 NPC will run at speed 5.5.
ChasetrueWhether the NPC will chase the target during combat.
ChaseRelativeSpeed1Relative chasing speed when pursuing a target.
CombatMovingRelativeSpeed0.6Relative speed to use during combat specific movement (e.g. to achieve slower strafing).
AttackRoot_NPC_Attack_MeleeThe attack to use.
AttackDistance2.5The distance to attack from.
DayTimePeriod[6.01,17.99]The hour range considered to be daytime for this NPC.
DayTimeNapWeight2Weight 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.
TimidDuringDayfalseWhether this NPC is a bit more timid during the day.
AlwaysSleepAtNighttrueWhether this NPC always sleeps through the whole night.
NightFlavorAnimationA flavor animation to play at night. Ignored if null or empty.
NightFlavorAnimationLength[3,5]How long to play the night flavor animation.
DayFlavorAnimationA flavor animation to play during the day. Ignored if null or empty.
DayFlavorAnimationLength[3,5]How long to play the daytime flavor animation.
AttitudeGroupPredatorsThis 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.
CombatRelativeTurnSpeed1.5Modifier that decides turn speed difference in combat.
CombatBehaviorDistance5The distance within which to switch from smart chasing to combat-oriented movement behavior.
CombatAlwaysMovingWeight10Weight for the combat movement behavior where the npcs will always chharge at you,put 0 to disable.
CombatDirectWeight10Weight 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.
CombatStrafeWeight10Weight 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.
CombatBackOffAfterAttacktrueWhether 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
TargetRange2.5The distance the target needs to be within to maintain priority over other targets while in combat
CombatTurnsfalseWhether this NPC's flock will take turns attacking a target.
CombatTurnAttackWeight30The 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.
BlockAbilityThe interaction to use for blocking when backing away. Set to empty to disable blocking.
BlockProbability50The probability this NPC will block when backing away if a BlockAbility is set.
CombatFleeIfTooCloseDistance0In 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.
AdditionalCombatBehaviorMacroElementComponent_Instruction_NullAn optional macro element for supplying more bespoke combat movement behavior. Weight for the behavior must be internally defined in the macro element.
BlockStepDetectionBlockSetOptional blockset that this NPC will passively detect steps on.
BlockStepDetectionRange30Detection range for the block step detection.
BlockStepDetectionIncludePlayerstrueWhether block steps from players will be detected.
BlockStepDetectionIncludeNPCsfalseWhether block steps from NPCs will be detected.
BlockStepDetectionRelativeSpeed0.75The relative motion speed at which the NPC will investigate a stepped block
BlockStepDetectionIgnoreGroups["Self"]The NPC groups whose steps will be ignored.
MaxHealth100Max health for the NPC.
KnockbackScale0.5Scale factor for knockback.
ClimbHeight1The maximum climb height, in blocks.
MinJumpHeight0.8The minimum jump height.
AscentAnimationTypeWalkAnimation when climbing up. Options: Walk, Jump, Climb, Fly, Idle.
ClimbSpeedMult0Climb speed multiplier (const + mult * walkspeed^pow).
ClimbSpeedPow1Climb speed power (const + mult * walkspeed^pow).
ClimbSpeedConst5Climb speed constant (const + mult * walkspeed^pow).
DescendSpeedCompensation0.9Factor to compensate forward speed reduction while moving downwards.
DescendFlatness0.7Relative scale how fast NPC moves forward while climbing down.
DescentSteepness1.4The relative steepness of the descent.
DescentBlending1.8Blending of the descent pattern. 0 is linear, higher values more curved.
LeashDistance20The range after which an NPC will start to want to return to their spawn point.
LeashMinPlayerDistance4The 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.
HardLeashDistance60An absolute maximum from the the leash position the NPC can go before turning back.
LeashRelativeSpeed0.6The 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.
DeathParticlesEffect_Death_MediumThe particle system that spawns when the NPC's corpse disappears.
DropDeathItemsInstantlyfalseWhether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears.
DeathAnimationTime1.5The time it takes for this NPC's corpse to disappear.
IsMemoryfalseDefines if the NPC is a memory
MemoriesCategoryMammalDefines the category of the memory
MemoriesNameOverrideOverrides the memory name if set
BreathesInWaterfalseWhether this NPC can breathe underwater.
NameTranslationKeyserver.npcRoles.Template.nameTranslation key for NPC name display
Identifiers and data source
Entity idTemplate_Predator
Name key—
Source fileServer/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.