v1.10.0.0 update
- made WBM work in WB v462
This commit is contained in:
parent
bbd8d882e6
commit
f9fb8d7a4e
7 changed files with 49 additions and 49 deletions
|
@ -9,30 +9,30 @@ namespace WBM
|
|||
// Variables
|
||||
//
|
||||
|
||||
public const string AKRifleShotClip = "AMLFKFMFNHJ";
|
||||
public const string SMGShotClip = "JBPCEBHIPOA";
|
||||
public const string AKRifleShotClip = "KOPNJGAFJPJ";
|
||||
public const string SMGShotClip = "NIBJHJKGFGM";
|
||||
// fps limit value
|
||||
public const string fpsValue = "DDMMENCGNNJ";
|
||||
public const string showElo = "GOLMFEFNGEO";
|
||||
public const string fpsValue = "DJINOOHCNED";
|
||||
public const string showElo = "IGGKIHFPINI";
|
||||
// show squad servers
|
||||
public const string isClan = "DMKFINANCKN";
|
||||
public const string isClan = "FOAHJKKGADA";
|
||||
// show testing servers
|
||||
public const string isTesting = "IMIBKMIHNEF";
|
||||
public const string chatList = "NPGFEBBFCKM";
|
||||
public const string gameState = "HJKIAMIDEMB";
|
||||
public const string nickList = "PAGBLNDBFFM";
|
||||
public const string personGun = "DOKPBFNBIMP";
|
||||
public const string localPlayerIndex = "HHMPKKFMJCN";
|
||||
public const string teamList = "MGHADKEDFHK";
|
||||
public const string statsList = "CHNEHJPEKGM";
|
||||
public const string isTesting = "LHEKKMODFPJ";
|
||||
public const string chatList = "PCBPHCPLMJJ";
|
||||
public const string gameState = "EMPEJBNDMDJ";
|
||||
public const string nickList = "KLPKEAEKILP";
|
||||
public const string personGun = "AAOANFBKCAP";
|
||||
public const string localPlayerIndex = "EBIHMNMOAOI";
|
||||
public const string teamList = "MNPJBKGAIBD";
|
||||
public const string statsList = "AKABPCKCMKO";
|
||||
|
||||
//
|
||||
// functions
|
||||
//
|
||||
|
||||
public const string drawChatMessage = "CIHAFDBGGDP";
|
||||
public const string clearMessages = "FOLIGEPKOMI";
|
||||
public const string onFPSChanged = "NGENLDFJGLK";
|
||||
public const string addMessage = "HAFDILLPPMB";
|
||||
public const string drawChatMessage = "OODIFGBIKLH";
|
||||
public const string clearMessages = "IBIHDJMOONL";
|
||||
public const string onFPSChanged = "LNMOKJEAAIL";
|
||||
public const string addMessage = "EGKICEMGIAN";
|
||||
}
|
||||
}
|
||||
|
|
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 = LELHDOPKMBE;
|
||||
using CPersonGun = LIKCPPJOPCD;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -49,31 +49,31 @@ namespace WBM
|
|||
public static float getGunZoom(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.cameraZoom
|
||||
return gun.CAAABKHHGLM;
|
||||
return gun.MCGMBFEFIEJ;
|
||||
}
|
||||
|
||||
public static float getGunFireTimer(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireTimer
|
||||
return gun.HDDNCAICDOJ;
|
||||
return gun.ACHDOADNLGG;
|
||||
}
|
||||
|
||||
public static float getGunFireVelocity(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireVel
|
||||
return gun.IMNMEFPBAAM;
|
||||
return gun.IALIPLHBOPP;
|
||||
}
|
||||
|
||||
public static float getGunFireRate(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.fireRate
|
||||
return gun.LCDDGLKGKCO;
|
||||
return gun.GBNPIHJPNEA;
|
||||
}
|
||||
|
||||
public static float getGunReloadTimer(CPersonGun gun)
|
||||
{
|
||||
// CPersonGun.reloadTimer
|
||||
return gun.ILBBFNBJJKI;
|
||||
return gun.NNHNKPHCADL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.9.2.0";
|
||||
public const string programVersion = "1.10.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 = LELHDOPKMBE;
|
||||
using SPlayerStats = BBOACLMHKLF;
|
||||
using CPersonGun = LIKCPPJOPCD;
|
||||
using SPlayerStats = HCBAGAMOGBP;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -109,18 +109,18 @@ namespace WBM
|
|||
|
||||
result[i] = new Data.PlayerStatsStruct
|
||||
{
|
||||
kills = currentlyParsing.GPLIPBNIDNC,
|
||||
deaths = currentlyParsing.DKJCHCPBADP,
|
||||
damage = currentlyParsing.EOPJFDCLCCL,
|
||||
longestKill = currentlyParsing.MPJBKDPMLBD,
|
||||
points = currentlyParsing.IEJEOANMHKI,
|
||||
headShots = currentlyParsing.PEJJONGBLLH,
|
||||
vote = currentlyParsing.BIPKEJFKPGD,
|
||||
mapVote = currentlyParsing.FLOHPDGHOOG,
|
||||
gamesElo = currentlyParsing.EAFMCHFNJAL,
|
||||
gamesEloDelta = currentlyParsing.GPLEHHJJCIN,
|
||||
killsElo = currentlyParsing.GOJIAOADAJJ,
|
||||
killsEloDelta = currentlyParsing.IPICEMAAMBM,
|
||||
kills = currentlyParsing.PCMKHOLBIOA,
|
||||
deaths = currentlyParsing.GIPNKMBEJBC,
|
||||
damage = currentlyParsing.PGANOPIJICP,
|
||||
longestKill = currentlyParsing.AJGPPDGOCLB,
|
||||
points = currentlyParsing.CMLHIAPNBKF,
|
||||
headShots = currentlyParsing.FCKHPEPKJKO,
|
||||
vote = currentlyParsing.LAMDMJMNOAI,
|
||||
mapVote = currentlyParsing.FKBOEOGLBOJ,
|
||||
gamesElo = currentlyParsing.DGCDKMFAIBO,
|
||||
gamesEloDelta = currentlyParsing.HEGLGPOHIOC,
|
||||
killsElo = currentlyParsing.KIHFGLMLLIC,
|
||||
killsEloDelta = currentlyParsing.AOLLNAKLLAE,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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 KFBLINBNKHI)
|
||||
static bool Prefix(webguy __instance, float HJPKONHFKEC)
|
||||
{
|
||||
fpsValueRef(__instance) = KFBLINBNKHI;
|
||||
int targetFrameRate = (int)(KFBLINBNKHI * maxTargetFrameRate);
|
||||
fpsValueRef(__instance) = HJPKONHFKEC;
|
||||
int targetFrameRate = (int)(HJPKONHFKEC * maxTargetFrameRate);
|
||||
|
||||
if (targetFrameRate == 0)
|
||||
{
|
||||
((InfernalBehaviour)__instance).GHLANFKABIH(fpsSliderTextObj, __instance.LMOKBIHLKFK("Disabled"));
|
||||
((InfernalBehaviour)__instance).CBBJNPBJGEO(fpsSliderTextObj, __instance.JFNBHCLAPNI("Disabled"));
|
||||
targetFrameRate = defaultTargetFrameRate;
|
||||
}
|
||||
else
|
||||
{
|
||||
((InfernalBehaviour)__instance).GHLANFKABIH(fpsSliderTextObj, targetFrameRate.ToString());
|
||||
((InfernalBehaviour)__instance).CBBJNPBJGEO(fpsSliderTextObj, targetFrameRate.ToString());
|
||||
}
|
||||
|
||||
if (targetFrameRate > 0 && targetFrameRate < 5) targetFrameRate = 5;
|
||||
|
|
|
@ -3,7 +3,7 @@ using BepInEx.Configuration;
|
|||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
using CAudioClip = DMJGLPCLOPG;
|
||||
using CAudioClip = IMCFFHCAJHO;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -42,13 +42,13 @@ namespace WBM
|
|||
this.SMGSoundRef = webguyType.GetField(MangledNames.SMGShotClip, bindFlags);
|
||||
|
||||
this.oldGunSound = new CAudioClip("Sound/gun_shot", 1f, 0f);
|
||||
this.oldGunSound.GPBDJPDFDMJ(50f, 1_000f);
|
||||
this.oldGunSound.NBELPEEPNEG(50f, 1_000f);
|
||||
|
||||
this.newAKSound = new CAudioClip("Sound/AK47_Krinkov_Close_Single", 1f, 0f);
|
||||
this.newAKSound.GPBDJPDFDMJ(50f, 1_000f);
|
||||
this.newAKSound.NBELPEEPNEG(50f, 1_000f);
|
||||
|
||||
this.newSMGSound = new CAudioClip("Sound/smg_gun_shot", 1f, 0f);
|
||||
this.newSMGSound.GPBDJPDFDMJ(50f, 1_000f);
|
||||
this.newSMGSound.NBELPEEPNEG(50f, 1_000f);
|
||||
|
||||
this.onOldGunSoundChange(new object(), new EventArgs());
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using BepInEx.Configuration;
|
||||
|
||||
using UnityEngine;
|
||||
using CFPSGuy = BLALJCIJGGH;
|
||||
using CFPSGuy = NNAPHAANNBH;
|
||||
|
||||
namespace WBM
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ namespace WBM
|
|||
private void setCrouchState(bool crouchState)
|
||||
{
|
||||
// CFPSGuy.inSt.isCrouching
|
||||
CFPSGuy.GODHOHFPIFB.BLACKAOLGNP = crouchState;
|
||||
CFPSGuy.IEEOONGMDCO.ELHNALDDABE = crouchState;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue