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: 0x02002B33 RID: 11059
|
|
[Token(Token = "0x2002B33")]
|
|
[CreateAssetMenu]
|
|
public class MountedGunVRController : VRToolController
|
|
{
|
|
// Token: 0x06012749 RID: 75593 RVA: 0x00432300 File Offset: 0x00430500
|
|
[Token(Token = "0x6012749")]
|
|
[Address(RVA = "0x14BFC80", Offset = "0x14BEC80", VA = "0x1814BFC80", 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: 0x0601274A RID: 75594 RVA: 0x0043232C File Offset: 0x0043052C
|
|
[Token(Token = "0x601274A")]
|
|
[Address(RVA = "0x14BF8D0", Offset = "0x14BE8D0", VA = "0x1814BF8D0", 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: 0x0601274B RID: 75595 RVA: 0x004323B4 File Offset: 0x004305B4
|
|
[Token(Token = "0x601274B")]
|
|
[Address(RVA = "0x14BF500", Offset = "0x14BE500", VA = "0x1814BF500", 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: 0x0601274C RID: 75596 RVA: 0x0043247C File Offset: 0x0043067C
|
|
[Token(Token = "0x601274C")]
|
|
[Address(RVA = "0x14BF7F0", Offset = "0x14BE7F0", VA = "0x1814BF7F0", 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: 0x0601274D RID: 75597 RVA: 0x004324C8 File Offset: 0x004306C8
|
|
[Token(Token = "0x601274D")]
|
|
[Address(RVA = "0x14BFB70", Offset = "0x14BEB70", VA = "0x1814BFB70")]
|
|
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: 0x0601274E RID: 75598 RVA: 0x00432530 File Offset: 0x00430730
|
|
[Token(Token = "0x601274E")]
|
|
[Address(RVA = "0x14BFA90", Offset = "0x14BEA90", VA = "0x1814BFA90")]
|
|
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: 0x0601274F RID: 75599 RVA: 0x0043257C File Offset: 0x0043077C
|
|
[Token(Token = "0x601274F")]
|
|
[Address(RVA = "0x14BCDB0", Offset = "0x14BBDB0", VA = "0x1814BCDB0")]
|
|
public MountedGunVRController()
|
|
{
|
|
}
|
|
}
|
|
}
|