Versions / 0.5.0-pre.9.2 / Item / Interactions / NPCs / Reptile / Toad_Rhino / Toad_Rhino_Headbutt.json
Toad_Rhino_Headbutt
Server/Item/Interactions/NPCs/Reptile/Toad_Rhino/Toad_Rhino_Headbutt.json, 2.0 KB
Fields
| Field | Type |
|---|---|
Type | string |
$Comment | string |
Tags | object |
Interactions | array[2] |
Source
{
"Type": "Parallel",
"$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
"Tags": {
"Attack": [
"Melee"
]
},
"Interactions": [
{
"Interactions": [
{
"Type": "Simple",
"Effects": {
"ItemPlayerAnimationsId": "Toad_Rhino_Default",
"ItemAnimationId": "Headbutt",
"WorldSoundEventId": "SFX_Toad_Rhino_Run"
},
"RunTime": 0.417
},
{
"Type": "ApplyForce",
"VelocityConfig": {
"AirResistance": 0.2,
"AirResistanceMax": 0.1,
"GroundResistance": 0.2,
"GroundResistanceMax": 0.1,
"Threshold": 3.0,
"Style": "Linear"
},
"ChangeVelocityType": "Add",
"Force": 700,
"Direction": {
"X": 0,
"Y": 1,
"Z": -100
}
}
]
},
{
"Interactions": [
{
"Type": "Simple",
"RunTime": 0.417
},
{
"Type": "Selector",
"$Comment": "Length of Combat",
"RunTime": 0.417,
"Selector": {
"Id": "Stab",
"TestLineOfSight": true,
"ExtendTop": 0.75,
"ExtendBottom": 0.75,
"ExtendLeft": 0.75,
"ExtendRight": 0.75,
"StartDistance": 1,
"EndDistance": 3
},
"HitEntity": {
"Interactions": [
{
"Type": "Replace",
"DefaultValue": {
"Interactions": [
"Toad_Rhino_Magma_Headbutt_Damage"
]
},
"Var": "Headbutt_Damage"
}
]
},
"Next": {
"Type": "Simple",
"$Comment": "Pad the interaction length",
"RunTime": 0.417
}
}
]
}
]
}