mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 02:49:23 +00:00
Added a unity editor script to toggle ragdoll via animation on your avatar
This commit is contained in:
parent
76f9244d9c
commit
e426418806
6 changed files with 39 additions and 0 deletions
|
@ -3,7 +3,9 @@ using ABI_RC.Core.InteractionSystem;
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Systems.IK.SubSystems;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using ABI_RC.Core.Util.AssetFiltering;
|
||||
|
||||
namespace ml_prm
|
||||
{
|
||||
|
@ -46,6 +48,10 @@ namespace ml_prm
|
|||
null
|
||||
);
|
||||
|
||||
// Whitelist the toggle script
|
||||
var l_localComponentWhitelist = typeof(SharedFilter).GetField("_localComponentWhitelist", BindingFlags.NonPublic | BindingFlags.Static)!.GetValue(null) as HashSet<Type>;
|
||||
l_localComponentWhitelist!.Add(typeof(RagdollToggle));
|
||||
|
||||
MelonLoader.MelonCoroutines.Start(WaitForLocalPlayer());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue