1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-12 08:08:06 -05:00

fixed initialization error when no map set exists in config

fixed discord link showing when no invite specified
OpenGraph image set to absolute url
more changes to killcallback and logging
fixed some angle conversion stuff
This commit is contained in:
RaidMax
2018-03-25 23:51:25 -05:00
parent dc13ce7050
commit d7fbade5fd
14 changed files with 316 additions and 268 deletions

View File

@ -32,13 +32,17 @@ namespace StatsPlugin.Models
public IW4Info.WeaponName Weapon { get; set; }
public Vector3 KillOrigin { get; set; }
public Vector3 DeathOrigin { get; set; }
public Vector3 ViewAngles { get; set; }
public DateTime When { get; set; }
// http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Gameplay_standards for conversion to meters
[NotMapped]
public double Distance => Vector3.Distance(KillOrigin, DeathOrigin) * 0.0254;
public IW4Info.MapName Map { get; set; }
[NotMapped]
public long TimeOffset { get; set; }
public Vector3 ViewAngles { get; set; }
public DateTime When { get; set; }
[NotMapped]
public bool IsKillstreakKill { get; set; }
[NotMapped]
public float AdsPercent { get; set; }
}
}