Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下蹲系数有bug,下蹲系数我设置0.9999都会向上飘,设置成1就往下压了 #170

Closed
Alikeee opened this issue Jul 9, 2022 · 2 comments

Comments

@Alikeee
Copy link

Alikeee commented Jul 9, 2022

需要对下蹲系数输出的值进行一个取整。按照群友的方法把658行的--[[ get real y position ]]这段替换成下面这段就没问题了
-- 下蹲取整
function Round(num, i)
local mult = 10^(i or 0)
local mult10 = mult * 10
return math.floor((num * mult10 + 5)/10)/ mult
end

--[[ get real y position ]]
function pubg.getRealY (options, y)
local realY = y

if pubg.isAimingState("ADS") then
	realY = y * pubg[pubg.scope_current]
elseif pubg.isAimingState("Aim") then
	realY = y * userInfo.sensitivity.Aim * pubg.generalSensitivityRatio
end

if userInfo.aimingSettings == "ctrlmode" and IsModifierPressed("lctrl") then
	realY = realY * options.ctrlmodeRatio
end
realY= Round(realY,0)
return realY

end

@kiccer kiccer closed this as completed in 4ab46c0 Jul 11, 2022
@NicolasPcccc
Copy link

终于等到大神又更新了,快一年了。膜拜

@adminwlw
Copy link

大神回来了 我还没使用 支持hub了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants