Skip to content

Commit

Permalink
AFK kick is a little more generous
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-budd committed Oct 28, 2024
1 parent 7a843ed commit 34dea82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lua/Hooks/Player/Scripts/AFKHandle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ return function(p)
or cmd.buttons & activebuttons)
or (afk.lastangle ~= cmd.angleturn << 16)
or (afk.lastaiming ~= cmd.aiming)
if afk.timeuntilreset < 2*TICRATE
if afk.timeuntilreset < 10*TICRATE
afk.timeuntilreset = $+1
else
p.mm.afktimer = $ + 1
Expand All @@ -44,7 +44,7 @@ return function(p)
end
else
if afk.timeuntilreset
afk.timeuntilreset = $-1
afk.timeuntilreset = max($-6,0)
else
p.mm.afktimer = $*3/4
end
Expand Down

1 comment on commit 34dea82

@luigi-budd
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: line 47 should clamp afk timer to 0 - 2 seconds , not 20 seconds

Please sign in to comment.