PA fixes.
Improved unlit layers for control box. Fixed rotation bugs. Fixes #3479
@@ -454,7 +454,7 @@ namespace Content.Server.GameObjects.Components.PA
|
||||
|
||||
Vector2i RotateOffset(in Vector2i vec)
|
||||
{
|
||||
var rot = new Angle(Owner.Transform.LocalRotation + Math.PI / 2);
|
||||
var rot = new Angle(Owner.Transform.LocalRotation);
|
||||
return (Vector2i) rot.RotateVec(vec);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,9 +82,9 @@ namespace Content.Server.GameObjects.Components.PA
|
||||
|
||||
physicsComponent
|
||||
.EnsureController<BulletController>()
|
||||
.LinearVelocity = angle.ToVec() * 20f;
|
||||
.LinearVelocity = angle.ToWorldVec() * 20f;
|
||||
|
||||
Owner.Transform.LocalRotation = new Angle(angle + Angle.FromDegrees(180));
|
||||
Owner.Transform.LocalRotation = angle;
|
||||
Timer.Spawn(3000, () => Owner.Delete());
|
||||
}
|
||||
}
|
||||
|
||||
4
Resources/Changelog/Parts/pa_fix.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: PJB
|
||||
changes:
|
||||
- type: Fix
|
||||
message: Fixed the Particle Accelerator
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -32,7 +32,13 @@
|
||||
},
|
||||
{
|
||||
"name": "unlitp3",
|
||||
"directions": 4
|
||||
"directions": 4,
|
||||
"delays": [
|
||||
[0.5, 0.5],
|
||||
[0.5, 0.5],
|
||||
[0.5, 0.5],
|
||||
[0.5, 0.5]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "boxw",
|
||||
|
||||
|
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 511 B |
|
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 526 B |
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 533 B |
|
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 537 B |
|
Before Width: | Height: | Size: 625 B After Width: | Height: | Size: 870 B |