Admin smite: Homing rods. (#40246)

* add homing rod support

* oop

* speed betterer

* commentia
This commit is contained in:
IProduceWidgets
2025-09-25 17:43:53 -04:00
committed by GitHub
parent a6041faf2c
commit 9fa17c51bd
4 changed files with 87 additions and 3 deletions

View File

@@ -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);
}
}
}