Files
gm_construct_port/code/entities/WheelEntity.cs
2021-08-05 17:54:51 +03:00

26 lines
364 B
C#

using Sandbox;
using Sandbox.Joints;
[Library( "ent_wheel" )]
public partial class WheelEntity : Prop
{
public RevoluteJoint Joint;
protected override void OnDestroy()
{
base.OnDestroy();
if ( Joint.IsValid )
{
Joint.Remove();
}
}
protected override void UpdatePropData( Model model )
{
base.UpdatePropData( model );
Health = -1;
}
}