scripts
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom;
|
||||
using RecRoom.Avatar.Outfit;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000349 RID: 841
|
||||
[Token(Token = "0x2000349")]
|
||||
[StructLayout(3)]
|
||||
public class GiftBoxItemContainer : SpawnedItemContainer
|
||||
{
|
||||
// Token: 0x0600195C RID: 6492 RVA: 0x00068BF0 File Offset: 0x00066DF0
|
||||
[Token(Token = "0x600195C")]
|
||||
[Address(RVA = "0x10186C0", Offset = "0x10170C0", VA = "0x1810186C0", Slot = "4")]
|
||||
public override void AttachTool(Tool EGFEJGHDNAI)
|
||||
{
|
||||
Transform transform = EGFEJGHDNAI.transform;
|
||||
base.AttachTool(EGFEJGHDNAI);
|
||||
Tool <MBFGOCOFHHM>k__BackingField = this.<MBFGOCOFHHM>k__BackingField;
|
||||
int num = 0;
|
||||
if (<MBFGOCOFHHM>k__BackingField != num)
|
||||
{
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = this.<MBFGOCOFHHM>k__BackingField.<FLFJCIPBAPA>k__BackingField;
|
||||
int num2 = 0;
|
||||
if (<FLFJCIPBAPA>k__BackingField != num2)
|
||||
{
|
||||
Tool <MBFGOCOFHHM>k__BackingField2 = this.<MBFGOCOFHHM>k__BackingField;
|
||||
ActionEvent<Tool> postPickupEvent = <MBFGOCOFHHM>k__BackingField2.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
||||
<MBFGOCOFHHM>k__BackingField2.PostPickupEvent = actionEvent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600195D RID: 6493 RVA: 0x00068C74 File Offset: 0x00066E74
|
||||
[Token(Token = "0x600195D")]
|
||||
[Address(RVA = "0x1018A10", Offset = "0x1017410", VA = "0x181018A10", Slot = "6")]
|
||||
public override void OnReleased(Tool EGFEJGHDNAI)
|
||||
{
|
||||
base.OnPickup(EGFEJGHDNAI);
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField;
|
||||
int num = 0;
|
||||
if (<FLFJCIPBAPA>k__BackingField != num && EGFEJGHDNAI.<FLFJCIPBAPA>k__BackingField.<MHCDCIGJNNA>k__BackingField)
|
||||
{
|
||||
OutfitTool component = EGFEJGHDNAI.GetComponent<OutfitTool>();
|
||||
int num2 = 0;
|
||||
if (component != num2)
|
||||
{
|
||||
int num3 = 0;
|
||||
EGFEJGHDNAI.AuthorityResetToLastSpawnPosition(num3 != 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600195E RID: 6494 RVA: 0x00068CD0 File Offset: 0x00066ED0
|
||||
[Token(Token = "0x600195E")]
|
||||
[Address(RVA = "0x1018830", Offset = "0x1017230", VA = "0x181018830")]
|
||||
private void MNCLFHBBPHB(Tool NBHJPDBHDHB)
|
||||
{
|
||||
int num = 0;
|
||||
if (NBHJPDBHDHB != num)
|
||||
{
|
||||
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = NBHJPDBHDHB.<FLFJCIPBAPA>k__BackingField;
|
||||
int num2 = 0;
|
||||
if (<FLFJCIPBAPA>k__BackingField != num2)
|
||||
{
|
||||
ActionEvent<Tool> postPickupEvent = NBHJPDBHDHB.PostPickupEvent;
|
||||
Action<Tool> action = new Action(this.MNCLFHBBPHB);
|
||||
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
||||
NBHJPDBHDHB.PostPickupEvent = actionEvent;
|
||||
Player <APAJHLAPLCB>k__BackingField = NBHJPDBHDHB.<FLFJCIPBAPA>k__BackingField.<APAJHLAPLCB>k__BackingField;
|
||||
int num3 = 0;
|
||||
if (<APAJHLAPLCB>k__BackingField != num3)
|
||||
{
|
||||
Transform transform = <APAJHLAPLCB>k__BackingField.<BBJNDCODHNJ>k__BackingField.transform;
|
||||
NBHJPDBHDHB.SetParentTransform(transform, true);
|
||||
Transform transform2 = NBHJPDBHDHB.transform;
|
||||
float hcgmbmleimn = this.HCGMBMLEIMN;
|
||||
transform2.SetLossyUniformScale(hcgmbmleimn);
|
||||
}
|
||||
NBHJPDBHDHB.SetUsingGravityRigidBody(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600195F RID: 6495 RVA: 0x00068D80 File Offset: 0x00066F80
|
||||
[Token(Token = "0x600195F")]
|
||||
[Address(RVA = "0x1018B00", Offset = "0x1017500", VA = "0x181018B00")]
|
||||
public GiftBoxItemContainer()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013A7 RID: 5031
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40013A7")]
|
||||
private float HCGMBMLEIMN = 1f;
|
||||
}
|
||||
Reference in New Issue
Block a user