m
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Inputs;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Tools
|
||||
{
|
||||
// Token: 0x02002B34 RID: 11060
|
||||
[Token(Token = "0x2002B34")]
|
||||
[CreateAssetMenu]
|
||||
public class PoolCueVRController : VRToolController
|
||||
{
|
||||
// Token: 0x06012750 RID: 75600 RVA: 0x00432590 File Offset: 0x00430790
|
||||
[Token(Token = "0x6012750")]
|
||||
[Address(RVA = "0x14C3280", Offset = "0x14C2280", VA = "0x1814C3280", 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: 0x06012751 RID: 75601 RVA: 0x004325E4 File Offset: 0x004307E4
|
||||
[Token(Token = "0x6012751")]
|
||||
[Address(RVA = "0x14C31B0", Offset = "0x14C21B0", VA = "0x1814C31B0", 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;
|
||||
MFBGLIHGCGO<float> ballHit = component.BallHit;
|
||||
Action<float> action = new Action(this.KGPNEGPLJGC);
|
||||
MFBGLIHGCGO<float> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(ballHit, action);
|
||||
component.BallHit = mfbglihgcgo;
|
||||
}
|
||||
|
||||
// Token: 0x06012752 RID: 75602 RVA: 0x00432638 File Offset: 0x00430838
|
||||
[Token(Token = "0x6012752")]
|
||||
[Address(RVA = "0x14C30D0", Offset = "0x14C20D0", VA = "0x1814C30D0", 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;
|
||||
MFBGLIHGCGO<float> ballHit = poolCue2.BallHit;
|
||||
Action<float> action = new Action(this.KGPNEGPLJGC);
|
||||
MFBGLIHGCGO<float> mfbglihgcgo = MFBGLIHGCGO.GMNMHGMFGOL(ballHit, action);
|
||||
poolCue2.BallHit = mfbglihgcgo;
|
||||
}
|
||||
int num2 = 0;
|
||||
this.cue = num2;
|
||||
this.shootingHand = num2;
|
||||
this.aimingHand = num2;
|
||||
}
|
||||
|
||||
// Token: 0x06012753 RID: 75603 RVA: 0x004326A8 File Offset: 0x004308A8
|
||||
[Token(Token = "0x6012753")]
|
||||
[Address(RVA = "0x14C2EE0", Offset = "0x14C1EE0", VA = "0x1814C2EE0", Slot = "7")]
|
||||
public override bool BALOKJMBNIN(VRPlayerController FINBOONIGDO, Player IEKDDPPNFPF, Tool EGFEJGHDNAI, PlayerHand MMPLJBIDOPO, PlayerHand EEGCGDDDIED, VRInputHandler IBKAOIMGPMM, VRInputHandler GOOMFIBIGIL)
|
||||
{
|
||||
PoolCue poolCue = this.cue;
|
||||
if (poolCue.aimGrip.<PKJDJOKMPPN>k__BackingField)
|
||||
{
|
||||
PoolCue.EBBMJPHAEME currentState = poolCue.GENECNFMDHJ;
|
||||
if (currentState == PoolCue.EBBMJPHAEME.Aiming)
|
||||
{
|
||||
PlayerHand playerHand = this.shootingHand;
|
||||
PoolCue poolCue2 = 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: 0x06012754 RID: 75604 RVA: 0x0043274C File Offset: 0x0043094C
|
||||
[Token(Token = "0x6012754")]
|
||||
[Address(RVA = "0x14C33A0", Offset = "0x14C23A0", VA = "0x1814C33A0")]
|
||||
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: 0x06012755 RID: 75605 RVA: 0x00432794 File Offset: 0x00430994
|
||||
[Token(Token = "0x6012755")]
|
||||
[Address(RVA = "0x14BCDB0", Offset = "0x14BBDB0", VA = "0x1814BCDB0")]
|
||||
public PoolCueVRController()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400BDCD RID: 48589
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400BDCD")]
|
||||
private PoolCue cue;
|
||||
|
||||
// Token: 0x0400BDCE RID: 48590
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400BDCE")]
|
||||
private PlayerHand shootingHand;
|
||||
|
||||
// Token: 0x0400BDCF RID: 48591
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400BDCF")]
|
||||
private PlayerHand aimingHand;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user