APEX 罗技 鼠标宏 lua编程 PUBG

说在前面:

如果你认为使用鼠标宏是一种作弊行为,那么请关闭此页面净化您的内心。


以前玩pubg的时候,还是内测版,压枪对于我这种手残人来说都无压力,后来改版之后就去玩lol了,随热流买了g502联名版,然后发现了有宏编程可用,最开始用来打m16和mk47这种半自动步枪,实现连发。打cf被封过1天,打吃鸡1000小时没出过问题,打apex400小时没出过问题。我写的宏是根据开发文档写的,没有那些所谓的弹道自动修正,我也不会,我写的静态压枪。

APEX:

EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if (IsMouseButtonPressed(3)) then
if (arg == 1) then
repeat
R = 4
S = 1
MoveMouseRelative(R,-R)
Sleep(S)
MoveMouseRelative(-R,R)
Sleep(S)
until not IsMouseButtonPressed(1)
end
end
end
解释一下,
1 让鼠标左键参与事件
2 入口响应函数
3 输入日志
4 如果鼠标右键按下
5 如果按下了鼠标的arg=1的键 就是左键
6 循环
7 鼠标相对移动到第一象限
8 休眠
9 鼠标相对移动到第三象限
10 休眠
11 直到鼠标左键没有按下为止
 
参数R,变量S可以自定义,这里的参数都是经过多次测试的,无论是左右移动还是网友说的菱形移动,还是斜角移动,都难以避免屏幕画面抖动,降低抖动要在R和S之间取平衡,或者增加一些移动方式。这里取了一些平衡,用了这个宏不代表就是锁了,该手压还是要手压,只是一个静态辅助,在 特定情况下非常好用,自己位置很拘束,无法大量左右移动,对手离得比较远。

对了,触发操作是先按右键不放,同时按左键触发,这时右键可放开,当松开左键时结束。这样就不用再去设置什么开关键,也可以根据情况选择是否启动。 一定是先按下的右键再是左键。



PUBG: 

function OnEvent(event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    end
    OutputLogMessage("Event: " .. event .. " Arg: " .. arg .. "\n")

    if(event=="MOUSE_BUTTON_PRESSED")then
            while IsMouseButtonPressed(5) do
                MoveMouseRelative(0,4)
                Sleep(5)
            end
    end
end

用的是侧键触发,就是前进键?鼠标左键先按下,再触发侧键,可以让鼠标下移,非常好用,想762的枪压枪难度大大较小,但不代表没后座,左右后座一样有,所以我都没怎么玩了,毕竟手残党。






 在附上一些网友提供的,触发条件都是先右再左。这些各有各的好处,只要不是动态调整和ai锁都有其弊端,只有不断太调整参数才能让画面更加和谐。

R = 4
P = 1
S = 4

EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)

OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if (IsMouseButtonPressed(3)) then

if (arg == 1) then
MoveMouseRelative(0,-2)
repeat
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(0,P)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(0,P)
Sleep(S)
until not IsMouseButtonPressed(1)
end

end

end




R = 4
P = 1
S = 4

EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)

OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if (IsMouseButtonPressed(3)) then

if (arg == 1) then
MoveMouseRelative(0,-2)
repeat
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(0,P)
Sleep(S)
until not IsMouseButtonPressed(1)
end

end

end





EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)
OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if (IsMouseButtonPressed(3)) then
if (arg == 1) then
MoveMouseRelative(0,-1)
repeat
R = math.random(6,8)
S = math.random(1,2)
P = math.random(1,2)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(-R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(R,0)
Sleep(S)
MoveMouseRelative(0,P)
Sleep(S)
until not IsMouseButtonPressed(1)
end
end
end

总结:

对于fps来说,静态宏不算严格意义上的挂,不会封,cf除外。有了这个宏,不代表无后座,不代表无后座,不代表无后座,只是在特定场景下,控枪更加稳定,但是同样带来了画面抖动的问题。参数可以细调,但是跟枪不行,再牛的宏,都没有,除非是锁,无脑打就行,但可惜我不会写。

  • 7
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值