Charm.cs

A small game component that represents a charm loadout item. It exposes a Rigidbody property and, on start, disables AutoSleep on its PhysicsBody if the Rigidbody is present.

using Sandbox;

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

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