mirror of
https://github.com/Xerasin/Sit-Anywhere.git
synced 2025-03-04 03:13:07 -05:00
oh
This commit is contained in:
parent
a6aeb604d0
commit
19aea18694
@ -43,7 +43,7 @@ end)
|
||||
|
||||
|
||||
if SERVER then
|
||||
local AllowGroundSit = CreateConVar("sitting_allow_ground_sit", "1", {FCVAR_ARCHIVE}, "Toggle ground sitting for the server", 0, 1)
|
||||
local AllowGroundSit = CreateConVar("sitting_allow_ground_sit", "1", {FCVAR_ARCHIVE}, "Toggle ground sitting for the entire server", 0, 1)
|
||||
hook.Add("HandleSit", "GroundSit", function(ply, dists, EyeTrace)
|
||||
if #dists == 0 and ply:GetInfoNum("sitting_ground_sit", 1) == 1 and AllowGroundSit:GetBool() and ply:EyeAngles().p > 80 then
|
||||
local t = hook.Run("OnGroundSit", ply, EyeTrace)
|
||||
|
Loading…
Reference in New Issue
Block a user