151 lines
5.6 KiB
C#
151 lines
5.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Inputs;
|
|
using RecRoom.Tools.Weapons;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools
|
|
{
|
|
// Token: 0x02002A4A RID: 10826
|
|
[Token(Token = "0x2002A4A")]
|
|
[CreateAssetMenu]
|
|
public class MountedGunVRController : VRToolController
|
|
{
|
|
// Token: 0x0601230D RID: 74509 RVA: 0x00428678 File Offset: 0x00426878
|
|
[Token(Token = "0x601230D")]
|
|
[Address(RVA = "0x92AC40", Offset = "0x929A40", VA = "0x18092AC40", Slot = "4")]
|
|
public override bool JDHEFJIPEKN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
if (!EGFEJGHDNAI.<BIPMAHKMNKF>k__BackingField)
|
|
{
|
|
}
|
|
Player <OKDFEPHLKCB>k__BackingField = EGFEJGHDNAI.<OKDFEPHLKCB>k__BackingField;
|
|
return IEKDDPPNFPF == <OKDFEPHLKCB>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601230E RID: 74510 RVA: 0x004286A4 File Offset: 0x004268A4
|
|
[Token(Token = "0x601230E")]
|
|
[Address(RVA = "0x92A890", Offset = "0x929690", VA = "0x18092A890", Slot = "5")]
|
|
public override void DJFDPJKOGMJ(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler KBCFABMADJJ, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
SwivelToolHandle component = EGFEJGHDNAI.GetComponent<SwivelToolHandle>();
|
|
AutomaticGun automaticGun = this.EGMHCIKMGOF(component);
|
|
int num = 0;
|
|
if (!(automaticGun == num))
|
|
{
|
|
if (NetworkedSingletonMonoBehaviour.FFNIFALJLDD)
|
|
{
|
|
TeamColorRenderer teamColor = automaticGun._teamColor;
|
|
GameTeamManager teamManager = NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.teamManager;
|
|
AGAJMBPABDL photonPlayer = IEKDDPPNFPF.DBAJDHGDPOL;
|
|
CGLKOJIMDIH playerTeam = teamManager.GetPlayerTeam(photonPlayer);
|
|
}
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = EGFEJGHDNAI.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.ENKFCEDEHLC);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(postReleaseEvent, action);
|
|
EGFEJGHDNAI.PostReleaseEvent = mfbglihgcgo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601230F RID: 74511 RVA: 0x0042872C File Offset: 0x0042692C
|
|
[Token(Token = "0x601230F")]
|
|
[Address(RVA = "0x92A4C0", Offset = "0x9292C0", VA = "0x18092A4C0", Slot = "7")]
|
|
public override bool BALOKJMBNIN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
SwivelToolHandle component = EGFEJGHDNAI.GetComponent<SwivelToolHandle>();
|
|
AutomaticGun automaticGun = this.EGMHCIKMGOF(component);
|
|
int num = 0;
|
|
if (!(automaticGun == num))
|
|
{
|
|
SphericalConstraintRigidbodyPickup component2 = component.GetComponent<SphericalConstraintRigidbodyPickup>();
|
|
RigidbodyEx rigidbodyEx = component._tool.rigidbodyEx;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
float sphereRadius = component2.sphereRadius;
|
|
float num2;
|
|
if (num2 <= sphereRadius)
|
|
{
|
|
if (!EGFEJGHDNAI.<BIPMAHKMNKF>k__BackingField || z2 != 0f)
|
|
{
|
|
Tool tool = automaticGun._tool;
|
|
automaticGun.OnInputUp(tool);
|
|
Tool tool2 = automaticGun._tool;
|
|
automaticGun.OnInputDown(tool2);
|
|
}
|
|
return EGFEJGHDNAI.<BIPMAHKMNKF>k__BackingField;
|
|
}
|
|
Tool tool3 = automaticGun._tool;
|
|
automaticGun.OnInputUp(tool3);
|
|
float z3 = Vector3.zero.z;
|
|
float z4 = Vector3.zero.z;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012310 RID: 74512 RVA: 0x004287F4 File Offset: 0x004269F4
|
|
[Token(Token = "0x6012310")]
|
|
[Address(RVA = "0x92A7B0", Offset = "0x9295B0", VA = "0x18092A7B0", Slot = "6")]
|
|
public override void BDMHMGGPNME(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
int num = 0;
|
|
if (!(EGFEJGHDNAI == num))
|
|
{
|
|
SwivelToolHandle component = EGFEJGHDNAI.GetComponent<SwivelToolHandle>();
|
|
AutomaticGun automaticGun = this.EGMHCIKMGOF(component);
|
|
int num2 = 0;
|
|
if (!(automaticGun == num2))
|
|
{
|
|
Tool tool = automaticGun._tool;
|
|
automaticGun.OnInputUp(tool);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012311 RID: 74513 RVA: 0x00428840 File Offset: 0x00426A40
|
|
[Token(Token = "0x6012311")]
|
|
[Address(RVA = "0x92AB30", Offset = "0x929930", VA = "0x18092AB30")]
|
|
private void ENKFCEDEHLC(Tool ENMHKAFEGCI)
|
|
{
|
|
MFBGLIHGCGO<Tool> postReleaseEvent = ENMHKAFEGCI.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.ENKFCEDEHLC);
|
|
MFBGLIHGCGO<Tool> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(postReleaseEvent, action);
|
|
ENMHKAFEGCI.PostReleaseEvent = mfbglihgcgo;
|
|
SwivelToolHandle component = ENMHKAFEGCI.GetComponent<SwivelToolHandle>();
|
|
AutomaticGun automaticGun = this.EGMHCIKMGOF(component);
|
|
int num = 0;
|
|
if (automaticGun != num)
|
|
{
|
|
Tool tool = automaticGun._tool;
|
|
automaticGun.OnInputUp(tool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012312 RID: 74514 RVA: 0x004288A8 File Offset: 0x00426AA8
|
|
[Token(Token = "0x6012312")]
|
|
[Address(RVA = "0x92AA50", Offset = "0x929850", VA = "0x18092AA50")]
|
|
private AutomaticGun EGMHCIKMGOF(SwivelToolHandle PKMINBNFPBJ)
|
|
{
|
|
int num = 0;
|
|
if (!(PKMINBNFPBJ == num))
|
|
{
|
|
Tool nmpihkpmflm = PKMINBNFPBJ._tool.NMPIHKPMFLM;
|
|
int num2 = 0;
|
|
if (!(nmpihkpmflm == num2))
|
|
{
|
|
return PKMINBNFPBJ._tool.NMPIHKPMFLM.GetComponent<AutomaticGun>();
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06012313 RID: 74515 RVA: 0x004288F4 File Offset: 0x00426AF4
|
|
[Token(Token = "0x6012313")]
|
|
[Address(RVA = "0x927CC0", Offset = "0x926AC0", VA = "0x180927CC0")]
|
|
public MountedGunVRController()
|
|
{
|
|
}
|
|
}
|
|
}
|