|
未打卡
会员登录
立即注册
设为首页
加入收藏
微信扫一扫
风格切换
搜索
论坛首页
BBS
廣告合作
win7影子
win10影子
win11影子
找回账号密码
寻求帮助
Help
真牛QQ群
购邀请码
真牛论坛地址永久发布页
论坛
今日新帖
打卡签到
登录
新用户注册
注册
登录
真牛论坛
»
论坛首页
›
【管理】
›
综合讨论
›
求罗技LUA格式能用的压枪宏!!!
返回列表
查看:
940
|
回复:
2
求罗技LUA格式能用的压枪宏!!!
[复制链接]
r297082809
r297082809
当前离线
牛币
个
雷达卡
发表于 2020-10-1 23:11
|
显示全部楼层
|
阅读模式
r297082809
2020-10-1 23:11
940
2
显示全部楼层
求罗技LUA格式能用的压枪宏
谢谢大佬了。以前的LUA不能用了。
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
千斤顶
显身卡
zhc111111
zhc111111
当前离线
牛币
个
雷达卡
发表于 2020-10-2 19:36
|
显示全部楼层
zhc111111
2020-10-2 19:36
显示全部楼层
我想要一个连点压枪
qq浏览器屏蔽 告诉大家如何解决
回复
使用道具
举报
显身卡
灬小情调乀
灬小情调乀
当前离线
牛币
个
雷达卡
发表于 2020-10-4 18:59
|
显示全部楼层
灬小情调乀
2020-10-4 18:59
显示全部楼层
-------------开关热键----------------------------------------
off = 7----关闭
on = 8----开启
----想修改为其他罗技键盘按键直接改数字即可
----如果想修改为鼠标键的话,请下拉修改第59行和第108行的参数,然后再改为对应鼠标键即可。
----不知道对应键数字是几的话,看下方信息框中“arg=”后边对应的数字。
------------------------------------------------------------
-------------全自动武器参数-----------------------------------
zyx = 2----首发Y向强度
xyz = 0----X向强度
xzy = 6----Y向强度
yxz = 8----压枪延迟
------------------------------------------------------------
-------------半自动武器参数-----------------------------------
single = 1----开火键(鼠标G键,默认8为G8既G502左键旁边俩键前边那个键)
yzx = 15----首发Y向强度
zzz = 11----Y向强度
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
-------------以下所有参数如无特殊需求--------------------------
--------------------请勿更改---------------------------------
------------------------------------------------------------
------------------------------------------------------------
local norecoil = false
local click = false
------------------------------------------------------------
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
------------------------------------------------------------
EnablePrimaryMouseButtonEvents(true)
------------------------------------------------------------
------------------------------------------------------------
-------------no recoil--------------------------------------
------------------------------------------------------------
------------------------------------------------------------
if (event == "MOUSE_BUTTON_PRESSED" and arg == on) then
----↑如果想用鼠标开关的话"G_PRESSED"改为"MOUSE_BUTTON_PRESSED"
----↓如果改了的话第108行还有一处需要修改,切记!!!
norecoil = true
if (norecoil == true) then
OutputLogMessage("norecoil\n")
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and norecoil) then
Sleep(17)
MoveMouseRelative(0, zyx)
repeat
MoveMouseRelative(xyz, xzy)
Sleep(yxz)
until not IsMouseButtonPressed(1)
end
----------------------------------------------
--------------single参数-----------------------
----------------------------------------------
if (event == "MOUSE_BUTTON_PRESSED" and arg == single and norecoil) then
PressMouseButton(1)
Sleep(20)
ReleaseMouseButton(1)
MoveMouseRelative(0, yzx)
click = true
SetMKeyState(3)
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == single) then
click = false
end
if (event == "M_RELEASED" and arg == 3 and click) then
PressMouseButton(1)
Sleep(20)
ReleaseMouseButton(1)
MoveMouseRelative(0, zzz)
if click then
SetMKeyState(3)
end
end
------------------------------------------------------------
------------------------------------------------------------
---------------mouse----------------------------------------
------------------------------------------------------------
------------------------------------------------------------
if (event == "MOUSE_BUTTON_PRESSED" and arg == off) then
----↑就这个位置也需要把"G_PRESSED"改为"MOUSE_BUTTON_PRESSED"
norecoil = false
click = false
if (norecoil == false and click == false) then
OutputLogMessage("mouse\n")
end
end
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
end
复制代码
回复
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
返回列表
发新帖
回帖后跳转到最后一页
浏览过的版块
王者荣耀
掘地求生
英雄联盟
CSGO2
和平精英
原神网游
综合手游
我的世界
使命召唤
电视盒子
首页
论坛
登录
发布
资讯
快速回复
返回顶部
返回列表