Fixes not being able to ghost on move when you're a head or brain
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Content.Shared.GameObjects.EntitySystems
|
||||
|
||||
private static void HandleDirChange(ICommonSession? session, Direction dir, ushort subTick, bool state)
|
||||
{
|
||||
if (!TryGetAttachedComponent<SharedPlayerInputMoverComponent>(session, out var moverComp))
|
||||
if (!TryGetAttachedComponent<IMoverComponent>(session, out var moverComp))
|
||||
return;
|
||||
|
||||
var owner = session?.AttachedEntity;
|
||||
|
||||
4
Resources/Changelog/Parts/ghost.yml
Normal file
4
Resources/Changelog/Parts/ghost.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: Zumorica
|
||||
changes:
|
||||
- type: Fix
|
||||
message: Fixes not being able to ghost when you are a brain or head.
|
||||
@@ -32,6 +32,9 @@
|
||||
behaviors:
|
||||
- !type:BrainBehavior {}
|
||||
- type: Input
|
||||
context: "ghost"
|
||||
- type: DummyInputMover
|
||||
- type: GhostOnMove
|
||||
|
||||
- type: entity
|
||||
id: EyesHuman
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
# criticalThreshold: 50
|
||||
# deadThreshold: 120
|
||||
- type: Input
|
||||
context: "ghost"
|
||||
- type: DummyInputMover
|
||||
- type: GhostOnMove
|
||||
|
||||
- type: entity
|
||||
id: LeftArmHuman
|
||||
|
||||
@@ -62,6 +62,9 @@
|
||||
# criticalThreshold: 50
|
||||
# deadThreshold: 120
|
||||
- type: Input
|
||||
context: "ghost"
|
||||
- type: DummyInputMover
|
||||
- type: GhostOnMove
|
||||
|
||||
- type: entity
|
||||
id: LeftArmSlime
|
||||
|
||||
Reference in New Issue
Block a user