b1g resolver!!! 1taps xd
Well Ive been getting back into gmod lately and decided my current yaw AAA(Resolver) is pretty shite so I did something to correct the Out of bounds angle meme that everyone uses to do 'fake angles' while not affecting yaws that are still 'In bounds'
The pitch resolver is.. Okay I guess
Anyway have fun pasting the paste of another paste
The pitch resolver is.. Okay I guess
Anyway have fun pasting the paste of another paste
Code:
function CheckAAA(ply, ang)
local pitch = ang.x
local yaw = ang.y
local roll = ang.z
if(pitch >= 89 && pitch < -89) then
pitch = 89;
elseif(pitch >= 180 && pitch < 290) then
pitch = -89;
end
ply:SetPoseParameter("aim_pitch", pitch)
ply:SetPoseParameter("head_pitch", pitch)
ply:SetPoseParameter("body_yaw", 0);
ply:SetPoseParameter("aim_yaw", 0);
ply:SetRenderAngles(Angle(0, math.NormalizeAngle(yaw) + math.NormalizeAngle(roll) , 0)) -- OOB correctlo memorino
ply:InvalidateBoneCache()
end
