Merge branch 'master' into metaStripped

This commit is contained in:
Xerasin 2023-07-16 21:46:56 -07:00
commit a06d83f55f

View File

@ -268,7 +268,7 @@ function META.Sit(ply, EyeTrace, ang, parent, parentbone, func, exit, wantedAng)
if wantedAng and math.abs(surfaceAng.pitch) <= 15 then
ent = EyeTrace.Entity
if EyeTrace.HitWorld and not ent:IsPlayer() then
if EyeTrace.HitWorld or not ent:IsPlayer() then
if SitAnywhere.CheckValidAngForSit(EyeTrace.HitPos, EyeTrace.HitNormal:Angle(), wantedAng) then
ang.yaw = wantedAng + 90
else