mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Fix for latest nightly build (27.07.2025)
This commit is contained in:
parent
713d89565b
commit
6b0399f182
14 changed files with 102 additions and 105 deletions
|
@ -1,8 +1,4 @@
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Util.AssetFiltering;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using ABI_RC.Core.Util.AssetFiltering;
|
||||
|
||||
namespace ml_prm
|
||||
{
|
||||
|
|
|
@ -203,7 +203,7 @@ namespace ml_prm
|
|||
m_attachedPointer = p_pointer;
|
||||
|
||||
GameObject l_attachPoint = new GameObject("[AttachPoint]");
|
||||
l_attachPoint.layer = CVRLayers.PlayerLocal;
|
||||
l_attachPoint.layer = CVRLayers.PlayerNetwork;
|
||||
m_attachTransform = l_attachPoint.transform;
|
||||
m_attachTransform.parent = p_pointer.transform;
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ namespace ml_prm
|
|||
|
||||
void Start()
|
||||
{
|
||||
this.gameObject.layer = CVRLayers.PlayerLocal;
|
||||
this.gameObject.layer = CVRLayers.PlayerClone;
|
||||
|
||||
m_physicsMaterial = new PhysicMaterial("Ragdoll");
|
||||
m_physicsMaterial.dynamicFriction = c_defaultFriction;
|
||||
|
@ -311,7 +311,7 @@ namespace ml_prm
|
|||
BipedRagdollReferences l_avatarReferences = BipedRagdollReferences.FromAvatar(PlayerSetup.Instance.Animator);
|
||||
|
||||
m_puppetRoot = new GameObject("Root").transform;
|
||||
m_puppetRoot.gameObject.layer = CVRLayers.PlayerLocal;
|
||||
m_puppetRoot.gameObject.layer = CVRLayers.PlayerClone;
|
||||
m_puppetRoot.parent = m_puppet;
|
||||
m_puppetRoot.position = m_avatarTransform.position;
|
||||
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
||||
|
@ -775,7 +775,7 @@ namespace ml_prm
|
|||
static Transform CloneTransform(Transform p_source, Transform p_parent, string p_name)
|
||||
{
|
||||
Transform l_target = new GameObject(p_name).transform;
|
||||
l_target.gameObject.layer = CVRLayers.PlayerLocal;
|
||||
l_target.gameObject.layer = CVRLayers.PlayerClone;
|
||||
l_target.parent = p_parent;
|
||||
p_source.CopyGlobal(l_target);
|
||||
return l_target;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue