Updated DeathCase.DeathCause to use enum + same for other properties to match client
This commit is contained in:
@@ -1459,19 +1459,19 @@ public record DamageStats
|
||||
|
||||
public record DeathCause
|
||||
{
|
||||
public string? DamageType
|
||||
public DamageType? DamageType
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string? Side
|
||||
public PlayerSide? Side
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string? Role
|
||||
public WildSpawnType? Role
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
namespace SPTarkov.Server.Core.Models.Enums
|
||||
{
|
||||
public enum DamageType
|
||||
{
|
||||
Undefined = 1,
|
||||
Fall = 2,
|
||||
Explosion = 4,
|
||||
Barbed = 8,
|
||||
Flame = 16,
|
||||
GrenadeFragment = 32,
|
||||
Impact = 64,
|
||||
Existence = 128,
|
||||
Medicine = 256,
|
||||
Bullet = 512,
|
||||
Melee = 1024,
|
||||
Landmine = 2048,
|
||||
Sniper = 4096,
|
||||
Blunt = 8192,
|
||||
LightBleeding = 16384,
|
||||
HeavyBleeding = 32768,
|
||||
Dehydration = 65536,
|
||||
Exhaustion = 131072,
|
||||
RadExposure = 262144,
|
||||
Stimulator = 524288,
|
||||
Poison = 1048576,
|
||||
LethalToxin = 2097152,
|
||||
Btr = 4194304,
|
||||
Artillery = 8388608,
|
||||
Environment = 16777216
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace SPTarkov.Server.Core.Models.Enums
|
||||
{
|
||||
public enum PlayerSide
|
||||
{
|
||||
Usec = 1,
|
||||
Bear = 2,
|
||||
Savage = 4
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,8 @@ public class JsonUtil
|
||||
new EftEnumConverter<ExfiltrationType>(),
|
||||
new EftEnumConverter<EquipmentSlots>(),
|
||||
new EftListEnumConverter<EquipmentSlots>(),
|
||||
new EftListEnumConverter<PlayerSide>(),
|
||||
new EftListEnumConverter<DamageType>(),
|
||||
new BaseInteractionRequestDataConverter()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user