oh dear
This commit is contained in:
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Inputs;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Tools
|
||||
{
|
||||
// Token: 0x02002A4B RID: 10827
|
||||
[Token(Token = "0x2002A4B")]
|
||||
[CreateAssetMenu]
|
||||
public class PoolCueVRController : VRToolController
|
||||
{
|
||||
// Token: 0x06012314 RID: 74516 RVA: 0x00428908 File Offset: 0x00426B08
|
||||
[Token(Token = "0x6012314")]
|
||||
[Address(RVA = "0x92E400", Offset = "0x92D200", VA = "0x18092E400", 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: 0x06012315 RID: 74517 RVA: 0x0042895C File Offset: 0x00426B5C
|
||||
[Token(Token = "0x6012315")]
|
||||
[Address(RVA = "0x92E310", Offset = "0x92D110", VA = "0x18092E310", 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;
|
||||
MFBGLIHGCGO<float> ballHit = poolCue.BallHit;
|
||||
Action<float> action = new Action(this.KGPNEGPLJGC);
|
||||
MFBGLIHGCGO<float> mfbglihgcgo = MFBGLIHGCGO.BPJDFPACLMK(ballHit, action);
|
||||
poolCue.BallHit = mfbglihgcgo;
|
||||
}
|
||||
|
||||
// Token: 0x06012316 RID: 74518 RVA: 0x004289C8 File Offset: 0x00426BC8
|
||||
[Token(Token = "0x6012316")]
|
||||
[Address(RVA = "0x92E220", Offset = "0x92D020", VA = "0x18092E220", 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.aimGrip = num2;
|
||||
this.shootingHand = num2;
|
||||
this.aimingHand = num2;
|
||||
}
|
||||
|
||||
// Token: 0x06012317 RID: 74519 RVA: 0x00428A40 File Offset: 0x00426C40
|
||||
[Token(Token = "0x6012317")]
|
||||
[Address(RVA = "0x92E040", Offset = "0x92CE40", VA = "0x18092E040", 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: 0x06012318 RID: 74520 RVA: 0x00428AE4 File Offset: 0x00426CE4
|
||||
[Token(Token = "0x6012318")]
|
||||
[Address(RVA = "0x92E520", Offset = "0x92D320", VA = "0x18092E520")]
|
||||
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: 0x06012319 RID: 74521 RVA: 0x00428B2C File Offset: 0x00426D2C
|
||||
[Token(Token = "0x6012319")]
|
||||
[Address(RVA = "0x927CC0", Offset = "0x926AC0", VA = "0x180927CC0")]
|
||||
public PoolCueVRController()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400BBBB RID: 48059
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400BBBB")]
|
||||
private PoolCue cue;
|
||||
|
||||
// Token: 0x0400BBBC RID: 48060
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400BBBC")]
|
||||
private PoolCueAimGrip aimGrip;
|
||||
|
||||
// Token: 0x0400BBBD RID: 48061
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400BBBD")]
|
||||
private PlayerHand shootingHand;
|
||||
|
||||
// Token: 0x0400BBBE RID: 48062
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400BBBE")]
|
||||
private PlayerHand aimingHand;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user