mirror of
https://github.com/celisej567/gm_construct_port.git
synced 2026-01-07 14:10:26 +03:00
26 lines
364 B
C#
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;
|
|
}
|
|
}
|