From a7d29a14978c334c4e9d71ba7fa61cce22b4566c Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 6 Mar 2021 13:15:15 +0100 Subject: [PATCH] Fixes emitters' fire rotation and emitter bolts being sideways. --- .../GameObjects/Components/Singularity/EmitterComponent.cs | 4 ++-- Resources/Changelog/Parts/emitter_rotation.yml | 4 ++++ Resources/Changelog/Parts/parts_here.txt | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Resources/Changelog/Parts/emitter_rotation.yml diff --git a/Content.Server/GameObjects/Components/Singularity/EmitterComponent.cs b/Content.Server/GameObjects/Components/Singularity/EmitterComponent.cs index 64a7f52f86..a92100e424 100644 --- a/Content.Server/GameObjects/Components/Singularity/EmitterComponent.cs +++ b/Content.Server/GameObjects/Components/Singularity/EmitterComponent.cs @@ -238,9 +238,9 @@ namespace Content.Server.GameObjects.Components.Singularity physicsComponent .EnsureController() - .LinearVelocity = Owner.Transform.WorldRotation.ToVec() * 20f; + .LinearVelocity = Owner.Transform.WorldRotation.ToWorldVec() * 20f; - projectile.Transform.LocalRotation = Owner.Transform.WorldRotation; + projectile.Transform.WorldRotation = Owner.Transform.WorldRotation; // TODO: Move to projectile's code. Timer.Spawn(3000, () => projectile.Delete()); diff --git a/Resources/Changelog/Parts/emitter_rotation.yml b/Resources/Changelog/Parts/emitter_rotation.yml new file mode 100644 index 0000000000..955ef440ad --- /dev/null +++ b/Resources/Changelog/Parts/emitter_rotation.yml @@ -0,0 +1,4 @@ +author: Zumorica +changes: + - type: Fix + message: Fixes emitters shooting sideway bolts and in the wrong direction. diff --git a/Resources/Changelog/Parts/parts_here.txt b/Resources/Changelog/Parts/parts_here.txt index e69de29bb2..0cd4a0cc29 100644 --- a/Resources/Changelog/Parts/parts_here.txt +++ b/Resources/Changelog/Parts/parts_here.txt @@ -0,0 +1,6 @@ +The part YAML takes the following format: + +author: Your_Name_Here +changes: + - type: Fix # One of the following: Add, Remove, Tweak, Fix + message: Your change here!