-
罗技G502压枪宏:手把手教你实现战斗致胜神器(2)
- 作者:刘亭宝 分类:win8 发布时间:2024-02-02 16:00:00
local weaponDuration = 20 local currentRecoilPos = 1 repeat MoveMouseRelative(pubg.random(-1,2), weaponRocilData[currentRecoilPos]) currentRecoilPos = currentRecoilPos + 1 Sleep(weaponDuration) Output...
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
pubg.onAlwayRun()
-- 自动环视周围
elseif event == "MOUSE_BUTTON_PRESSED" and arg == pubg.keyLookAround and IsModifierPressed("alt") then
pubg.onLookAround()
-- 选择UMP9
猜您喜欢
- 罗技驱动解压难题,无法安装资源?一..2024-04-03
- 罗技鼠标灵敏度怎么调?手把手教你调..2024-03-20
- 揭秘:罗技鼠标宏如何设置精准压枪?..2024-03-20
- 罗技鼠标滚轮失灵?试试这个简单修复..2024-02-27
- 罗技鼠标宏进游戏无效?这些方法帮你..2024-02-26
- 罗技蓝牙鼠标m590,轻松连接电脑,告..2024-02-01
相关推荐
- 东芝 Satellite L855(WIN8)笔记本电脑说明书..2017-07-03
- 轻松掌握!台式电脑宽带连接设置秘籍..2023-12-03
- win8系统如何使用火狐浏览器截图插件..2022-09-08
- win8 怎么一键还原_windows8一键还原怎么..2021-01-21
- 揭秘PS液化技巧:轻松掌握专业修图的..2023-11-08
- 深度技术ghost win8.1下chrome需要提供注册..2021-05-28