scripts
This commit is contained in:
@@ -0,0 +1,234 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecNet;
|
||||
using RecRoom;
|
||||
using RecRoom.Core.Combat;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x020000D2 RID: 210
|
||||
[Token(Token = "0x20000D2")]
|
||||
[StructLayout(3)]
|
||||
public class WeaponFlashlightController : MonoBehaviour
|
||||
{
|
||||
// Token: 0x170000CE RID: 206
|
||||
// (get) Token: 0x0600058D RID: 1421 RVA: 0x0001C3F8 File Offset: 0x0001A5F8
|
||||
[Token(Token = "0x170000CE")]
|
||||
public bool DMDHMJLJKHM
|
||||
{
|
||||
[Token(Token = "0x600058D")]
|
||||
[Address(RVA = "0x20801B0", Offset = "0x207EBB0", VA = "0x1820801B0")]
|
||||
get
|
||||
{
|
||||
if (Matchmaking.ELHFNPEDCCN == 0)
|
||||
{
|
||||
}
|
||||
return Matchmaking.ELHFNPEDCCN.<PGOEAIDCELB>k__BackingField == COBKKLOJNNE.THE_RISE_OF_JUMBOTRON;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600058E RID: 1422 RVA: 0x0001C428 File Offset: 0x0001A628
|
||||
[Token(Token = "0x600058E")]
|
||||
[Address(RVA = "0x207F920", Offset = "0x207E320", VA = "0x18207F920")]
|
||||
private void Awake()
|
||||
{
|
||||
Weapon weapon = this.weapon;
|
||||
int num = 0;
|
||||
if (!(weapon == num))
|
||||
{
|
||||
Tool tool = this.weapon._tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.HAAIALDMMEL);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
Tool tool2 = this.weapon._tool;
|
||||
ActionEvent<Tool> postReleaseEvent = tool2.PostReleaseEvent;
|
||||
Action<Tool> action2 = new Action(this.OIOCPLEKMEK);
|
||||
ActionEvent<Tool> actionEvent2 = postReleaseEvent + action2;
|
||||
tool2.PostReleaseEvent = actionEvent2;
|
||||
Tool tool3 = this.weapon._tool;
|
||||
ActionEvent<bool> visibilityChangeEvent = tool3.VisibilityChangeEvent;
|
||||
Action<bool> action3 = new Action(this.NBJCOKAKBFL);
|
||||
ActionEvent<bool> actionEvent3 = visibilityChangeEvent + action3;
|
||||
tool3.VisibilityChangeEvent = actionEvent3;
|
||||
bool isVisible = this.weapon._tool.GDPKBEBEOBA;
|
||||
Weapon weapon2 = this.weapon;
|
||||
int num2 = 0;
|
||||
if (!(weapon2 != num2))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!this.weapon._tool.FNFNLDBILFE)
|
||||
{
|
||||
if (!this.OCOECFPNEBO())
|
||||
{
|
||||
}
|
||||
Tool tool4 = this.weapon._tool;
|
||||
int num3 = 0;
|
||||
bool isVisible2 = tool4.GDPKBEBEOBA;
|
||||
num3 += 2;
|
||||
}
|
||||
bool isVisible3 = this.weapon._tool.GDPKBEBEOBA;
|
||||
}
|
||||
Debug.LogError(base.name + " is missing a weapon reference.");
|
||||
}
|
||||
|
||||
// Token: 0x0600058F RID: 1423 RVA: 0x0001C580 File Offset: 0x0001A780
|
||||
[Token(Token = "0x600058F")]
|
||||
[Address(RVA = "0x207FE30", Offset = "0x207E830", VA = "0x18207FE30")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Weapon weapon = this.weapon;
|
||||
int num = 0;
|
||||
if (weapon != num)
|
||||
{
|
||||
Tool tool = this.weapon._tool;
|
||||
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.HAAIALDMMEL);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
||||
tool.PostPickupEvent = actionEvent;
|
||||
Tool tool2 = this.weapon._tool;
|
||||
ActionEvent<Tool> postReleaseEvent = tool2.PostReleaseEvent;
|
||||
Action<Tool> action2 = new Action(this.OIOCPLEKMEK);
|
||||
ActionEvent<Tool> actionEvent2 = postReleaseEvent - action2;
|
||||
tool2.PostReleaseEvent = actionEvent2;
|
||||
Tool tool3 = this.weapon._tool;
|
||||
ActionEvent<bool> visibilityChangeEvent = tool3.VisibilityChangeEvent;
|
||||
Action<bool> action3 = new Action(this.NBJCOKAKBFL);
|
||||
ActionEvent<bool> actionEvent3 = visibilityChangeEvent - action3;
|
||||
tool3.VisibilityChangeEvent = actionEvent3;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000590 RID: 1424 RVA: 0x0001C64C File Offset: 0x0001A84C
|
||||
[Token(Token = "0x6000590")]
|
||||
[Address(RVA = "0x207FC30", Offset = "0x207E630", VA = "0x18207FC30")]
|
||||
private void HAAIALDMMEL(Tool EGFEJGHDNAI)
|
||||
{
|
||||
int num = 0;
|
||||
this.PNEDEGGEAEO((WeaponFlashlightController.HIFKIMAHINN)num);
|
||||
}
|
||||
|
||||
// Token: 0x06000591 RID: 1425 RVA: 0x0001C664 File Offset: 0x0001A864
|
||||
[Token(Token = "0x6000591")]
|
||||
[Address(RVA = "0x207FDA0", Offset = "0x207E7A0", VA = "0x18207FDA0")]
|
||||
private void OIOCPLEKMEK(Tool EGFEJGHDNAI)
|
||||
{
|
||||
if (SingletonMonoBehaviour.Instance.GFMHKKKEOGE == PlatformManager.LDIIFDDCKCN.OculusQuest)
|
||||
{
|
||||
this.PNEDEGGEAEO(WeaponFlashlightController.HIFKIMAHINN.HIDDEN);
|
||||
return;
|
||||
}
|
||||
this.PNEDEGGEAEO((WeaponFlashlightController.HIFKIMAHINN)((uint)1));
|
||||
}
|
||||
|
||||
// Token: 0x06000592 RID: 1426 RVA: 0x0001C694 File Offset: 0x0001A894
|
||||
[Token(Token = "0x6000592")]
|
||||
[Address(RVA = "0x207FD40", Offset = "0x207E740", VA = "0x18207FD40")]
|
||||
private bool OCOECFPNEBO()
|
||||
{
|
||||
return SingletonMonoBehaviour.Instance.GFMHKKKEOGE != PlatformManager.LDIIFDDCKCN.OculusQuest;
|
||||
}
|
||||
|
||||
// Token: 0x06000593 RID: 1427 RVA: 0x0001C6B8 File Offset: 0x0001A8B8
|
||||
[Token(Token = "0x6000593")]
|
||||
[Address(RVA = "0x207FC40", Offset = "0x207E640", VA = "0x18207FC40")]
|
||||
private void NBJCOKAKBFL(bool NOCJEBBJIAN)
|
||||
{
|
||||
Weapon weapon = this.weapon;
|
||||
int num = 0;
|
||||
if (!(weapon != num))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!this.weapon._tool.FNFNLDBILFE)
|
||||
{
|
||||
if (!this.OCOECFPNEBO())
|
||||
{
|
||||
}
|
||||
Tool tool = this.weapon._tool;
|
||||
int num2 = 0;
|
||||
bool isVisible = tool.GDPKBEBEOBA;
|
||||
num2 += 2;
|
||||
}
|
||||
bool isVisible2 = this.weapon._tool.GDPKBEBEOBA;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06000594 RID: 1428 RVA: 0x0001C728 File Offset: 0x0001A928
|
||||
[Token(Token = "0x6000594")]
|
||||
[Address(RVA = "0x207FFE0", Offset = "0x207E9E0", VA = "0x18207FFE0")]
|
||||
private void PNEDEGGEAEO(WeaponFlashlightController.HIFKIMAHINN IONHBNLODDH)
|
||||
{
|
||||
if (Matchmaking.ELHFNPEDCCN == 0)
|
||||
{
|
||||
}
|
||||
bool flag = Matchmaking.ELHFNPEDCCN.<PGOEAIDCELB>k__BackingField == COBKKLOJNNE.THE_RISE_OF_JUMBOTRON;
|
||||
WeaponFlashlight aanambjbefp = this.AANAMBJBEFP;
|
||||
int num = 0;
|
||||
if (aanambjbefp == num && IONHBNLODDH != WeaponFlashlightController.HIFKIMAHINN.HIDDEN)
|
||||
{
|
||||
WeaponFlashlight weaponFlashlight = this.flashlightPrefab;
|
||||
Transform transform = this.flashlightRoot;
|
||||
WeaponFlashlight weaponFlashlight2 = global::UnityEngine.Object.Instantiate<WeaponFlashlight>(weaponFlashlight, transform);
|
||||
this.AANAMBJBEFP = weaponFlashlight2;
|
||||
}
|
||||
WeaponFlashlight aanambjbefp2 = this.AANAMBJBEFP;
|
||||
int num2 = 0;
|
||||
if (aanambjbefp2 != num2)
|
||||
{
|
||||
Light light = this.AANAMBJBEFP.light;
|
||||
bool flag2 = IONHBNLODDH == WeaponFlashlightController.HIFKIMAHINN.VISIBLE;
|
||||
light.enabled = flag2;
|
||||
GameObject gameObject = this.AANAMBJBEFP.lightShaftMeshes.gameObject;
|
||||
bool flag3 = IONHBNLODDH != WeaponFlashlightController.HIFKIMAHINN.HIDDEN;
|
||||
gameObject.SetActive(flag3);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000595 RID: 1429 RVA: 0x0001C7F0 File Offset: 0x0001A9F0
|
||||
[Token(Token = "0x6000595")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public WeaponFlashlightController()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040004D1 RID: 1233
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40004D1")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
|
||||
private Weapon weapon;
|
||||
|
||||
// Token: 0x040004D2 RID: 1234
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40004D2")]
|
||||
[SerializeField]
|
||||
private WeaponFlashlight flashlightPrefab;
|
||||
|
||||
// Token: 0x040004D3 RID: 1235
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40004D3")]
|
||||
[SerializeField]
|
||||
private Transform flashlightRoot;
|
||||
|
||||
// Token: 0x040004D4 RID: 1236
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40004D4")]
|
||||
private WeaponFlashlight AANAMBJBEFP;
|
||||
|
||||
// Token: 0x020000D3 RID: 211
|
||||
[Token(Token = "0x20000D3")]
|
||||
private enum HIFKIMAHINN
|
||||
{
|
||||
// Token: 0x040004D6 RID: 1238
|
||||
[Token(Token = "0x40004D6")]
|
||||
VISIBLE,
|
||||
// Token: 0x040004D7 RID: 1239
|
||||
[Token(Token = "0x40004D7")]
|
||||
MESHES_VISIBLE,
|
||||
// Token: 0x040004D8 RID: 1240
|
||||
[Token(Token = "0x40004D8")]
|
||||
HIDDEN
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user