Camel
Server/NPC/Roles/Creature/Livestock/Camel.json, 3.3 KB
Fields
| Field | Type |
|---|---|
Type | string |
Reference | string |
Modify | object |
Parameters | object |
Source
{
"Type": "Variant",
"Reference": "Template_Animal_Neutral",
"Modify": {
"Appearance": "Camel",
"AttitudeGroup": "PreyBig",
"FlockArray": [ "Camel", "Camel_Calf" ],
"AttractiveItemSet": [ "Plant_Crop_Tomato_Item" ],
"AttractiveItemSetParticles": "Want_Food_Tomato",
"DropList": "Drop_Camel",
"MaxHealth": 126,
"ViewRange": 15,
"ViewSector": 320,
"HearingRange": 9,
"AlertedRange": 17,
"AlertedActionRange": 8,
"AbsoluteDetectionRange": 2,
"AttackWhenStartled": true,
"Attack": "Root_NPC_Attack_Melee",
"IsTameable": true,
"TameRoleChange": "Tamed_Camel",
"IsMemory": true,
"MemoriesNameOverride": "Camel",
"NameTranslationKey": { "Compute": "NameTranslationKey" },
"_InteractionVars": {
"Melee_Start": {
"Interactions": [
{
"Parent": "NPC_Attack_Melee_Simple",
"$Comment": "Sets animations and delay before hit",
"Effects": {
"ItemPlayerAnimationsId": "Cow_Default",
"ItemAnimationId": "Kick"
},
"RunTime": 0.167
}
]
},
"Melee_Selector": {
"Interactions": [
{
"Parent": "NPC_Attack_Selector_Left",
"$Comment": "Sets Hit shape and padding to allow effect to play and wait till animation is over",
"RunTime": 0.083,
"Selector": {
"Id": "Stab",
"TestLineOfSight": true,
"ExtendTop": 0,
"ExtendBottom": 1,
"ExtendLeft": 0.5,
"ExtendRight": 0.5,
"StartDistance": 0.25,
"EndDistance": 2.5,
"YawOffset": 180
},
"Next": {
"Type": "Simple",
"$Comment": "Pad the interaction length",
"RunTime": 0.167
}
}
]
},
"Melee_Damage": {
"Interactions": [
{
"$Comment": "When NPC overrides the InteractionVars, this info in Template not applicable anymore",
"Parent": "NPC_Livestock_Kick_Damage",
"DamageCalculator": {
"Type": "Absolute",
"BaseDamage": {
"Physical": 30
},
"RandomPercentageModifier": 0.1
},
"DamageEffects": {
"Knockback": {
"Type": "Force",
"VelocityConfig": {
"AirResistance": 0.97,
"AirResistanceMax": 0.96,
"GroundResistance": 0.94,
"GroundResistanceMax": 0.3,
"Threshold": 3,
"Style": "Exp"
},
"Direction": {
"X": 0,
"Y": 1,
"Z": 2
},
"Force": 12,
"VelocityType": "Set"
},
"WorldSoundEventId": "SFX_Unarmed_Impact",
"LocalSoundEventId": "SFX_Unarmed_Impact",
"WorldParticles": [
{
"SystemId": "Impact_Sword_Basic"
}
]
}
}
]
}
}
},
"Parameters": {
"NameTranslationKey": {
"Value": "server.npcRoles.Camel.name",
"Description": "Translation key for NPC name display"
}
}
}