Added more animal sound effects needed for pettable animals and gibbed head fix (#7532)

This commit is contained in:
CrzyPotato
2022-04-15 15:56:04 -07:00
committed by GitHub
parent c7856327a8
commit 67b2bfad57
15 changed files with 50 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ using Robust.Shared.Maths;
using Robust.Shared.Physics;
using Robust.Shared.Random;
using Robust.Shared.Serialization;
using Content.Shared.MobState.Components;
namespace Content.Shared.Interaction
{
@@ -45,7 +46,7 @@ namespace Content.Shared.Interaction
public bool TryFaceAngle(EntityUid user, Angle diffAngle)
{
if (_actionBlockerSystem.CanChangeDirection(user))
if (_actionBlockerSystem.CanChangeDirection(user) && TryComp(user, out MobStateComponent? mob) && !mob.IsIncapacitated())
{
EntityManager.GetComponent<TransformComponent>(user).WorldRotation = diffAngle;
return true;