Charm.cs

A small game component class that represents a Charm loadout item. It exposes a Rigidbody property and disables AutoSleep on its physics body in OnStart if the Rigidbody is set.

Native Interop
using Sandbox;

public class Charm : LoadoutItem
{
	[Property] public Rigidbody Rigidbody { get; set; }

	protected override void OnStart()
	{
		Rigidbody?.PhysicsBody.AutoSleep = false;
	}
}