Allow editing angle of the fired projectile (#33254)
Add Angle datafield to `ProjectileComponent`. It allows to change the angle of the fired projectile
This commit is contained in:
@@ -429,7 +429,7 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
Projectiles.SetShooter(uid, projectile, user ?? gunUid);
|
||||
projectile.Weapon = gunUid;
|
||||
|
||||
TransformSystem.SetWorldRotation(uid, direction.ToWorldAngle());
|
||||
TransformSystem.SetWorldRotation(uid, direction.ToWorldAngle() + projectile.Angle);
|
||||
}
|
||||
|
||||
protected abstract void Popup(string message, EntityUid? uid, EntityUid? user);
|
||||
|
||||
Reference in New Issue
Block a user