146 lines
5.2 KiB
C#
146 lines
5.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Inputs;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Tools
|
|
{
|
|
// Token: 0x02002591 RID: 9617
|
|
[Token(Token = "0x2002591")]
|
|
[CreateAssetMenu]
|
|
[StructLayout(3)]
|
|
public class PoolCueVRController : VRToolController
|
|
{
|
|
// Token: 0x06010A70 RID: 68208 RVA: 0x003EA4F8 File Offset: 0x003E86F8
|
|
[Token(Token = "0x6010A70")]
|
|
[Address(RVA = "0x12C67D0", Offset = "0x12C51D0", VA = "0x1812C67D0", Slot = "4")]
|
|
public override bool JDHEFJIPEKN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
PoolCue poolCue = this.cue;
|
|
int num = 0;
|
|
if (!(poolCue != num))
|
|
{
|
|
PoolCue component = EGFEJGHDNAI.GetComponent<PoolCue>();
|
|
int num2 = 0;
|
|
if (component != num2 && EGFEJGHDNAI.<BIPMAHKMNKF>k__BackingField)
|
|
{
|
|
return EGFEJGHDNAI.<OKDFEPHLKCB>k__BackingField == IEKDDPPNFPF;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06010A71 RID: 68209 RVA: 0x003EA54C File Offset: 0x003E874C
|
|
[Token(Token = "0x6010A71")]
|
|
[Address(RVA = "0x12C66E0", Offset = "0x12C50E0", VA = "0x1812C66E0", Slot = "5")]
|
|
public override void DJFDPJKOGMJ(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
this.shootingHand = 0;
|
|
this.aimingHand = 0;
|
|
PoolCue component = EGFEJGHDNAI.GetComponent<PoolCue>();
|
|
this.cue = component;
|
|
PoolCueAimGrip componentInChildren = component.GetComponentInChildren<PoolCueAimGrip>();
|
|
PoolCue poolCue = this.cue;
|
|
this.aimGrip = componentInChildren;
|
|
ActionEvent<float> ballHit = poolCue.BallHit;
|
|
Action<float> action = new Action(this.KGPNEGPLJGC);
|
|
ActionEvent<float> actionEvent = ballHit + action;
|
|
poolCue.BallHit = actionEvent;
|
|
}
|
|
|
|
// Token: 0x06010A72 RID: 68210 RVA: 0x003EA5B8 File Offset: 0x003E87B8
|
|
[Token(Token = "0x6010A72")]
|
|
[Address(RVA = "0x12C65F0", Offset = "0x12C4FF0", VA = "0x1812C65F0", Slot = "6")]
|
|
public override void BDMHMGGPNME(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
PoolCue poolCue = this.cue;
|
|
int num = 0;
|
|
if (poolCue != num)
|
|
{
|
|
PoolCue poolCue2 = this.cue;
|
|
ActionEvent<float> ballHit = poolCue2.BallHit;
|
|
Action<float> action = new Action(this.KGPNEGPLJGC);
|
|
ActionEvent<float> actionEvent = ballHit - action;
|
|
poolCue2.BallHit = actionEvent;
|
|
}
|
|
int num2 = 0;
|
|
this.cue = num2;
|
|
this.aimGrip = num2;
|
|
this.shootingHand = num2;
|
|
this.aimingHand = num2;
|
|
}
|
|
|
|
// Token: 0x06010A73 RID: 68211 RVA: 0x003EA630 File Offset: 0x003E8830
|
|
[Token(Token = "0x6010A73")]
|
|
[Address(RVA = "0x12C6410", Offset = "0x12C4E10", VA = "0x1812C6410", Slot = "7")]
|
|
public override bool BALOKJMBNIN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
|
{
|
|
if (this.aimGrip.<PKJDJOKMPPN>k__BackingField)
|
|
{
|
|
PoolCue.EBBMJPHAEME currentState = this.cue.GENECNFMDHJ;
|
|
if (currentState == PoolCue.EBBMJPHAEME.Aiming)
|
|
{
|
|
PlayerHand playerHand = this.shootingHand;
|
|
PoolCue poolCue = this.cue;
|
|
Transform transform = playerHand.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Transform transform2 = this.cue.transform;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Transform transform3 = this.cue.transform;
|
|
this.cue.GENECNFMDHJ = PoolCue.EBBMJPHAEME.Shooting;
|
|
this.cue.<EHBEAFCPIEH>k__BackingField = (PoolCue.MMDPGEDMFLF)((ulong)0L);
|
|
return true;
|
|
}
|
|
if (currentState == PoolCue.EBBMJPHAEME.Shooting)
|
|
{
|
|
this.cue.GENECNFMDHJ = PoolCue.EBBMJPHAEME.Aiming;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06010A74 RID: 68212 RVA: 0x003EA6D4 File Offset: 0x003E88D4
|
|
[Token(Token = "0x6010A74")]
|
|
[Address(RVA = "0x12C68F0", Offset = "0x12C52F0", VA = "0x1812C68F0")]
|
|
private void KGPNEGPLJGC(float CDFHDACBFKN)
|
|
{
|
|
PlayerHand playerHand = this.shootingHand;
|
|
float num = Mathf.Clamp01(CDFHDACBFKN);
|
|
playerHand.Vibrate(200, num);
|
|
PlayerHand playerHand2 = this.aimingHand;
|
|
float num2 = Mathf.Clamp01(CDFHDACBFKN);
|
|
playerHand2.Vibrate(20, CDFHDACBFKN);
|
|
}
|
|
|
|
// Token: 0x06010A75 RID: 68213 RVA: 0x003EA71C File Offset: 0x003E891C
|
|
[Token(Token = "0x6010A75")]
|
|
[Address(RVA = "0x12C1100", Offset = "0x12BFB00", VA = "0x1812C1100")]
|
|
public PoolCueVRController()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400B11F RID: 45343
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B11F")]
|
|
private PoolCue cue;
|
|
|
|
// Token: 0x0400B120 RID: 45344
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400B120")]
|
|
private PoolCueAimGrip aimGrip;
|
|
|
|
// Token: 0x0400B121 RID: 45345
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400B121")]
|
|
private PlayerHand shootingHand;
|
|
|
|
// Token: 0x0400B122 RID: 45346
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400B122")]
|
|
private PlayerHand aimingHand;
|
|
}
|
|
}
|