300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 罗技鼠标宏压枪 - 绝地求生 -刺激战场

罗技鼠标宏压枪 - 绝地求生 -刺激战场

时间:2020-05-08 11:26:46

相关推荐

罗技鼠标宏压枪 - 绝地求生 -刺激战场

罗技宏压枪脚本

说明:只能减小一点后坐力,不能做到全打到一个点上。有时间再优化下。

推荐把G7、G8调节DPI关闭,使用G模式调节DPI(按住G9+G7、G9+G8),为了开启压枪是不会影响DPI。

脚本代码在下边,使用方法不用说了吧? 有不清楚的在下面评论吧。

---- Created by IntelliJ IDEA.-- User: cactus-- Date: /1/6-- Time: 13:45-- To change this template use File | Settings | File Templates.---- 事件处理方法,点击和释放鼠标时触发。---- Created by IntelliJ IDEA.-- User: cactus-- Date: /1/6-- Time: 13:45-- To change this template use File | Settings | File Templates.---- 事件处理方法,点击和释放鼠标时触发。function OnEvent(event, arg)-- 启用鼠标按键 1 (左键)的事件报告,(默认关闭)EnablePrimaryMouseButtonEvents(true)-- 鼠标按下时, arg对应G1 - Gnif event == "MOUSE_BUTTON_PRESSED" thenOutputLogMessage("MOUSE_BUTTON_PRESSED: %s, arg: %s\n", event, arg)if (arg == 6) then --一键关闭TransClose();elseif (arg == 4) then -- M416TransGun("M416");elseif (arg == 5) then -- M16A4TransGun("M16A4");elseif (arg == 7) then -- AKMTransGun("AKM");elseif (arg == 8) then -- UMP9TransGun("UMP9");elseif arg == 1 thenif M416 thenBoom("M416");elseif M16A4 thenBoom("M16A4");elseif AKM thenBoom("AKM");elseif UMP9 thenBoom("UMP9");endendendendfunction TransClose()OutputLogMessage("TransClose:\n")M416 = false;M16A4 = false;AKM = false;UMP9 = false;endfunction TransGun(name)OutputLogMessage("TransGun:" .. name .. "\n")TransClose();_G[name] = not _G[name];OutputLogMessage(M416 .. M16A4 .. AKM .. UMP9)endfunction Boom(name)OutputLogMessage("Boom:" .. name .. "\n")while (IsMouseButtonPressed(1)) do-- TODO 待优化:根据不同枪械设置数组,而不使用随机数MoveFunc(RandomXY(name))endendfunction RandomXY(name)if name == "M416" thenreturn math.random(1, 3), math.random(24, 35), 11 + 50;elseif name == "M16A4" thenreturn math.random(0, 2), math.random(20, 35), 1 + 50;elseif name == "AKM" thenreturn math.random(0, 2), math.random(24, 41), 15 + 50;elseif name == "UMP9" thenreturn math.random(0, 1), math.random(21, 27), 3 + 50;endendfunction MoveFunc(x, y, ms)MoveMouseRelative(x, y);Sleep(ms);end

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。