2018-02-06 23:19:06 -06:00
|
|
|
|
using System;
|
2018-05-03 00:25:49 -05:00
|
|
|
|
using System.Collections.Generic;
|
2021-03-22 11:09:25 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using Data.Models.Server;
|
2018-02-06 23:19:06 -06:00
|
|
|
|
|
2021-03-22 11:09:25 -05:00
|
|
|
|
namespace Data.Models.Client
|
2018-02-06 23:19:06 -06:00
|
|
|
|
{
|
2018-03-22 13:50:09 -05:00
|
|
|
|
public class EFClientKill : SharedEntity
|
2018-02-06 23:19:06 -06:00
|
|
|
|
{
|
2021-03-22 11:09:25 -05:00
|
|
|
|
[Key] public long KillId { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
public int VictimId { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
[ForeignKey("VictimId")] public virtual EFClient Victim { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
public int AttackerId { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
[ForeignKey("AttackerId")] public virtual EFClient Attacker { get; set; }
|
2018-11-27 18:31:48 -06:00
|
|
|
|
public long ServerId { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
[ForeignKey("ServerId")] public virtual EFServer Server { get; set; }
|
|
|
|
|
public int HitLoc { get; set; }
|
|
|
|
|
public int DeathType { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
public int Damage { get; set; }
|
2021-06-29 15:02:01 -05:00
|
|
|
|
[Obsolete]
|
2021-03-22 11:09:25 -05:00
|
|
|
|
public int Weapon { get; set; }
|
2021-06-29 15:02:01 -05:00
|
|
|
|
public string WeaponReference { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
public Vector3 KillOrigin { get; set; }
|
|
|
|
|
public Vector3 DeathOrigin { get; set; }
|
2018-03-25 23:51:25 -05:00
|
|
|
|
public Vector3 ViewAngles { get; set; }
|
|
|
|
|
public DateTime When { get; set; }
|
2018-09-02 16:59:27 -05:00
|
|
|
|
public double Fraction { get; set; }
|
|
|
|
|
public bool IsKill { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
|
2018-09-04 12:40:29 -05:00
|
|
|
|
public double VisibilityPercentage { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
|
2018-02-06 23:19:06 -06:00
|
|
|
|
// http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Gameplay_standards for conversion to meters
|
2021-03-22 11:09:25 -05:00
|
|
|
|
[NotMapped] public double Distance => Vector3.Distance(KillOrigin, DeathOrigin) * 0.0254;
|
|
|
|
|
public int Map { get; set; }
|
|
|
|
|
[NotMapped] public long TimeOffset { get; set; }
|
|
|
|
|
[NotMapped] public bool IsKillstreakKill { get; set; }
|
|
|
|
|
[NotMapped] public float AdsPercent { get; set; }
|
|
|
|
|
[NotMapped] public List<Vector3> AnglesList { get; set; }
|
|
|
|
|
[NotMapped] public int GameName { get; set; }
|
2020-01-06 18:43:00 -06:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates if the attacker was alive after last captured angle
|
|
|
|
|
/// </summary>
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public bool IsAlive { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Specifies the last time the attack button was detected as pressed
|
|
|
|
|
/// </summary>
|
|
|
|
|
[NotMapped]
|
|
|
|
|
public long TimeSinceLastAttack { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
}
|
2021-03-22 11:09:25 -05:00
|
|
|
|
}
|