1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00
IW4M-Admin/SharedLibraryCore/Events/Game/ClientDamageEvent.cs
2023-02-11 21:03:35 -06:00

31 lines
907 B
C#

using SharedLibraryCore.Database.Models;
namespace SharedLibraryCore.Events.Game;
public class ClientDamageEvent : ClientGameEvent
{
public EFClient Attacker => Origin;
public void UpdateAttacker(EFClient client)
{
Origin = client;
}
public EFClient Victim => Target;
public string AttackerClientName => ClientName;
public string AttackerNetworkId => ClientNetworkId;
public int AttackerClientSlotNumber => ClientSlotNumber;
public string AttackerTeamName { get; init; }
public string VictimClientName { get; init; }
public string VictimNetworkId { get; init; }
public int VictimClientSlotNumber { get; init; }
public string VictimTeamName { get; init; }
public string WeaponName { get; init; }
public int Damage { get; init; }
public string MeansOfDeath { get; init; }
public string HitLocation { get; init; }
}