[add] New ghostrespawn system

This commit is contained in:
rhailrake
2023-04-28 07:13:28 +06:00
committed by Aviu00
parent 35e533b865
commit e458ec9fcd
9 changed files with 119 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ using Content.Server.Speech.Components;
using Content.Server.Station.Components;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Players;
using Content.Shared.Preferences;
using Content.Shared.Roles;
@@ -377,6 +378,7 @@ namespace Content.Server.GameTicking
}
var name = GetPlayerProfile(player).Name;
var ghost = SpawnObserverMob();
_metaData.SetEntityName(ghost, name);
_ghost.SetCanReturnToBody(ghost, false);