Admin smite: Homing rods. (#40246)

* add homing rod support

* oop

* speed betterer

* commentia
This commit is contained in:
IProduceWidgets
2025-12-29 11:39:12 -06:00
committed by Vanessa
parent ecec1e3093
commit 233d9162e8
4 changed files with 87 additions and 3 deletions
@@ -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);
}
}
}