Fix hostile simplemob rotation (#20900)

This commit is contained in:
Nemanja
2023-10-14 03:15:20 -04:00
committed by GitHub
parent 65f5703731
commit 5ecd5f7521
3 changed files with 19 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using Content.Client.Hands.Systems;
using Content.Client.NPC.HTN;
using Content.Shared.CCVar;
using Content.Shared.CombatMode;
using Robust.Client.Graphics;
@@ -59,6 +60,11 @@ public sealed class CombatModeSystem : SharedCombatModeSystem
UpdateHud(entity);
}
protected override bool IsNpc(EntityUid uid)
{
return HasComp<HTNComponent>(uid);
}
private void UpdateHud(EntityUid entity)
{
if (entity != _playerManager.LocalPlayer?.ControlledEntity || !Timing.IsFirstTimePredicted)