This commit is contained in:
Oscar
2025-05-28 20:21:58 +03:00
parent 77c1704cd6
commit a6f2e43c49
35 changed files with 1310 additions and 132 deletions

View File

@@ -6,10 +6,9 @@ public sealed partial class Dedugan
{
if ( Network.IsOwner )
{
// IsDancing = Input.Down( "Dance" );
IsDancing = Input.Down( "Dance" );
}
Log.Info(IsDancing);
Renderer.Set( "test_dance", IsDancing );
}
}

View File

@@ -4,6 +4,8 @@ public sealed class RagdollController : Component
[Group("Setup"), Order(-100), Property] public ModelPhysics bodyPhysics { get; set; }
[Group("Setup"), Order(-100), Property] public SkinnedModelRenderer bodyRenderer { get; set; }
[Group("Config"), Order(0), Property] public bool isLocked { get; set; }
// [Property] public Collider Collider;
[Sync]
public new bool Enabled
@@ -14,6 +16,7 @@ public sealed class RagdollController : Component
bodyPhysics.Enabled = value;
bodyPhysics.MotionEnabled = value;
bodyRenderer.UseAnimGraph = !value;
// Collider.Enabled = !value;
if ( !value )
{
@@ -23,6 +26,13 @@ public sealed class RagdollController : Component
}
}
// protected override void OnStart()
// {
// Collider = GetComponent<Collider>();
//
// Log.Info(Collider.Enabled);
// }
protected override void OnUpdate()
{
if ( Network.IsOwner )