CAE_Goblin_Scavenger
Server/NPC/Balancing/Intelligent/CAE_Goblin_Scavenger.json, 4.5 KB
Fields
| Field | Type |
|---|---|
Type | string |
TargetMemoryDuration | number |
CombatActionEvaluator | object |
Source
{
"Type": "CombatActionEvaluator",
"TargetMemoryDuration": 10,
"CombatActionEvaluator": {
"RunConditions": [
{
"Type": "TimeSinceLastUsed",
"Curve": {
"ResponseCurve": "Linear",
"XRange": [
0,
10
]
}
},
{
"Type": "Randomiser",
"MinValue": 0.9,
"MaxValue": 1
}
],
"MinRunUtility": 0.5,
"MinActionUtility": 0.01,
"AvailableActions": {
"MeleeState": {
"Type": "State",
"Description": "Switch dynamically to melee during ranged",
"State": "Chase",
"SubState": "Melee",
"Target": "Hostile",
"Conditions": [
{
"Type": "RecentSustainedDamage",
"Curve": {
"Type": "Switch",
"SwitchPoint": 1
}
},
{
"Type": "TargetDistance",
"Curve": {
"ResponseCurve": "SimpleDescendingLogistic",
"XRange": [
0,
30
]
}
}
]
},
"SelectTarget": {
"Type": "SelectBasicAttackTarget",
"Description": "Select a target",
"Conditions": [
{
"Type": "TargetDistance",
"Curve": {
"ResponseCurve": "SimpleDescendingLogistic",
"XRange": [
0,
15
]
}
}
]
},
"SelectTargetRanged": {
"Type": "SelectBasicAttackTarget",
"Description": "Select a target",
"WeaponSlot": 0,
"Conditions": [
{
"Type": "TargetDistance",
"Curve": {
"ResponseCurve": "SimpleDescendingLogistic",
"XRange": [
0,
30
]
}
}
]
}
},
"ActionSets": {
"Melee": {
"BasicAttacks": {
"Attacks": [
"Goblin_Scavenger_Attack"
],
"InteractionVars": {
"Goblin_Scavenger_Swing_Left_Damage": {
"Interactions": [
{
"Parent": "Goblin_Scavenger_Swing_Left_Damage",
"DamageCalculator": {
"BaseDamage": {
"Physical": 6
}
},
"DamageEffects": {
"Knockback": {
"Force": 0.5,
"RelativeX": -5,
"RelativeZ": -5,
"VelocityY": 5
},
"WorldSoundEventId": "SFX_Unarmed_Impact",
"WorldParticles": [
{
"SystemId": "Impact_Blade_01"
}
]
}
}
]
},
"Goblin_Scavenger_Swing_Right_Damage": {
"Interactions": [
{
"Parent": "Goblin_Scavenger_Swing_Right_Damage",
"DamageCalculator": {
"BaseDamage": {
"Physical": 6
}
},
"DamageEffects": {
"Knockback": {
"Force": 0.5,
"RelativeX": 5,
"RelativeZ": -5,
"VelocityY": 5
},
"WorldSoundEventId": "SFX_Unarmed_Impact",
"WorldParticles": [
{
"SystemId": "Impact_Blade_01"
}
]
}
}
]
}
},
"Randomise": false,
"MaxRange": 2.5,
"Timeout": 0.5,
"CooldownRange": [
0.001,
0.001
]
},
"Actions": [
"SelectTargetRanged"
]
},
"Ranged": {
"BasicAttacks": {
"Attacks": [
"Goblin_Scavenger_Trash"
],
"Randomise": false,
"MaxRange": 30,
"Timeout": 0.5,
"CooldownRange": [
0.01,
0.05
]
},
"$Comment": "The ranged attack uses the same target selection for now so that it can be used as a melee attack as well - this can be updated in the future",
"Actions": [
"SelectTarget",
"MeleeState"
]
}
}
}
}