From 88f31bc78ca2fb4a2dcd213186bcc79090521f95 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 22 Mar 2018 13:50:09 -0500 Subject: [PATCH] removed reload command prevent control characters from being used in name added MOD_HEAD_SHOT to hit location increment css fix for alias dropdown testing view angle analysis --- IW4MAdmin.sln | 27 ---- Plugins/SimpleStats/Cheat/Detection.cs | 21 ++- Plugins/SimpleStats/Helpers/Extensions.cs | 26 ++++ Plugins/SimpleStats/Helpers/StatManager.cs | 17 ++- Plugins/SimpleStats/Helpers/StreakMessage.cs | 2 +- Plugins/SimpleStats/IW4Info.cs | 1 + Plugins/SimpleStats/Models/EFClientKill.cs | 6 +- Plugins/SimpleStats/Plugin.cs | 21 ++- Plugins/SimpleStats/StatsPlugin.csproj | 1 + SharedLibrary/Commands/NativeCommands.cs | 15 --- SharedLibrary/Helpers/Vector3.cs | 8 +- .../201803030146021_Intial.Designer.cs | 29 ---- .../Migrations/201803030146021_Intial.cs | 16 --- .../Migrations/201803030146021_Intial.resx | 126 ------------------ SharedLibrary/Server.cs | 6 - SharedLibrary/SharedLibrary.csproj | 9 -- WebfrontCore/Application/Manager.cs | 1 - WebfrontCore/Application/Server.cs | 28 ++-- WebfrontCore/Controllers/BaseController.cs | 2 +- .../Views/Client/Profile/Index.cshtml | 70 +++++----- WebfrontCore/Views/Penalty/_Penalty.cshtml | 3 +- WebfrontCore/Views/Shared/_Layout.cshtml | 2 +- WebfrontCore/wwwroot/css/profile.css | 2 +- WebfrontCore/wwwroot/images/banner1.svg | 1 - WebfrontCore/wwwroot/images/banner2.svg | 1 - WebfrontCore/wwwroot/images/banner3.svg | 1 - WebfrontCore/wwwroot/images/banner4.svg | 1 - WebfrontCore/wwwroot/images/icon.png | Bin 0 -> 2702 bytes _customcallbacks.gsc | 57 +++++++- 29 files changed, 190 insertions(+), 310 deletions(-) create mode 100644 Plugins/SimpleStats/Helpers/Extensions.cs delete mode 100644 SharedLibrary/Migrations/201803030146021_Intial.Designer.cs delete mode 100644 SharedLibrary/Migrations/201803030146021_Intial.cs delete mode 100644 SharedLibrary/Migrations/201803030146021_Intial.resx delete mode 100644 WebfrontCore/wwwroot/images/banner1.svg delete mode 100644 WebfrontCore/wwwroot/images/banner2.svg delete mode 100644 WebfrontCore/wwwroot/images/banner3.svg delete mode 100644 WebfrontCore/wwwroot/images/banner4.svg create mode 100644 WebfrontCore/wwwroot/images/icon.png diff --git a/IW4MAdmin.sln b/IW4MAdmin.sln index 45e827556..55ee55aef 100644 --- a/IW4MAdmin.sln +++ b/IW4MAdmin.sln @@ -17,8 +17,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WelcomePlugin", "Plugins\We EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VotemapPlugin", "Plugins\VoteMap\VotemapPlugin.csproj", "{428D8EB9-ECA3-4A66-AA59-3A944378C33F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MessageboardPlugin", "Plugins\MessageBoard\MessageboardPlugin.csproj", "{E46C85BD-A99C-484E-BCCE-0F1831C5925E}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{26E8B310-269E-46D4-A612-24601F16065F}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastRestartPlugin", "Plugins\FastRestart\FastRestartPlugin.csproj", "{1479DE87-ACB5-4046-81C8-A0BA5041227D}" @@ -180,30 +178,6 @@ Global {428D8EB9-ECA3-4A66-AA59-3A944378C33F}.Release-Stable|x64.Build.0 = Release-Stable|Any CPU {428D8EB9-ECA3-4A66-AA59-3A944378C33F}.Release-Stable|x86.ActiveCfg = Release-Stable|Any CPU {428D8EB9-ECA3-4A66-AA59-3A944378C33F}.Release-Stable|x86.Build.0 = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|Mixed Platforms.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|x64.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|x86.ActiveCfg = Debug|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Debug|x86.Build.0 = Debug|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|Any CPU.ActiveCfg = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|Any CPU.Build.0 = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|Mixed Platforms.ActiveCfg = Release-Stable|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|Mixed Platforms.Build.0 = Release-Stable|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|x64.ActiveCfg = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|x64.Build.0 = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|x86.ActiveCfg = Release-Stable|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release|x86.Build.0 = Release-Stable|x86 - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Nightly|Any CPU.ActiveCfg = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Nightly|Mixed Platforms.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Nightly|x64.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Nightly|x86.ActiveCfg = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Nightly|x86.Build.0 = Release-Nightly|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Stable|Any CPU.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Stable|Mixed Platforms.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Stable|x64.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Stable|x86.ActiveCfg = Release-Stable|Any CPU - {E46C85BD-A99C-484E-BCCE-0F1831C5925E}.Release-Stable|x86.Build.0 = Release-Stable|Any CPU {1479DE87-ACB5-4046-81C8-A0BA5041227D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1479DE87-ACB5-4046-81C8-A0BA5041227D}.Debug|Any CPU.Build.0 = Debug|Any CPU {1479DE87-ACB5-4046-81C8-A0BA5041227D}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 @@ -304,7 +278,6 @@ Global {4785AB75-66F3-4391-985D-63A5A049A0FA} = {26E8B310-269E-46D4-A612-24601F16065F} {AF097E6B-48D5-4452-9CCF-0A81A21F341D} = {26E8B310-269E-46D4-A612-24601F16065F} {428D8EB9-ECA3-4A66-AA59-3A944378C33F} = {26E8B310-269E-46D4-A612-24601F16065F} - {E46C85BD-A99C-484E-BCCE-0F1831C5925E} = {26E8B310-269E-46D4-A612-24601F16065F} {1479DE87-ACB5-4046-81C8-A0BA5041227D} = {26E8B310-269E-46D4-A612-24601F16065F} {B8C2A759-8663-4F6F-9BA4-19595F5E12C1} = {26E8B310-269E-46D4-A612-24601F16065F} EndGlobalSection diff --git a/Plugins/SimpleStats/Cheat/Detection.cs b/Plugins/SimpleStats/Cheat/Detection.cs index a810e4746..c740b2b0d 100644 --- a/Plugins/SimpleStats/Cheat/Detection.cs +++ b/Plugins/SimpleStats/Cheat/Detection.cs @@ -1,5 +1,7 @@ -using SharedLibrary.Interfaces; +using SharedLibrary.Helpers; +using SharedLibrary.Interfaces; using SharedLibrary.Objects; +using StatsPlugin.Helpers; using StatsPlugin.Models; using System; using System.Collections.Generic; @@ -34,7 +36,8 @@ namespace StatsPlugin.Cheat public DetectionPenaltyResult ProcessKill(EFClientKill kill) { if ((kill.DeathType != IW4Info.MeansOfDeath.MOD_PISTOL_BULLET && - kill.DeathType != IW4Info.MeansOfDeath.MOD_RIFLE_BULLET) || + kill.DeathType != IW4Info.MeansOfDeath.MOD_RIFLE_BULLET && + kill.DeathType != IW4Info.MeansOfDeath.MOD_HEAD_SHOT) || kill.HitLoc == IW4Info.HitLocation.none) return new DetectionPenaltyResult() { @@ -46,7 +49,19 @@ namespace StatsPlugin.Cheat Kills++; AverageKillTime = (AverageKillTime + (DateTime.UtcNow - LastKill).TotalSeconds) / Kills; -#region SESSION_RATIOS + #region VIEWANGLES + double distance = Vector3.Distance(kill.KillOrigin, kill.DeathOrigin); + double x = kill.KillOrigin.X + distance * Math.Cos(kill.ViewAngles.Y.ToRadians()) * Math.Cos(kill.ViewAngles.X.ToRadians()); + double y = kill.KillOrigin.Y + (distance * Math.Sin((360.0f - kill.ViewAngles.Y).ToRadians())); + double z = kill.KillOrigin.Z + (distance * Math.Cos(kill.ViewAngles.Y.ToRadians()) * Math.Sin((360.0f - kill.ViewAngles.X).ToRadians())); + var trueVector = Vector3.Subtract(kill.KillOrigin, kill.DeathOrigin); + var calculatedVector = Vector3.Subtract(kill.KillOrigin, new Vector3((float)x, (float)y, (float)z)); + double angle = trueVector.AngleBetween(calculatedVector); + Console.WriteLine(((float)angle).ToDegrees()); + + #endregion + + #region SESSION_RATIOS if (Kills >= Thresholds.LowSampleMinKills) { double marginOfError = Thresholds.GetMarginOfError(Kills); diff --git a/Plugins/SimpleStats/Helpers/Extensions.cs b/Plugins/SimpleStats/Helpers/Extensions.cs new file mode 100644 index 000000000..ef46f1091 --- /dev/null +++ b/Plugins/SimpleStats/Helpers/Extensions.cs @@ -0,0 +1,26 @@ +using SharedLibrary.Helpers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StatsPlugin.Helpers +{ + static class Extensions + { + + public static Vector3 FixIW4Angles(this Vector3 vector) + { + float X = vector.X > 0 ? 360.0f - vector.X : Math.Abs(vector.X); + float Y = vector.Y > 0 ? 360.0f - vector.Y : Math.Abs(vector.Y); + float Z = vector.Z > 0 ? 360.0f - vector.Z : Math.Abs(vector.Z); + + return new Vector3(X, Y, Z); + } + + public static float ToRadians(this float value) => (float)Math.PI * value / 180.0f; + + public static float ToDegrees(this float value) => value * 180.0f / (float)Math.PI; + } +} diff --git a/Plugins/SimpleStats/Helpers/StatManager.cs b/Plugins/SimpleStats/Helpers/StatManager.cs index 0ae88b8fd..6a68a24fe 100644 --- a/Plugins/SimpleStats/Helpers/StatManager.cs +++ b/Plugins/SimpleStats/Helpers/StatManager.cs @@ -205,7 +205,7 @@ namespace StatsPlugin.Helpers /// /// public async Task AddScriptKill(Player attacker, Player victim, int serverId, string map, string hitLoc, string type, - string damage, string weapon, string killOrigin, string deathOrigin) + string damage, string weapon, string killOrigin, string deathOrigin, string viewAngles, string offset) { var statsSvc = ContextThreads[serverId]; @@ -221,7 +221,10 @@ namespace StatsPlugin.Helpers DeathType = ParseEnum.Get(type, typeof(IW4Info.MeansOfDeath)), Damage = Int32.Parse(damage), HitLoc = ParseEnum.Get(hitLoc, typeof(IW4Info.HitLocation)), - Weapon = ParseEnum.Get(weapon, typeof(IW4Info.WeaponName)) + Weapon = ParseEnum.Get(weapon, typeof(IW4Info.WeaponName)), + ViewAngles = Vector3.Parse(viewAngles).FixIW4Angles(), + TimeOffset = Int64.Parse(offset), + When = DateTime.UtcNow }; if (kill.DeathType == IW4Info.MeansOfDeath.MOD_SUICIDE && @@ -238,15 +241,17 @@ namespace StatsPlugin.Helpers // increment their hit count if (kill.DeathType == IW4Info.MeansOfDeath.MOD_PISTOL_BULLET || - kill.DeathType == IW4Info.MeansOfDeath.MOD_RIFLE_BULLET) + kill.DeathType == IW4Info.MeansOfDeath.MOD_RIFLE_BULLET || + kill.DeathType == IW4Info.MeansOfDeath.MOD_HEAD_SHOT) { playerStats.HitLocations.Single(hl => hl.Location == kill.HitLoc).HitCount += 1; await statsSvc.ClientStatSvc.SaveChangesAsync(); } - //statsSvc.KillStatsSvc.Insert(kill); - //await statsSvc.KillStatsSvc.SaveChangesAsync(); - if(Plugin.Config.Configuration().EnableAntiCheat) + statsSvc.KillStatsSvc.Insert(kill); + await statsSvc.KillStatsSvc.SaveChangesAsync(); + + if (Plugin.Config.Configuration().EnableAntiCheat) { async Task executePenalty(Cheat.DetectionPenaltyResult penalty) { diff --git a/Plugins/SimpleStats/Helpers/StreakMessage.cs b/Plugins/SimpleStats/Helpers/StreakMessage.cs index 37b679aad..330b4cb5f 100644 --- a/Plugins/SimpleStats/Helpers/StreakMessage.cs +++ b/Plugins/SimpleStats/Helpers/StreakMessage.cs @@ -22,7 +22,7 @@ namespace StatsPlugin.Helpers var deathstreakMessage = Plugin.Config.Configuration().DeathstreakMessages; string message = killstreakMessage.FirstOrDefault(m => m.Count == killStreak)?.Message; - message = (message == null) ? deathstreakMessage.FirstOrDefault(m => m.Count == deathStreak)?.Message : message; + message = message ?? deathstreakMessage.FirstOrDefault(m => m.Count == deathStreak)?.Message; return message ?? ""; } } diff --git a/Plugins/SimpleStats/IW4Info.cs b/Plugins/SimpleStats/IW4Info.cs index 0e0240d7a..f77ff869a 100644 --- a/Plugins/SimpleStats/IW4Info.cs +++ b/Plugins/SimpleStats/IW4Info.cs @@ -56,6 +56,7 @@ namespace StatsPlugin left_leg_lower, right_foot, left_foot, + gun, } public enum WeaponName diff --git a/Plugins/SimpleStats/Models/EFClientKill.cs b/Plugins/SimpleStats/Models/EFClientKill.cs index ea344e8f0..948c5a161 100644 --- a/Plugins/SimpleStats/Models/EFClientKill.cs +++ b/Plugins/SimpleStats/Models/EFClientKill.cs @@ -11,7 +11,7 @@ using System.ComponentModel.DataAnnotations; namespace StatsPlugin.Models { - public class EFClientKill : SharedEntity + public class EFClientKill : SharedEntity { public EFClientKill() { } @@ -36,5 +36,9 @@ namespace StatsPlugin.Models [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; } } } diff --git a/Plugins/SimpleStats/Plugin.cs b/Plugins/SimpleStats/Plugin.cs index 7852a62ed..bea22473b 100644 --- a/Plugins/SimpleStats/Plugin.cs +++ b/Plugins/SimpleStats/Plugin.cs @@ -74,7 +74,8 @@ namespace StatsPlugin case Event.GType.Kill: string[] killInfo = (E.Data != null) ? E.Data.Split(';') : new string[0]; if (killInfo.Length >= 9 && killInfo[0].Contains("ScriptKill") && E.Owner.CustomCallback) - await Manager.AddScriptKill(E.Origin, E.Target, S.GetHashCode(), S.CurrentMap.Name, killInfo[7], killInfo[8], killInfo[5], killInfo[6], killInfo[3], killInfo[4]); + await Manager.AddScriptKill(E.Origin, E.Target, S.GetHashCode(), S.CurrentMap.Name, killInfo[7], killInfo[8], + killInfo[5], killInfo[6], killInfo[3], killInfo[4], killInfo[9], killInfo[10]); else if (!E.Owner.CustomCallback) await Manager.AddStandardKill(E.Origin, E.Target); break; @@ -87,7 +88,7 @@ namespace StatsPlugin { // load custom configuration Config = new BaseConfigurationHandler("StatsPluginSettings"); - if (Config.Configuration()== null) + if (Config.Configuration() == null) { Config.Set((StatsConfiguration)new StatsConfiguration().Generate()); await Config.Save(); @@ -105,6 +106,7 @@ namespace StatsPlugin double skill = Math.Round(clientStats.Sum(c => c.Skill) / clientStats.Count, 2); double spm = Math.Round(clientStats.Sum(c => c.SPM), 1); + double headRatio = 0; double chestRatio = 0; double abdomenRatio = 0; double chestAbdomenRatio = 0; @@ -122,6 +124,10 @@ namespace StatsPlugin chestAbdomenRatio = Math.Round(clientStats.Where(c => c.HitLocations.Count > 0).Sum(cs => cs.HitLocations.First(hl => hl.Location == IW4Info.HitLocation.torso_upper).HitCount) / (double)clientStats.Where(c => c.HitLocations.Count > 0).Sum(cs => cs.HitLocations.First(hl => hl.Location == IW4Info.HitLocation.torso_lower).HitCount), 2); + + headRatio = Math.Round(clientStats.Where(c => c.HitLocations.Count > 0).Sum(cs => cs.HitLocations.First(hl => hl.Location == IW4Info.HitLocation.head).HitCount) / + (double)clientStats.Where(c => c.HitLocations.Count > 0) + .Sum(c => c.HitLocations.Where(hl => hl.Location != IW4Info.HitLocation.none).Sum(f => f.HitCount)), 2); } return new List() @@ -168,6 +174,12 @@ namespace StatsPlugin Key = "Chest To Abdomen Ratio", Value = chestAbdomenRatio, Sensitive = true + }, + new ProfileMeta() + { + Key = "Headshot Ratio", + Value = headRatio, + Sensitive = true } }; } @@ -191,7 +203,10 @@ namespace StatsPlugin return messageMeta; } - MetaService.AddMeta(getStats); + if (Config.Configuration().EnableAntiCheat) + { + MetaService.AddMeta(getStats); + } MetaService.AddMeta(getMessages); // todo: is this fast? make async? diff --git a/Plugins/SimpleStats/StatsPlugin.csproj b/Plugins/SimpleStats/StatsPlugin.csproj index 3d1a0c8a6..17a78002d 100644 --- a/Plugins/SimpleStats/StatsPlugin.csproj +++ b/Plugins/SimpleStats/StatsPlugin.csproj @@ -126,6 +126,7 @@ + diff --git a/SharedLibrary/Commands/NativeCommands.cs b/SharedLibrary/Commands/NativeCommands.cs index 193fca448..6e6985ae0 100644 --- a/SharedLibrary/Commands/NativeCommands.cs +++ b/SharedLibrary/Commands/NativeCommands.cs @@ -637,21 +637,6 @@ namespace SharedLibrary.Commands } } - public class CReload : Command - { - public CReload() : - base("reload", "reload configuration files", "rl", Player.Permission.Owner, false) - { } - - public override async Task ExecuteAsync(Event E) - { - if (E.Owner.Reload()) - await E.Origin.Tell("Sucessfully reloaded configuration files"); - else - await E.Origin.Tell("Unable to reload configuration files"); - } - } - public class CFlag : Command { public CFlag() : diff --git a/SharedLibrary/Helpers/Vector3.cs b/SharedLibrary/Helpers/Vector3.cs index 2f8959048..b51c12bdd 100644 --- a/SharedLibrary/Helpers/Vector3.cs +++ b/SharedLibrary/Helpers/Vector3.cs @@ -9,9 +9,9 @@ namespace SharedLibrary.Helpers { public class Vector3 { - public float X { get; private set; } - public float Y { get; private set; } - public float Z { get; private set; } + public float X { get; protected set; } + public float Y { get; protected set; } + public float Z { get; protected set; } public Vector3(float x, float y, float z) { @@ -41,6 +41,8 @@ namespace SharedLibrary.Helpers return Math.Round(Math.Sqrt(Math.Pow(b.X - a.X, 2) + Math.Pow(b.Y - a.Y, 2) + Math.Pow(b.Z - a.Z, 2)), 2); } + public static Vector3 Subtract(Vector3 a, Vector3 b) => new Vector3(b.X - a.X, b.Y - a.Y, b.Z - a.Z); + public double DotProduct(Vector3 a) => (a.X * this.X) + (a.Y * this.Y) + (a.Z * this.Z); public double Magnitude() => Math.Sqrt((X * X) + (Y * Y) + (Z * Z)); diff --git a/SharedLibrary/Migrations/201803030146021_Intial.Designer.cs b/SharedLibrary/Migrations/201803030146021_Intial.Designer.cs deleted file mode 100644 index f64099275..000000000 --- a/SharedLibrary/Migrations/201803030146021_Intial.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -namespace SharedLibrary.Migrations -{ - using System.CodeDom.Compiler; - using System.Data.Entity.Migrations; - using System.Data.Entity.Migrations.Infrastructure; - using System.Resources; - - [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")] - public sealed partial class Intial : IMigrationMetadata - { - private readonly ResourceManager Resources = new ResourceManager(typeof(Intial)); - - string IMigrationMetadata.Id - { - get { return "201803030146021_Intial"; } - } - - string IMigrationMetadata.Source - { - get { return null; } - } - - string IMigrationMetadata.Target - { - get { return Resources.GetString("Target"); } - } - } -} diff --git a/SharedLibrary/Migrations/201803030146021_Intial.cs b/SharedLibrary/Migrations/201803030146021_Intial.cs deleted file mode 100644 index 0fa457969..000000000 --- a/SharedLibrary/Migrations/201803030146021_Intial.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace SharedLibrary.Migrations -{ - using System; - using System.Data.Entity.Migrations; - - public partial class Intial : DbMigration - { - public override void Up() - { - } - - public override void Down() - { - } - } -} diff --git a/SharedLibrary/Migrations/201803030146021_Intial.resx b/SharedLibrary/Migrations/201803030146021_Intial.resx deleted file mode 100644 index 98122108e..000000000 --- a/SharedLibrary/Migrations/201803030146021_Intial.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1923LjuJbl+0TMPzj8NDOnTtqSaNmuyOyOLKezyl122pF21uW8OGiJlnlMkWqSykzPRH9ZP8wnzS8MeMdlA2tTkm8VHSfiRKXMtQlsLGwAa4PA//vP//v2X7/Po62vQZqFSfxue/Bmd3sriCfJNIxn77aX+e3fD7b/9V/++397ezydf9/6rXluVDwnkHH2bvsuzxc/7uxkk7tg7mdv5uEkTbLkNn8zSeY7/jTZGe7uHu4MBjuBMLEtbG1tvf28jPNwHpT/EP88SuJJsMiXfnSWTIMoq38Xf7ksrW598udBtvAnwbvtyzs/Daan4U3qpw9vPvi5f+NnwfbW+yj0RWkug+h2e8uP4yT3c1HWH79kwWWeJvHsciF+8KOrh0Ugnrv1owJV1uHH7nFudXaHRXV2OmBjarLM8mTe0+BgVPtnR4ev5OXt1n+lb+eLKPheVLt047vt34JJnqSj7S39ZT8eRWnxnO7kX4JoIVr+TQ38YUv58w8tLQR7iv/9sHW0jPJlGryLg2We+tEPWxfLmyic/Bo8XCX3QfwuXkaRXEhRzIs0Ee/IH+oy/rG9VZdEEDESDfVJQPybKGhbbseJ/3NN/D964d/uSF6Wfz8WNM8fJN8ffyx5yvd9Q/A3Vc94U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0b/R7rVXPWS1Gdt8fSL7Fd2WN7RbUYtL6m+rPrVeT37dbrWJ23z9KvsV0MY6tRO021Vqp9wlUv2wVUm7vB1vX2p7jp1uXul3cjrnZdkPU+ZwpPYc2tHM973e26FdUCk3bQ9iYqa+TK17/Zdt1Kq2FSPRF1g1Xe/OW1bFo+cYUf4VLaHkV+cko/wqWzL7m6VN5qg5fKrlJpcxZinpC74apv7sJYdU6jnpj44qq96etgX35rP+J1r6tXXpuekqctbt4FG73LdV3aP60LHv2a1tW5YE7ZmdeTvswbWNflxdO644muVl3FHbYFHfMa1s3cmWqesvZ25/MyLj7fqv71IcjCWWfibXd8Q2e0eeYkvk0aMUsrUfOI8Ula7k/93H+f5uGtP8nFnyciNoTxbLu9hGB+E0xP4vNlvljmosrB/CZSJkqFJOZ6f3kxrFrmt+eL8qiNTVRBFDMsvng7j39aiqVuW+6PxMcQFhOF1lZ/tVK0ZV58vTJ7aC19SmKmodp9rUR4FcwXkTCWnceXfvHZRv+yfcmC02DmTx6aY/LsRnBDqG5/+yH0Z6k/z2obHV78U3B4Ov/+L/8fg1BTEhkiAgA= - - - dbo - - \ No newline at end of file diff --git a/SharedLibrary/Server.cs b/SharedLibrary/Server.cs index 9b39f0c8c..17f828d3e 100644 --- a/SharedLibrary/Server.cs +++ b/SharedLibrary/Server.cs @@ -126,12 +126,6 @@ namespace SharedLibrary abstract protected Task ProcessEvent(Event E); abstract public Task ExecuteEvent(Event E); - /// - /// Reloads all the server configurations - /// - /// True on sucess - abstract public bool Reload(); - /// /// Send a message to all players /// diff --git a/SharedLibrary/SharedLibrary.csproj b/SharedLibrary/SharedLibrary.csproj index ec814ad0b..c7fa0e8ef 100644 --- a/SharedLibrary/SharedLibrary.csproj +++ b/SharedLibrary/SharedLibrary.csproj @@ -182,10 +182,6 @@ - - - 201803030146021_Intial.cs - @@ -258,11 +254,6 @@ false - - - 201803030146021_Intial.cs - - copy /Y "$(TargetDir)$(TargetName).dll" "$(SolutionDir)BUILD\lib" diff --git a/WebfrontCore/Application/Manager.cs b/WebfrontCore/Application/Manager.cs index 22594b9d3..a59db47ef 100644 --- a/WebfrontCore/Application/Manager.cs +++ b/WebfrontCore/Application/Manager.cs @@ -187,7 +187,6 @@ namespace IW4MAdmin Commands.Add(new CFindPlayer()); Commands.Add(new CListRules()); Commands.Add(new CPrivateMessage()); - Commands.Add(new CReload()); Commands.Add(new CFlag()); Commands.Add(new CReport()); Commands.Add(new CListReports()); diff --git a/WebfrontCore/Application/Server.cs b/WebfrontCore/Application/Server.cs index 74a5a7606..ba0bdf248 100644 --- a/WebfrontCore/Application/Server.cs +++ b/WebfrontCore/Application/Server.cs @@ -31,7 +31,7 @@ namespace IW4MAdmin override public async Task AddPlayer(Player polledPlayer) { - if (polledPlayer.Ping == 999 || polledPlayer.Ping < 1 || polledPlayer.ClientNumber > (MaxClients) || polledPlayer.ClientNumber < 0) + if (/*polledPlayer.Ping == 999 ||*/ polledPlayer.Ping < 1 || polledPlayer.ClientNumber > (MaxClients) || polledPlayer.ClientNumber < 0) { //Logger.WriteDebug($"Skipping client not in connected state {P}"); return true; @@ -69,6 +69,13 @@ namespace IW4MAdmin return false; } + if (polledPlayer.Name.Where(c => Char.IsControl(c)).Count() > 0) + { + Logger.WriteDebug($"Kicking {polledPlayer} because their contains control characters"); + await this.ExecuteCommandAsync($"clientkick {polledPlayer.ClientNumber} \"Your name cannot contain control characters.\""); + return false; + } + Logger.WriteDebug($"Client slot #{polledPlayer.ClientNumber} now reserved"); try @@ -618,7 +625,7 @@ namespace IW4MAdmin #if DEBUG { basepath.Value = (GameName == Game.IW4) ? - @"Z:\" : + @"D:\" : @"\\tsclient\G\Program Files (x86)\Steam\SteamApps\common\Call of Duty 4"; } @@ -956,23 +963,6 @@ namespace IW4MAdmin await Manager.GetPenaltyService().RemoveActivePenalties(Target.AliasLink.AliasLinkId); } - public override bool Reload() - { - try - { - InitializeMaps(); - InitializeAutoMessages(); - return true; - } - catch (Exception E) - { - Logger.WriteError("Unable to reload configs! - " + E.Message); - BroadcastMessages = new List(); - Maps = new List(); - return false; - } - } - override public void InitializeTokens() { Manager.GetMessageTokens().Add(new SharedLibrary.Helpers.MessageToken("TOTALPLAYERS", Manager.GetClientService().GetTotalClientsAsync().Result.ToString)); diff --git a/WebfrontCore/Controllers/BaseController.cs b/WebfrontCore/Controllers/BaseController.cs index 9a8cda483..5c5f74135 100644 --- a/WebfrontCore/Controllers/BaseController.cs +++ b/WebfrontCore/Controllers/BaseController.cs @@ -23,7 +23,7 @@ namespace WebfrontCore.Controllers ViewBag.Authorized = Authorized; ViewBag.Url = Startup.Configuration["Web:Address"]; string inviteLink = Manager.GetApplicationSettings().Configuration().DiscordInviteCode; - ViewBag.DiscordLink = inviteLink.Contains("http") ? inviteLink : $"https://discordapp.com/invite/{inviteLink}"; + ViewBag.DiscordLink = inviteLink != null && inviteLink.Contains("http") ? inviteLink : $"https://discordapp.com/invite/{inviteLink}"; base.OnActionExecuting(context); } } diff --git a/WebfrontCore/Views/Client/Profile/Index.cshtml b/WebfrontCore/Views/Client/Profile/Index.cshtml index 1cd86a0a7..0e707b7ae 100644 --- a/WebfrontCore/Views/Client/Profile/Index.cshtml +++ b/WebfrontCore/Views/Client/Profile/Index.cshtml @@ -1,5 +1,5 @@ @model SharedLibrary.Dtos.PlayerInfo -@{ +@{ string match = System.Text.RegularExpressions.Regex.Match(Model.Name.ToUpper(), "[A-Z]").Value; string shortCode = match == string.Empty ? "?" : match; } @@ -14,47 +14,47 @@

