scripts
This commit is contained in:
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using Photon.Realtime;
|
||||
using RecRoom.Inputs;
|
||||
using RecRoom.Tools.Weapons;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Tools
|
||||
{
|
||||
// Token: 0x02002590 RID: 9616
|
||||
[Token(Token = "0x2002590")]
|
||||
[CreateAssetMenu]
|
||||
[StructLayout(3)]
|
||||
public class MountedGunVRController : VRToolController
|
||||
{
|
||||
// Token: 0x06010A69 RID: 68201 RVA: 0x003EA268 File Offset: 0x003E8468
|
||||
[Token(Token = "0x6010A69")]
|
||||
[Address(RVA = "0x12C3AE0", Offset = "0x12C24E0", VA = "0x1812C3AE0", Slot = "4")]
|
||||
public override bool JDHEFJIPEKN(VRPlayerController FINBOONIGDO, global::Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
||||
{
|
||||
if (!EGFEJGHDNAI.<BIPMAHKMNKF>k__BackingField)
|
||||
{
|
||||
}
|
||||
global::Player <OKDFEPHLKCB>k__BackingField = EGFEJGHDNAI.<OKDFEPHLKCB>k__BackingField;
|
||||
return IEKDDPPNFPF == <OKDFEPHLKCB>k__BackingField;
|
||||
}
|
||||
|
||||
// Token: 0x06010A6A RID: 68202 RVA: 0x003EA294 File Offset: 0x003E8494
|
||||
[Token(Token = "0x6010A6A")]
|
||||
[Address(RVA = "0x12C3730", Offset = "0x12C2130", VA = "0x1812C3730", Slot = "5")]
|
||||
public override void DJFDPJKOGMJ(VRPlayerController FINBOONIGDO, global::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;
|
||||
Photon.Realtime.Player photonPlayer = IEKDDPPNFPF.DBAJDHGDPOL;
|
||||
CGLKOJIMDIH playerTeam = teamManager.GetPlayerTeam(photonPlayer);
|
||||
}
|
||||
ActionEvent<Tool> postReleaseEvent = EGFEJGHDNAI.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.ENKFCEDEHLC);
|
||||
ActionEvent<Tool> actionEvent = postReleaseEvent + action;
|
||||
EGFEJGHDNAI.PostReleaseEvent = actionEvent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010A6B RID: 68203 RVA: 0x003EA31C File Offset: 0x003E851C
|
||||
[Token(Token = "0x6010A6B")]
|
||||
[Address(RVA = "0x12C3360", Offset = "0x12C1D60", VA = "0x1812C3360", Slot = "7")]
|
||||
public override bool BALOKJMBNIN(VRPlayerController FINBOONIGDO, global::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: 0x06010A6C RID: 68204 RVA: 0x003EA3E4 File Offset: 0x003E85E4
|
||||
[Token(Token = "0x6010A6C")]
|
||||
[Address(RVA = "0x12C3650", Offset = "0x12C2050", VA = "0x1812C3650", Slot = "6")]
|
||||
public override void BDMHMGGPNME(VRPlayerController FINBOONIGDO, global::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: 0x06010A6D RID: 68205 RVA: 0x003EA430 File Offset: 0x003E8630
|
||||
[Token(Token = "0x6010A6D")]
|
||||
[Address(RVA = "0x12C39D0", Offset = "0x12C23D0", VA = "0x1812C39D0")]
|
||||
private void ENKFCEDEHLC(Tool ENMHKAFEGCI)
|
||||
{
|
||||
ActionEvent<Tool> postReleaseEvent = ENMHKAFEGCI.PostReleaseEvent;
|
||||
Action<Tool> action = new Action(this.ENKFCEDEHLC);
|
||||
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
||||
ENMHKAFEGCI.PostReleaseEvent = actionEvent;
|
||||
SwivelToolHandle component = ENMHKAFEGCI.GetComponent<SwivelToolHandle>();
|
||||
AutomaticGun automaticGun = this.EGMHCIKMGOF(component);
|
||||
int num = 0;
|
||||
if (automaticGun != num)
|
||||
{
|
||||
Tool tool = automaticGun._tool;
|
||||
automaticGun.OnInputUp(tool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06010A6E RID: 68206 RVA: 0x003EA498 File Offset: 0x003E8698
|
||||
[Token(Token = "0x6010A6E")]
|
||||
[Address(RVA = "0x12C38F0", Offset = "0x12C22F0", VA = "0x1812C38F0")]
|
||||
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: 0x06010A6F RID: 68207 RVA: 0x003EA4E4 File Offset: 0x003E86E4
|
||||
[Token(Token = "0x6010A6F")]
|
||||
[Address(RVA = "0x12C1100", Offset = "0x12BFB00", VA = "0x1812C1100")]
|
||||
public MountedGunVRController()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user