mirror of
https://github.com/celisej567/gm_construct_port.git
synced 2026-09-19 20:11:46 +03:00
Add files via upload
This commit is contained in:
25
code/entities/WheelEntity.cs
Normal file
25
code/entities/WheelEntity.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user