Fixes emitters' fire rotation and emitter bolts being sideways.

This commit is contained in:
Vera Aguilera Puerto
2021-03-06 13:15:15 +01:00
parent 752d4ed03e
commit a7d29a1497
3 changed files with 12 additions and 2 deletions

View File

@@ -238,9 +238,9 @@ namespace Content.Server.GameObjects.Components.Singularity
physicsComponent physicsComponent
.EnsureController<BulletController>() .EnsureController<BulletController>()
.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. // TODO: Move to projectile's code.
Timer.Spawn(3000, () => projectile.Delete()); Timer.Spawn(3000, () => projectile.Delete());

View File

@@ -0,0 +1,4 @@
author: Zumorica
changes:
- type: Fix
message: Fixes emitters shooting sideway bolts and in the wrong direction.

View File

@@ -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!