v1.13.0.0 update: made it work in v465
This commit is contained in:
parent
ffebff3229
commit
a6359cca7b
7 changed files with 49 additions and 48 deletions
|
@ -9,30 +9,30 @@ namespace WBM
|
|||
// Variables
|
||||
//
|
||||
|
||||
public const string AKRifleShotClip = "PIANBDGFMPJ";
|
||||
public const string SMGShotClip = "GAIEAFBFNAB";
|
||||
public const string AKRifleShotClip = "JMKOGEAHEEO";
|
||||
public const string SMGShotClip = "DFFGGCFCLLA";
|
||||
// fps limit value
|
||||
public const string fpsValue = "OEAAKDGKBJG";
|
||||
public const string showElo = "NGPMJKPPFMP";
|
||||
public const string fpsValue = "NMEFNDLAMJO";
|
||||
public const string showElo = "NGKFFEHNABD";
|
||||
// show squad servers
|
||||
public const string isClan = "KHIGIKJIMJE";
|
||||
public const string isClan = "LBFNALHNIPM";
|
||||
// show testing servers
|
||||
public const string isTesting = "PEGCAFFOBKF";
|
||||
public const string chatList = "BJAFAAOKHEH";
|
||||
public const string gameState = "IDGHJMCFNKE";
|
||||
public const string nickList = "IOOOOHMIOHH";
|
||||
public const string personGun = "EJDNEICNEPI";
|
||||
public const string localPlayerIndex = "GKFCPFOOPOA";
|
||||
public const string teamList = "CKBJDMPJHBO";
|
||||
public const string statsList = "MLOEONIFNIN";
|
||||
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";
|
||||
|
||||
//
|
||||
// functions
|
||||
//
|
||||
|
||||
public const string drawChatMessage = "DFPHCJEPDED";
|
||||
public const string clearMessages = "IAIBHDNOAND";
|
||||
public const string onFPSChanged = "NJIPHOHHEHD";
|
||||
public const string addMessage = "CAJHEPNJNPG";
|
||||
public const string drawChatMessage = "JEAEIDKGGKL";
|
||||
public const string clearMessages = "DAALHBBPELA";
|
||||
public const string onFPSChanged = "INDPBMMBCBG";
|
||||
public const string addMessage = "FIKLAPEFMDK";
|
||||
}
|
||||
}
|
||||
|
|
12
WBM/Util.cs
12
WBM/Util.cs
|
@ -6,7 +6,7 @@ using System.Text;
|
|||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using System.Runtime.Serialization.Json;
|
||||
using CPersonGun = PBMBHMPCKCN;
|
||||
using CPersonGun = BOKJJMJCNGM;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -49,31 +49,31 @@ namespace WBM
|
|||
public static float getGunZoom(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.cameraZoom
|
||||
return gun.GDFNMDDLJBC;
|
||||
return gun.KJOHIDPMFGJ;
|
||||
}
|
||||
|
||||
public static float getGunFireTimer(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireTimer
|
||||
return gun.MJOHAFCEOHC;
|
||||
return gun.LKMIHJFMGMP;
|
||||
}
|
||||
|
||||
public static float getGunFireVelocity(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireVel
|
||||
return gun.LIILKCBLDCK;
|
||||
return gun.KNBPIMGMICO;
|
||||
}
|
||||
|
||||
public static float getGunFireRate(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireRate
|
||||
return gun.JNAJOIFEDCF;
|
||||
return gun.AMBMNGKBKHL;
|
||||
}
|
||||
|
||||
public static float getGunReloadTimer(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.reloadTimer
|
||||
return gun.DEBADKJLNHC;
|
||||
return gun.MEEIEBOPDGF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.12.0.0";
|
||||
public const string programVersion = "1.13.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.
|
||||
|
|
|
@ -9,8 +9,8 @@ using System.IO;
|
|||
using System.Reflection;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using CPersonGun = PBMBHMPCKCN;
|
||||
using SPlayerStats = MJMIHJNPLMG;
|
||||
using CPersonGun = BOKJJMJCNGM;
|
||||
using SPlayerStats = AOCINPBCGCH;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -109,18 +109,18 @@ namespace WBM
|
|||
|
||||
result[i] = new Data.PlayerStatsStruct
|
||||
{
|
||||
kills = currentlyParsing.JOIIFMIBBAI,
|
||||
deaths = currentlyParsing.FEOCHBMIJBI,
|
||||
damage = currentlyParsing.EAPNFNFDGCL,
|
||||
longestKill = currentlyParsing.BPGPCOCJLAC,
|
||||
points = currentlyParsing.LDHFEPHBGBK,
|
||||
headShots = currentlyParsing.GKDMEMOJEGK,
|
||||
vote = currentlyParsing.KGHLJCNMHIB,
|
||||
mapVote = currentlyParsing.JBOKOJHKECD,
|
||||
gamesElo = currentlyParsing.GBCLFNNLHEP,
|
||||
gamesEloDelta = currentlyParsing.PKPCAEJKOCG,
|
||||
killsElo = currentlyParsing.DCFPFIFBGPL,
|
||||
killsEloDelta = currentlyParsing.EHMJLJMBLGO,
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -17,19 +17,19 @@ namespace WBM
|
|||
private static Slider slider = GameObject.Find("fpsSlider").GetComponent<Slider>();
|
||||
private static AccessTools.FieldRef<webguy, float> fpsValueRef = AccessTools.FieldRefAccess<webguy, float>(MangledNames.fpsValue);
|
||||
|
||||
static bool Prefix(webguy __instance, float FFALKGOIMAL)
|
||||
static bool Prefix(webguy __instance, float LFJDCBMHKHF)
|
||||
{
|
||||
fpsValueRef(__instance) = FFALKGOIMAL;
|
||||
int targetFrameRate = (int)(FFALKGOIMAL * maxTargetFrameRate);
|
||||
fpsValueRef(__instance) = LFJDCBMHKHF;
|
||||
int targetFrameRate = (int)(LFJDCBMHKHF * maxTargetFrameRate);
|
||||
|
||||
if (targetFrameRate == 0)
|
||||
{
|
||||
((InfernalBehaviour)__instance).DBGHLKJOLEN(fpsSliderTextObj, __instance.GFPPHLOPCBA("Disabled"));
|
||||
((InfernalBehaviour)__instance).PNINPKEBNNF(fpsSliderTextObj, __instance.PECHBMNCFBF("Disabled"));
|
||||
targetFrameRate = defaultTargetFrameRate;
|
||||
}
|
||||
else
|
||||
{
|
||||
((InfernalBehaviour)__instance).DBGHLKJOLEN(fpsSliderTextObj, targetFrameRate.ToString());
|
||||
((InfernalBehaviour)__instance).PNINPKEBNNF(fpsSliderTextObj, targetFrameRate.ToString());
|
||||
}
|
||||
|
||||
if (targetFrameRate > 0 && targetFrameRate < 5) targetFrameRate = 5;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BepInEx.Configuration;
|
|||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
using CAudioClip = JOHBIOLPABD;
|
||||
using CAudioClip = EGMGOCHNIAA;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -41,14 +41,15 @@ namespace WBM
|
|||
this.AKSoundRef = webguyType.GetField(MangledNames.AKRifleShotClip, bindFlags);
|
||||
this.SMGSoundRef = webguyType.GetField(MangledNames.SMGShotClip, bindFlags);
|
||||
|
||||
|
||||
this.oldGunSound = new CAudioClip("Sound/gun_shot", 1f, 0f);
|
||||
this.oldGunSound.FNHBCEACCHK(50f, 1_000f);
|
||||
this.oldGunSound.GFHPMKOJOEA(50f, 1_000f);
|
||||
|
||||
this.newAKSound = new CAudioClip("Sound/AK47_Krinkov_Close_Single", 1f, 0f);
|
||||
this.newAKSound.FNHBCEACCHK(50f, 1_000f);
|
||||
this.newAKSound.GFHPMKOJOEA(50f, 1_000f);
|
||||
|
||||
this.newSMGSound = new CAudioClip("Sound/smg_gun_shot", 1f, 0f);
|
||||
this.newSMGSound.FNHBCEACCHK(50f, 1_000f);
|
||||
this.newSMGSound.GFHPMKOJOEA(50f, 1_000f);
|
||||
|
||||
this.onOldGunSoundChange(new object(), new EventArgs());
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace WBM
|
|||
private void setCrouchState(bool crouchState)
|
||||
{
|
||||
// CFPSGuy.inSt.isCrouching
|
||||
GJHNNGPDABK.DFMBPNJKOFB.CIANALPDBAI = crouchState;
|
||||
ELELEGKEADF.AMCHCJJPCJJ.OHALNEDGBNG = crouchState;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue