Joining round as observer greys out return to body button
This commit is contained in:
@@ -6,6 +6,7 @@ using Content.Server.GameObjects;
|
|||||||
using Content.Server.GameObjects.Components.Access;
|
using Content.Server.GameObjects.Components.Access;
|
||||||
using Content.Server.GameObjects.Components.Markers;
|
using Content.Server.GameObjects.Components.Markers;
|
||||||
using Content.Server.GameObjects.Components.Mobs;
|
using Content.Server.GameObjects.Components.Mobs;
|
||||||
|
using Content.Server.GameObjects.Components.Observer;
|
||||||
using Content.Server.GameTicking.GamePresets;
|
using Content.Server.GameTicking.GamePresets;
|
||||||
using Content.Server.Interfaces;
|
using Content.Server.Interfaces;
|
||||||
using Content.Server.Interfaces.Chat;
|
using Content.Server.Interfaces.Chat;
|
||||||
@@ -641,6 +642,7 @@ namespace Content.Server.GameTicking
|
|||||||
|
|
||||||
var mob = _spawnObserverMob();
|
var mob = _spawnObserverMob();
|
||||||
mob.Name = name;
|
mob.Name = name;
|
||||||
|
mob.GetComponent<GhostComponent>().CanReturnToBody = false;
|
||||||
data.Mind.TransferTo(mob);
|
data.Mind.TransferTo(mob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user