Fix various IC states not counting as dead (#19049)

This commit is contained in:
Nemanja
2023-08-13 23:34:18 -04:00
committed by GitHub
parent 494a8cd6b4
commit 6a125b55df
5 changed files with 31 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ using Content.Server.Drone.Components;
using Content.Server.Inventory;
using Content.Shared.Bed.Sleep;
using Content.Server.Emoting.Systems;
using Content.Server.Mind;
using Content.Server.Speech.EntitySystems;
using Content.Shared.Damage;
using Content.Shared.Inventory;
@@ -49,6 +50,7 @@ namespace Content.Server.Zombies
SubscribeLocalEvent<ZombieComponent, MobStateChangedEvent>(OnMobState);
SubscribeLocalEvent<ZombieComponent, CloningEvent>(OnZombieCloning);
SubscribeLocalEvent<ZombieComponent, TryingToSleepEvent>(OnSleepAttempt);
SubscribeLocalEvent<ZombieComponent, GetCharactedDeadIcEvent>(OnGetCharacterDeadIC);
SubscribeLocalEvent<PendingZombieComponent, MapInitEvent>(OnPendingMapInit);
@@ -116,6 +118,11 @@ namespace Content.Server.Zombies
args.Cancelled = true;
}
private void OnGetCharacterDeadIC(EntityUid uid, ZombieComponent component, ref GetCharactedDeadIcEvent args)
{
args.Dead = true;
}
private void OnStartup(EntityUid uid, ZombieComponent component, ComponentStartup args)
{
if (component.EmoteSoundsId == null)