Admin smite: Homing rods. (#40246)
* add homing rod support * oop * speed betterer * commentia
This commit is contained in:
@@ -101,5 +101,11 @@ public sealed class ChasingWalkSystem : VirtualController
|
||||
|
||||
_physics.SetLinearVelocity(uid, speed);
|
||||
_physics.SetBodyStatus(uid, physics, BodyStatus.InAir); //If this is not done, from the explosion up close, the tesla will "Fall" to the ground, and almost stop moving.
|
||||
|
||||
if (component.RotateWithImpulse)
|
||||
{
|
||||
var ang = speed.ToAngle() + Angle.FromDegrees(90); // we want "Up" to be forward, bullet convention.
|
||||
_transform.SetWorldRotation(uid, ang + component.RotationAngleOffset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user