Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1.1 / NPC / Roles / Creature / Livestock / Boar.json

Boar

Server/NPC/Roles/Creature/Livestock/Boar.json, 3.4 KB

Fields

FieldType
Typestring
Referencestring
Modifyobject
Parametersobject

Source

{
  "Type": "Variant",
  "Reference": "Template_Animal_Neutral",
  "Modify": {
    "Appearance": "Boar",
    "AttitudeGroup": "PreyBig",
    "FlockArray": [
      "Boar",
      "Boar_Piglet"
    ],
    "AttractiveItemSet": [
      "Plant_Crop_Pumpkin_Item"
    ],
    "AttractiveItemSetParticles": "Want_Food_Pumpkin",
    "DropList": "Drop_Boar",
    "MaxHealth": 81,
    "ViewRange": 15,
    "ViewSector": 300,
    "HearingRange": 9,
    "AlertedRange": 17,
    "AlertedActionRange": 5,
    "AbsoluteDetectionRange": 2,
    "AttackWhenStartled": true,
    "Attack": "Root_NPC_Attack_Melee",
    "IsTameable": true,
    "TameRoleChange": "Tamed_Boar",
    "IsMemory": true,
    "MemoriesNameOverride": "Boar",
    "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": 1.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": 10
              },
              "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": 7,
                "VelocityType": "Set"
              },
              "WorldSoundEventId": "SFX_Unarmed_Impact",
              "LocalSoundEventId": "SFX_Unarmed_Impact",
              "WorldParticles": [
                {
                  "SystemId": "Impact_Sword_Basic"
                }
              ]
            }
          }
        ]
      }
    }
  },
  "Parameters": {
    "NameTranslationKey": {
      "Value": "server.npcRoles.Boar.name",
      "Description": "Translation key for NPC name display"
    }
  }
}