Fixes not being able to ghost on move when you're a head or brain

This commit is contained in:
Vera Aguilera Puerto
2021-03-15 21:16:34 +01:00
parent d3251f35bf
commit 72ee101907
5 changed files with 14 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ namespace Content.Shared.GameObjects.EntitySystems
private static void HandleDirChange(ICommonSession? session, Direction dir, ushort subTick, bool state) 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; return;
var owner = session?.AttachedEntity; var owner = session?.AttachedEntity;

View File

@@ -0,0 +1,4 @@
author: Zumorica
changes:
- type: Fix
message: Fixes not being able to ghost when you are a brain or head.

View File

@@ -32,6 +32,9 @@
behaviors: behaviors:
- !type:BrainBehavior {} - !type:BrainBehavior {}
- type: Input - type: Input
context: "ghost"
- type: DummyInputMover
- type: GhostOnMove
- type: entity - type: entity
id: EyesHuman id: EyesHuman

View File

@@ -63,6 +63,9 @@
# criticalThreshold: 50 # criticalThreshold: 50
# deadThreshold: 120 # deadThreshold: 120
- type: Input - type: Input
context: "ghost"
- type: DummyInputMover
- type: GhostOnMove
- type: entity - type: entity
id: LeftArmHuman id: LeftArmHuman

View File

@@ -62,6 +62,9 @@
# criticalThreshold: 50 # criticalThreshold: 50
# deadThreshold: 120 # deadThreshold: 120
- type: Input - type: Input
context: "ghost"
- type: DummyInputMover
- type: GhostOnMove
- type: entity - type: entity
id: LeftArmSlime id: LeftArmSlime