mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
define new event types
This commit is contained in:
30
SharedLibraryCore/Events/Game/ClientDamageEvent.cs
Normal file
30
SharedLibraryCore/Events/Game/ClientDamageEvent.cs
Normal file
@ -0,0 +1,30 @@
|
||||
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; }
|
||||
}
|
Reference in New Issue
Block a user