From: Baptr0b0t <152836416+Baptr0b0t@users.noreply.github.com> Date: Wed, 6 Nov 2024 03:28:58 +0000 (+0100) Subject: Fix AI in Intelicard can see through walls (#33177) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bcfacec28777668cdb0b318fafc43fa64df3a980;p=space-station-14.git Fix AI in Intelicard can see through walls (#33177) setdrawfov added --- diff --git a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs index 7eef20cebd..f88df9eea6 100644 --- a/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs +++ b/Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs @@ -324,6 +324,7 @@ public abstract partial class SharedStationAiSystem : EntitySystem if (TryComp(user, out EyeComponent? eyeComp)) { + _eye.SetDrawFov(user, false, eyeComp); _eye.SetTarget(user, ent.Comp.RemoteEntity.Value, eyeComp); } @@ -356,6 +357,7 @@ public abstract partial class SharedStationAiSystem : EntitySystem if (TryComp(args.Entity, out EyeComponent? eyeComp)) { + _eye.SetDrawFov(args.Entity, true, eyeComp); _eye.SetTarget(args.Entity, null, eyeComp); } ClearEye(ent);