Fix hostile simplemob rotation (#20900)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user