Начинающий
-
Автор темы
- #1
local switch = Menu.Switch("Settings", "Extended desync", false)
local slider = Menu.SliderInt("Settings", "Extended desync angle", 0, 0, 180)
Cheat.RegisterCallback("pre_prediction", function(cmd)
if not switch:GetBool() then return end
local view_angles = EngineClient.GetViewAngles()
cmd.viewangles = QAngle.new(view_angles.pitch, view_angles.yaw, slider:GetInt())
end)
Cheat.RegisterCallback("draw", function ()
slider:SetVisible(switch:GetBool())
end)
невер
local slider = Menu.SliderInt("Settings", "Extended desync angle", 0, 0, 180)
Cheat.RegisterCallback("pre_prediction", function(cmd)
if not switch:GetBool() then return end
local view_angles = EngineClient.GetViewAngles()
cmd.viewangles = QAngle.new(view_angles.pitch, view_angles.yaw, slider:GetInt())
end)
Cheat.RegisterCallback("draw", function ()
slider:SetVisible(switch:GetBool())
end)
невер