scripts
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x0200033E RID: 830
|
||||
[Token(Token = "0x200033E")]
|
||||
[StructLayout(3)]
|
||||
public class CollisionVibration : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06001923 RID: 6435 RVA: 0x00067C14 File Offset: 0x00065E14
|
||||
[Token(Token = "0x6001923")]
|
||||
[Address(RVA = "0x1B05830", Offset = "0x1B04230", VA = "0x181B05830")]
|
||||
private void OnCollisionEnter(Collision GBJHLKOJGPB)
|
||||
{
|
||||
int num = 0;
|
||||
Player player = GBJHLKOJGPB.PKPLHJFDDKE(num);
|
||||
Tool tool = GBJHLKOJGPB.AMKJBLIFHPB();
|
||||
int num2 = 0;
|
||||
if (!(player != num2))
|
||||
{
|
||||
int num3 = 0;
|
||||
if (!(tool != num3) || !tool.FNFNLDBILFE)
|
||||
{
|
||||
goto IL_A0;
|
||||
}
|
||||
Player owner = tool.BHNPNHMILIF;
|
||||
int num4 = 0;
|
||||
if (!(owner != num4))
|
||||
{
|
||||
goto IL_A0;
|
||||
}
|
||||
bool flag = tool.BHNPNHMILIF.leftHand.FEBAPKCNNDC == tool;
|
||||
Player owner2 = tool.BHNPNHMILIF;
|
||||
if (!flag)
|
||||
{
|
||||
if (!(owner2.rightHand.FEBAPKCNNDC == tool))
|
||||
{
|
||||
goto IL_A0;
|
||||
}
|
||||
Player owner3 = tool.BHNPNHMILIF;
|
||||
}
|
||||
}
|
||||
PlayerHand leftHand;
|
||||
if (num == 2 || num == 3)
|
||||
{
|
||||
leftHand = player.leftHand;
|
||||
}
|
||||
IL_A0:
|
||||
int num5 = 0;
|
||||
if (leftHand != num5)
|
||||
{
|
||||
leftHand.Vibrate(50, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001924 RID: 6436 RVA: 0x00067CE4 File Offset: 0x00065EE4
|
||||
[Token(Token = "0x6001924")]
|
||||
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
||||
public CollisionVibration()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user