From c210ae8e81c75a1493610faed0284bde5d6b1633 Mon Sep 17 00:00:00 2001 From: developomp Date: Fri, 6 May 2022 23:15:38 +0900 Subject: [PATCH] v1.14 update: made it work in v466 --- WBM/MangledNames.cs | 34 +++++++++++++++++----------------- WBM/Util.cs | 12 ++++++------ WBM/WBM.cs | 2 +- WBM/features/core/core.cs | 28 ++++++++++++++-------------- WBM/features/fpsUnlock.cs | 10 +++++----- WBM/features/oldGunSound.cs | 8 ++++---- WBM/features/shiftToCrouch.cs | 2 +- 7 files changed, 48 insertions(+), 48 deletions(-) diff --git a/WBM/MangledNames.cs b/WBM/MangledNames.cs index fb94826..cfbf3de 100644 --- a/WBM/MangledNames.cs +++ b/WBM/MangledNames.cs @@ -9,30 +9,30 @@ namespace WBM // Variables // - public const string AKRifleShotClip = "JMKOGEAHEEO"; - public const string SMGShotClip = "DFFGGCFCLLA"; + public const string AKRifleShotClip = "AJLCLOJGKLF"; + public const string SMGShotClip = "GDKKJENDFOF"; // fps limit value - public const string fpsValue = "NMEFNDLAMJO"; - public const string showElo = "NGKFFEHNABD"; + public const string fpsValue = "PFOMGOFNIOE"; + public const string showElo = "JEFPGBDBGFF"; // show squad servers - public const string isClan = "LBFNALHNIPM"; + public const string isClan = "GHAAFBAPMMH"; // show testing servers - public const string isTesting = "BGPDGOKNOMA"; - public const string chatList = "OHFEDOINKKJ"; - public const string gameState = "LAKHBPCBDHD"; - public const string nickList = "HKCNPKMCEEI"; - public const string personGun = "MKDGGFLFIFB"; - public const string localPlayerIndex = "DNEGCKGOMNI"; - public const string teamList = "NNLNLLFJPCK"; - public const string statsList = "BENNIHEPNHP"; + public const string isTesting = "CIAFOJDAKFA"; + public const string chatList = "CBKINJHGBOM"; + public const string gameState = "HHBJFNILCBJ"; + public const string nickList = "MBFCFOPONAI"; + public const string personGun = "FDHBIGANHOH"; + public const string localPlayerIndex = "INGKMFAPBJC"; + public const string teamList = "GKDEFMOHMGH"; + public const string statsList = "GNKKKHEDFAN"; // // functions // - public const string drawChatMessage = "JEAEIDKGGKL"; - public const string clearMessages = "DAALHBBPELA"; - public const string onFPSChanged = "INDPBMMBCBG"; - public const string addMessage = "FIKLAPEFMDK"; + public const string drawChatMessage = "IACLHANNPED"; + public const string clearMessages = "NFNFPNGMKFD"; + public const string onFPSChanged = "EFDAECNGBEP"; + public const string addMessage = "GPIKJGHDPEA"; } } diff --git a/WBM/Util.cs b/WBM/Util.cs index b169e42..50fc610 100644 --- a/WBM/Util.cs +++ b/WBM/Util.cs @@ -6,7 +6,7 @@ using System.Text; using System.IO; using System.Threading.Tasks; using System.Runtime.Serialization.Json; -using CPersonGun = BOKJJMJCNGM; +using CPersonGun = JABKDMKNMKE; namespace WBM { @@ -49,31 +49,31 @@ namespace WBM public static float getGunZoom(CPersonGun gun) { // CPersonGun.cameraZoom - return gun.KJOHIDPMFGJ; + return gun.IDOOGDDHKOG; } public static float getGunFireTimer(CPersonGun gun) { // CPersonGun.fireTimer - return gun.LKMIHJFMGMP; + return gun.ABENIMBBCFL; } public static float getGunFireVelocity(CPersonGun gun) { // CPersonGun.fireVel - return gun.KNBPIMGMICO; + return gun.EMDMIEBFHDL; } public static float getGunFireRate(CPersonGun gun) { // CPersonGun.fireRate - return gun.AMBMNGKBKHL; + return gun.EDHPPDGFLEB; } public static float getGunReloadTimer(CPersonGun gun) { // CPersonGun.reloadTimer - return gun.MEEIEBOPDGF; + return gun.ALNGHNHLNGP; } } } diff --git a/WBM/WBM.cs b/WBM/WBM.cs index 97e51e3..d7774d1 100644 --- a/WBM/WBM.cs +++ b/WBM/WBM.cs @@ -13,7 +13,7 @@ namespace WBM { public const string programID = "com.developomp.wbm"; public const string programName = "War Brokers Mods"; - public const string programVersion = "1.13.0.0"; + public const string programVersion = "1.14.0.0"; /// This function is called as soon as the component becomes active. /// It is the first event function that's called during the component's lifecycle. diff --git a/WBM/features/core/core.cs b/WBM/features/core/core.cs index 13199f9..0bd4541 100644 --- a/WBM/features/core/core.cs +++ b/WBM/features/core/core.cs @@ -9,8 +9,8 @@ using System.IO; using System.Reflection; using System.Collections; using System.Collections.Generic; -using CPersonGun = BOKJJMJCNGM; -using SPlayerStats = AOCINPBCGCH; +using CPersonGun = JABKDMKNMKE; +using SPlayerStats = INPDBACNIGK; namespace WBM { @@ -109,18 +109,18 @@ namespace WBM result[i] = new Data.PlayerStatsStruct { - kills = currentlyParsing.GDAAGFMFLNI, - deaths = currentlyParsing.CCJMDIHCBDP, - damage = currentlyParsing.OCGEPPGBDNH, - longestKill = currentlyParsing.CBALDOLFIHK, - points = currentlyParsing.AIEMHCIHIFN, - headShots = currentlyParsing.JGFCAIPDMIF, - vote = currentlyParsing.KHEHPPEJLFP, - mapVote = currentlyParsing.DDIINLJFLFD, - gamesElo = currentlyParsing.MHLFOIJHBAC, - gamesEloDelta = currentlyParsing.HFHOJIAHLIH, - killsElo = currentlyParsing.MKKAAMMOBJB, - killsEloDelta = currentlyParsing.CJLEKFIHJBM, + kills = currentlyParsing.JJEIOHLJMHO, + deaths = currentlyParsing.CADBJPEGEAL, + damage = currentlyParsing.MBNBFDFDBAN, + longestKill = currentlyParsing.FNOCIFHHINH, + points = currentlyParsing.AIDBBHHNCAK, + headShots = currentlyParsing.FJPBIMILEPN, + vote = currentlyParsing.ILNFHPIOPCI, + mapVote = currentlyParsing.DPMNDAMAHML, + gamesElo = currentlyParsing.OPMKKKJPDON, + gamesEloDelta = currentlyParsing.BIFCAPOBMIO, + killsElo = currentlyParsing.ICIBGMLJNHJ, + killsEloDelta = currentlyParsing.ONICDMLDBFL, }; } diff --git a/WBM/features/fpsUnlock.cs b/WBM/features/fpsUnlock.cs index 9a6aa63..5e2a920 100644 --- a/WBM/features/fpsUnlock.cs +++ b/WBM/features/fpsUnlock.cs @@ -17,19 +17,19 @@ namespace WBM private static Slider slider = GameObject.Find("fpsSlider").GetComponent(); private static AccessTools.FieldRef fpsValueRef = AccessTools.FieldRefAccess(MangledNames.fpsValue); - static bool Prefix(webguy __instance, float LFJDCBMHKHF) + static bool Prefix(webguy __instance, float CNFIJGNCMNE) { - fpsValueRef(__instance) = LFJDCBMHKHF; - int targetFrameRate = (int)(LFJDCBMHKHF * maxTargetFrameRate); + fpsValueRef(__instance) = CNFIJGNCMNE; + int targetFrameRate = (int)(CNFIJGNCMNE * maxTargetFrameRate); if (targetFrameRate == 0) { - ((InfernalBehaviour)__instance).PNINPKEBNNF(fpsSliderTextObj, __instance.PECHBMNCFBF("Disabled")); + ((InfernalBehaviour)__instance).CEHBKMNGHPG(fpsSliderTextObj, __instance.ILCOAONDEKP("Disabled")); targetFrameRate = defaultTargetFrameRate; } else { - ((InfernalBehaviour)__instance).PNINPKEBNNF(fpsSliderTextObj, targetFrameRate.ToString()); + ((InfernalBehaviour)__instance).CEHBKMNGHPG(fpsSliderTextObj, targetFrameRate.ToString()); } if (targetFrameRate > 0 && targetFrameRate < 5) targetFrameRate = 5; diff --git a/WBM/features/oldGunSound.cs b/WBM/features/oldGunSound.cs index 565559b..475fa81 100644 --- a/WBM/features/oldGunSound.cs +++ b/WBM/features/oldGunSound.cs @@ -3,7 +3,7 @@ using BepInEx.Configuration; using System; using System.Reflection; -using CAudioClip = EGMGOCHNIAA; +using CAudioClip = KGEACBNNOIM; namespace WBM { @@ -43,13 +43,13 @@ namespace WBM this.oldGunSound = new CAudioClip("Sound/gun_shot", 1f, 0f); - this.oldGunSound.GFHPMKOJOEA(50f, 1_000f); + this.oldGunSound.DMMKODLJJGP(50f, 1_000f); this.newAKSound = new CAudioClip("Sound/AK47_Krinkov_Close_Single", 1f, 0f); - this.newAKSound.GFHPMKOJOEA(50f, 1_000f); + this.newAKSound.DMMKODLJJGP(50f, 1_000f); this.newSMGSound = new CAudioClip("Sound/smg_gun_shot", 1f, 0f); - this.newSMGSound.GFHPMKOJOEA(50f, 1_000f); + this.newSMGSound.DMMKODLJJGP(50f, 1_000f); this.onOldGunSoundChange(new object(), new EventArgs()); } diff --git a/WBM/features/shiftToCrouch.cs b/WBM/features/shiftToCrouch.cs index 025477b..61a4edc 100644 --- a/WBM/features/shiftToCrouch.cs +++ b/WBM/features/shiftToCrouch.cs @@ -41,7 +41,7 @@ namespace WBM private void setCrouchState(bool crouchState) { // CFPSGuy.inSt.isCrouching - ELELEGKEADF.AMCHCJJPCJJ.OHALNEDGBNG = crouchState; + HGIJNAOOGIC.AIPINJPLLIN.GDKHEALABDI = crouchState; } } }