Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugins/typing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down