系统吧 专业的电脑操作系统,支持重装各种原版系统xp/win7/win8/win10 这个系统怎么样?试试系统吧系统,体验办公系统畅快愉悦感。 各种电脑系统安装过程一样,神一般的畅快!
-->
当前位置:主页 > win8 >

罗技G502鼠标宏设置大法,一键精准压枪,告别手残!(2)

作者:王文治 分类:win8 发布时间:2024-01-16 21:30:00

pubg.onWeaponUmp9 = function () local weaponRocilData = {5. 5. 5. 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5....

pubg.onWeaponUmp9 = function ()

local weaponRocilData = {5. 5. 5. 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}

local weaponDuration = 20

local currentRecoilPos = 1

repeat

MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])

currentRecoilPos = currentRecoilPos + 1

Sleep(weaponDuration)

OutputLogMessage(tostring(currentRecoilPos) .. " ")

if currentRecoilPos == #weaponRocilData then

currentRecoilPos = 1

end

until not IsMouseButtonPressed(1)

end

-------------------------------------------------------------------------------

-- 选择AKM枪

-------------------------------------------------------------------------------

pubg.onWeaponAkm = function ()

local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}

local weaponDuration = 20

local currentRecoilPos = 1

repeat

MoveMouseRelative(0, weaponRocilData[currentRecoilPos])

currentRecoilPos = currentRecoilPos + 1

Sleep(weaponDuration)

OutputLogMessage(tostring(currentRecoilPos) .. " ")

if currentRecoilPos == #weaponRocilData then

currentRecoilPos = 1

end

until not IsMouseButtonPressed(1)

end

-------------------------------------------------------------------------------

-- 选择M16A4枪

-------------------------------------------------------------------------------

pubg.onWeaponM16a4 = function ()

local weaponRocilData = {5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}

local weaponDuration = 20

local currentRecoilPos = 1

repeat

MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])

currentRecoilPos = currentRecoilPos + 1

Sleep(weaponDuration)

OutputLogMessage(tostring(currentRecoilPos) .. " ")

if currentRecoilPos == #weaponRocilData then

currentRecoilPos = 1

elseif currentRecoilPos % 5 == 0 then

ReleaseMouseButton(1)

Sleep(10)

PressMouseButton(1)

Sleep(100)

end

until not IsMouseButtonPressed(1)

OutputLogMessage("IsMouseButtonPressed == false\n")

end

-------------------------------------------------------------------------------

-- 选择M416枪

-------------------------------------------------------------------------------

pubg.onWeaponM416 = function ()

ClearLog()

local weaponRocilData = {5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 3, 2, 3, 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5. 5}

local weaponDuration = 20

local currentRecoilPos = 1

repeat

MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos])

currentRecoilPos = currentRecoilPos + 1

Sleep(weaponDuration)

OutputLogMessage(tostring(currentRecoilPos) .. " ")

if currentRecoilPos == #weaponRocilData then

currentRecoilPos = 1

elseif currentRecoilPos % 5 == 0 then

ReleaseMouseButton(1)

Sleep(20)

PressMouseButton(1)

end

until not IsMouseButtonPressed(1)

end

-------------------------------------------------------------------------------

-- pubg逻辑处理

-------------------------------------------------------------------------------

pubg.onEvent = function (event, arg)

OutputLogMessage("event = %s, arg = %d\n", event, arg)

if event == "PROFILE_ACTIVATED" then

EnablePrimaryMouseButtonEvents(true)

elseif event == "PROFILE_DEACTIVATED" then

EnablePrimaryMouseButtonEvents(false)

pubg.currentWeapon = "NIL"

ReleaseKey(0x1d)

ReleaseMouseButton(1)

ReleaseMouseButton(2)

return

end

-- G键按下逻辑

if event == "MOUSE_BUTTON_PRESSED" and arg == 6 then

pubg.isGKeyPressed = true

pubg.isOKeyPressed = false

elseif event == "MOUSE_BUTTON_RELEASED" and arg == 6 then

pubg.isGKeyPressed = false

end

-- 在G键按下的时候,其他键是否被按下

if event == "MOUSE_BUTTON_PRESSED" and arg ~= 6 and pubg.isGKeyPressed then

pubg.isOKeyPressed = true

end

-- 单独G键被按下

if event == "MOUSE_BUTTON_RELEASED" and arg == 6 and pubg.isOKeyPressed == false then

pubg.onGKeyPressed()

-- 一键拾取物品

elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyPickupWeapon and pubg.isGKeyPressed == false then

pubg.onPickupWeapon()

-- 一键丢弃物品

elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyDrop and pubg.isGKeyPressed == true then

pubg.onDrop()

-- 一键奔跑

elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyAlwayRun and pubg.isGKeyPressed == false then

xp 更多>>
win7 更多>>
win8 更多>>
win10 更多>>
U盘 更多>>
电脑技术 更多>>
网站地图 | 豫ICP备2021035069号-4 | 友情链接qq:191064436
系统吧

版权所有 © 2012-2023 系统吧 免责声明:本站资源均收集于互联网,其著作权归原作者所有,如果有侵犯您权利的资源,请来信告知,我们将及时删除相应资源。