Added type for HandlerDamage
This commit is contained in:
@@ -1398,8 +1398,22 @@ public record GlobalAudioSettings
|
||||
|
||||
public record Triggers
|
||||
{
|
||||
//TODO: add type
|
||||
public object? HandlerDamage
|
||||
public Dictionary<string, List<DamageData>>? HandlerDamage
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
public record DamageData
|
||||
{
|
||||
public int? Amount
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public BodyPartColliderType BodyPartColliderType
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace SPTarkov.Server.Core.Models.Enums
|
||||
{
|
||||
public enum BodyPartColliderType
|
||||
{
|
||||
None = -1,
|
||||
HeadCommon,
|
||||
RibcageUp,
|
||||
Pelvis = 3,
|
||||
LeftUpperArm,
|
||||
LeftForearm,
|
||||
RightUpperArm,
|
||||
RightForearm,
|
||||
LeftThigh,
|
||||
LeftCalf,
|
||||
RightThigh,
|
||||
RightCalf,
|
||||
ParietalHead,
|
||||
BackHead,
|
||||
Ears,
|
||||
Eyes,
|
||||
Jaw,
|
||||
NeckFront,
|
||||
NeckBack,
|
||||
RightSideChestUp,
|
||||
LeftSideChestUp,
|
||||
SpineTop,
|
||||
SpineDown,
|
||||
PelvisBack,
|
||||
RightSideChestDown,
|
||||
LeftSideChestDown,
|
||||
RibcageLow
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ using SPTarkov.Server.Core.Models.Enums;
|
||||
using SPTarkov.Server.Core.Models.Spt.Dialog;
|
||||
using SPTarkov.Server.Core.Utils.Json.Converters;
|
||||
using SPTarkov.Common.Annotations;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||
|
||||
namespace SPTarkov.Server.Core.Utils;
|
||||
|
||||
@@ -51,6 +52,7 @@ public class JsonUtil
|
||||
new EftEnumConverter<ExfiltrationType>(),
|
||||
new EftEnumConverter<EquipmentSlots>(),
|
||||
new EftEnumConverter<BuffType>(),
|
||||
new EftEnumConverter<BodyPartColliderType>(),
|
||||
new EftListEnumConverter<EquipmentSlots>(),
|
||||
new EftListEnumConverter<PlayerSide>(),
|
||||
new EftListEnumConverter<DamageType>(),
|
||||
|
||||
Reference in New Issue
Block a user