From 13578f4d183cf32781ac2ce463ba309a22c09f4f Mon Sep 17 00:00:00 2001 From: Florian Dubois Date: Sun, 2 May 2021 13:36:28 +0200 Subject: [PATCH] Fixed the indicator display when a player is in act Under some conditions, a player in act doesn't allow the chat indicator to be displayed correctly. --- plugins/typing.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/typing.lua b/plugins/typing.lua index ee2a66b8..ba76a9e8 100644 --- a/plugins/typing.lua +++ b/plugins/typing.lua @@ -31,13 +31,15 @@ if (CLIENT) then data.filter = localPlayer for k, v in ipairs(player.GetAll()) do + local isActing = v:getNetVar("actAng") + if ( v ~= localPlayer and v:getNetVar("typing") and - v:GetMoveType() == MOVETYPE_WALK + (v:GetMoveType() == MOVETYPE_WALK or isActing) ) then data.endpos = v:EyePos() - if (util.TraceLine(data).Entity ~= v) then continue end + if (util.TraceLine(data).Entity ~= v and not isActing) then continue end local position = v:GetPos() alpha = (1 - (ourPos:DistToSqr(position) / 65536)) * 255 if (alpha <= 0) then continue end