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)
|
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;
|
||||||
|
|||||||
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:
|
behaviors:
|
||||||
- !type:BrainBehavior {}
|
- !type:BrainBehavior {}
|
||||||
- type: Input
|
- type: Input
|
||||||
|
context: "ghost"
|
||||||
|
- type: DummyInputMover
|
||||||
|
- type: GhostOnMove
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: EyesHuman
|
id: EyesHuman
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user