声明
以下脚本内容仅供学习交流使用,请勿用于其他用途。如用于包括但不限于在CF游戏内使用等其他用途所产生的一切后果如封号等由自己负责,与本站无关。须知所有第三方辅助皆可能导致封号,没有绝对安全。
Logitecg G Hub官网下载:https://www.logitechg.com/en-sg/innovation/g-hub.html
或者也可以通过本文下载。
使用教程
- 下载并安装
Logitech G HUB
,然后以管理员身份运行
程序。 - 进入主界面以后点击左上角的
三条横线
→游戏与应用程序
- 点击页面左上角的
添加游戏与应用程序
,找到并添加CF(路径获取方式:在WeGame
界面右键CF
,点击目录
,打开TCLS
文件夹,里面的Client.exe
就是CF客户端启动器,例如路径为D:\WeGameApps\CF:穿越火线\穿越火线\TCLS\Client.exe
) - 在游戏与应用程序界面,选中
CF
(Client.exe),然后在界面下方点击详情
,设置为永久性配置
- 返回游戏与应用程序界面,打开
编写脚本
(详情右边的圆形按钮) - 把下方脚本复制进去,修改好键位以后,点击界面左上角的
脚本
右边的\/
→保存并运行
- 把数字改成鼠标上对应的键号即可,例如
guitiao = 4
,即按鼠标侧键G4,即可实现鬼跳,其他同理。
教程图解
无加密版
------------------------------------------------------------------------------------------
offkey = 3
-------------------------------------------------------------------------------------------
-------------------使用方法把想用的宏改为想要的侧键数字就行,不用 用0填写-------------------------
-----------------这个区域只能4,5号侧键------------------------
guitiao = 0 -----------------鬼跳(按住w或者s再按住侧键)--------------------
hk417 = 0 -----------------hk417--------------------
lianyu = 0 -----------------炼狱--------------------
suibu = 0 -----------------碎步(按住a或者d再按住侧键)--------------------
sandun = 0 -----------------闪蹲--------------------
usp = 0 -----------------USP--------------------
uspmin = 30 -----------------USP第一组最低毫秒--------------------
uspmax = 50 -----------------USP第一组最高毫秒--------------------
uspmin1 = 35 -----------------USP第二组最低毫秒--------------------
uspmax1 = 55 -----------------USP第二组最高毫秒--------------------
-----------------------------------------
--------------------------------------------
-----------------------------------------
leishen = 0 -----------------雷神(四连发)--------------------
liujitiao = 0 -----------------六级跳(贴紧箱子,视角尽量看着前面别低头,其他键不用按)--------------------
chaojitiao = 0 -----------------超级跳(贴紧箱子,准星斜45度)--------------------
erjitiao = 0 -----------------二级跳(开宏前贴紧箱子或者加点方向键)--------------------
--------------------------------------
shunju = 0 ---------瞬狙---
mintime_q = 80 ---------切枪速度最小值--
maxtime_q = 100 ---------切枪速度最大值--
------------------------------------------
kaiguan = true
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == offkey) then
kaiguan = not kaiguan
if(kaiguan)then
OutputLogMessage(" on \n")
else
OutputLogMessage(" off \n")
end
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == hk417)then
repeat
PressMouseButton(1)
Sleep(math.random(25, 50))
ReleaseMouseButton(1)
Sleep(math.random(100,130))
until not IsMouseButtonPressed(hk417)
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == liujitiao)then
PressKey("s")
Sleep(1217)
PressKey("w")
Sleep(300)
PressKey("lctrl")
Sleep(30)
ReleaseKey("lctrl")
Sleep(10)
PressKey("lctrl")
Sleep(30)
ReleaseKey("lctrl")
Sleep(10)
PressKey("spacebar")
Sleep(math.random(105,107))
PressKey("lctrl")
Sleep(85)
ReleaseKey("spacebar")
Sleep(135)
ReleaseKey("lctrl")
Sleep(1000)
PressKey("spacebar")
Sleep(math.random(105,107))
PressKey("lctrl")
Sleep(85)
ReleaseKey("spacebar")
Sleep(135)
ReleaseKey("lctrl")
Sleep(1000)
PressKey("spacebar")
Sleep(math.random(105,107))
PressKey("lctrl")
Sleep(85)
ReleaseKey("spacebar")
Sleep(135)
ReleaseKey("lctrl")
Sleep(1000)
ReleaseKey("w")
Sleep(500)
PressKey("spacebar")
Sleep(136)
ReleaseKey("spacebar")
Sleep(500)
PressKey("spacebar")
Sleep(135)
ReleaseKey("spacebar")
Sleep(106)
PressKey("lctrl")
Sleep(30)
ReleaseKey("lctrl")
Sleep(60)
PressKey("spacebar")
Sleep(107)
ReleaseKey("spacebar")
Sleep(math.random(105,107))
ReleaseKey("s")
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == leishen)then
PressMouseButton(1)
Sleep(35)
ReleaseMouseButton(1)
Sleep(math.random(68,70))
PressMouseButton(1)
Sleep(math.random(43,44))
ReleaseMouseButton(1)
Sleep(math.random(31,32))
PressMouseButton(1)
Sleep(24,25)
ReleaseMouseButton(1)
Sleep(72,73)
PressMouseButton(1)
Sleep(41,43)
ReleaseMouseButton(1)
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == usp)then
repeat
PressMouseButton(1)
Sleep(math.random(uspmin,uspmax))
ReleaseMouseButton(1)
Sleep(math.random(uspmin1,uspmax1))
until not IsMouseButtonPressed(usp)
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == lianyu)then
repeat
PressMouseButton(1)
Sleep(math.random(36,60))
ReleaseMouseButton(1)
Sleep(math.random(20,40))
until not IsMouseButtonPressed(lianyu)
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == chaojitiao)then
PressKey("s")
Sleep(5)
PressKey("w")
Sleep(600)
PressKey("lctrl")
Sleep(30)
ReleaseKey("lctrl")
Sleep(100)
PressKey("lctrl")
Sleep(30)
ReleaseKey("lctrl")
Sleep(20)
PressKey("spacebar")
Sleep(107)
PressKey("lctrl")
Sleep(85)
ReleaseKey("spacebar")
Sleep(135)
ReleaseKey("lctrl")
ReleaseKey("s")
ReleaseKey("w")
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == erjitiao)then
PressKey("spacebar")
Sleep(math.random(135,137))
ReleaseKey("spacebar")
Sleep(math.random(500,502))
PressKey("spacebar")
Sleep(math.random(105,107))
PressKey("lctrl")
Sleep(85)
ReleaseKey("spacebar")
Sleep(135)
ReleaseKey("lctrl")
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == guitiao)then
PressKey("spacebar")
Sleep(111)
PressKey("lctrl")
Sleep(213)
ReleaseKey("spacebar")
Sleep(math.random(15,17))
repeat
PressKey("spacebar")
Sleep(math.random(15,17))
ReleaseKey("spacebar")
Sleep(math.random(9,10))
PressKey("spacebar")
Sleep(math.random(18,20))
ReleaseKey("spacebar")
Sleep(math.random(24,25))
PressKey("spacebar")
Sleep(math.random(29,30))
ReleaseKey("spacebar")
Sleep(math.random(29,30))
PressKey("spacebar")
Sleep(math.random(14,15))
ReleaseKey("spacebar")
Sleep(math.random(24,25))
until not IsMouseButtonPressed(guitiao)
ReleaseKey("lctrl")
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == shunju)then
Sleep(65)
PressMouseButton(3)
Sleep(math.random(15,30))
PressMouseButton(1)
Sleep(math.random(10,25))
ReleaseMouseButton(3)
Sleep(math.random(10,25))
ReleaseMouseButton(1)
Sleep(math.random(15,30))
PressKey("q")
Sleep(math.random(20,55))
ReleaseKey("q")
Sleep(math.random(mintime_q,maxtime_q))
PressKey("q")
Sleep(math.random(20,55))
ReleaseKey("q")
Sleep(math.random(20,55))
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == suibu)then
repeat
PressKey("w")
Sleep(math.random(10,50))
ReleaseKey("w")
Sleep(math.random(20,65))
until not IsMouseButtonPressed(suibu)
end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == sandun)then
repeat
PressKey("lctrl")
Sleep(math.random(15,17))
ReleaseKey("lctrl")
Sleep(math.random(15,17))
PressKey("lctrl")
Sleep(math.random(15,17))
ReleaseKey("lctrl")
until not IsMouseButtonPressed(sandun)
end
end
加密版(某主播定制版)
代码太长了放不下,自己下载
© 版权声明
THE END
暂无评论内容