@Model.Name - @if (Model.Aliases.Count > 0 || ViewBag.Authorized) - { - - } - - -

-
- @{ - foreach (string alias in Model.Aliases) - { - @alias
- } - - if (ViewBag.Authorized) - { - foreach (string ip in Model.IPs) + @if (Model.Aliases.Count > 0 || ViewBag.Authorized) { - @ip
+ } + + +
+ @{ + foreach (string alias in Model.Aliases) + { + @alias
+ } + + if (ViewBag.Authorized) + { + foreach (string ip in Model.IPs) + { + @ip
+ } + + } } - } +
+
+
+
@Model.Level
+
+
+ Played @Model.TimePlayed hours +
+
+ First seen @Model.FirstSeen ago +
+
+ Last seen @Model.LastSeen ago
-
-
@Model.Level
-
-
- Played @Model.TimePlayed hours -
-
- First seen @Model.FirstSeen ago -
-
- Last seen @Model.LastSeen ago -
- -
+
-
+
diff --git a/WebfrontCore/Views/Penalty/_Penalty.cshtml b/WebfrontCore/Views/Penalty/_Penalty.cshtml index 07e0d8760..213ba3ce3 100644 --- a/WebfrontCore/Views/Penalty/_Penalty.cshtml +++ b/WebfrontCore/Views/Penalty/_Penalty.cshtml @@ -34,7 +34,7 @@ Time/Left - + @{ if (Model.TimeRemaining == string.Empty) { @@ -48,7 +48,6 @@ - @Html.ActionLink(Model.OffenderName, "ProfileAsync", "Client", new { id = Model.OffenderId }, new { @class = "link-inverse" }) diff --git a/WebfrontCore/Views/Shared/_Layout.cshtml b/WebfrontCore/Views/Shared/_Layout.cshtml index 2266d6020..9c12d99c1 100644 --- a/WebfrontCore/Views/Shared/_Layout.cshtml +++ b/WebfrontCore/Views/Shared/_Layout.cshtml @@ -6,7 +6,7 @@ @ViewBag.Title | IW4MAdmin - + diff --git a/WebfrontCore/wwwroot/css/profile.css b/WebfrontCore/wwwroot/css/profile.css index fdf6db4ae..342d75941 100644 --- a/WebfrontCore/wwwroot/css/profile.css +++ b/WebfrontCore/wwwroot/css/profile.css @@ -100,7 +100,7 @@ } #profile_aliases_btn { - position: absolute; + position: relative; top: auto; margin-top: 0.7em; font-size: 0.5em; diff --git a/WebfrontCore/wwwroot/images/banner1.svg b/WebfrontCore/wwwroot/images/banner1.svg deleted file mode 100644 index 1ab32b60b..000000000 --- a/WebfrontCore/wwwroot/images/banner1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/WebfrontCore/wwwroot/images/banner2.svg b/WebfrontCore/wwwroot/images/banner2.svg deleted file mode 100644 index 9679c604d..000000000 --- a/WebfrontCore/wwwroot/images/banner2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/WebfrontCore/wwwroot/images/banner3.svg b/WebfrontCore/wwwroot/images/banner3.svg deleted file mode 100644 index 9be2c2503..000000000 --- a/WebfrontCore/wwwroot/images/banner3.svg +++ /dev/null @@ -1 +0,0 @@ -banner3b \ No newline at end of file diff --git a/WebfrontCore/wwwroot/images/banner4.svg b/WebfrontCore/wwwroot/images/banner4.svg deleted file mode 100644 index 38b3d7cd1..000000000 --- a/WebfrontCore/wwwroot/images/banner4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/WebfrontCore/wwwroot/images/icon.png b/WebfrontCore/wwwroot/images/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e9ca45cebbad9e2659ce1a682e03f393f461a61f GIT binary patch literal 2702 zcmV;93UT#`P)Px#1ZP1_K>z@;j|==^1pojFI7vi7RCr$PntM=G_Z7$Y-n;iM?1C(!fTEBzF|p8x zhAQAAVvW=IL}v<7G*+iUP<$29aVAaGX4*;3M5~|?AESU^3XNk*2{maG)M{#cqziNOZNo4Qk-euR=A)kMK=bQ`o@%{aN=XZX0FQq67W$MS!*!Elc zy#SBw6xdT$6};<;ee`8MctRBAyj8#U+5LFPuRJ;eR94ax+oPYTyK9-`mZ_3lNN>2~Id7GO0rJGGL)5;8&L_day?!zdG>xEc%Oj+iH zb`1HIhblmJ<@o`Bxgq_ik*6ke6gAT&n-XLbWyZr^;VAh7e*Ku|(Dge36<}3O4fp5I z!+y{vauWqve%>Qf<3tl}!^64=W2DXP`C~Vu>v#MrKqbuMg7(*k%75Z_-g^Dgp zOcXKXcMJ=#>QGJSpV|f{wt1*Y@SroClJbmfVggc6SQ)vpGk?qr=mrGc0z6l8a>S{d z!P`YeNr8DBhT(u>XQb7)^T!sT8xVB&+=N)EK8zEuiV8IVLxBZ)=1H4yjF=S_6+s6N z?#QgItu&NC^`KjTO{u9;LCm$~Q9)8bDzXP*Y15Un%f^3BY^Sq%x+n^VzWCy5U2$>2 zg7fFkYc8EeFf@15)6?agHA&e~7I7Db0)~Z_j-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