-----注意事项:默认开关热键为罗技910键盘的热键。
-----所以没有该键盘的只能自设置别的按键。所以,请务必注重这里。
-----当然,也是可以改成其他键,但需要你正确更改你所买键盘支持的其他按键。
-----想修改的话下拉即可看到注释。
------------------------------------------------------------
----压枪强度正数为下压枪,负数为上抬枪;X为横向,Y为竖向。
----半自动武器如果发现射速忽快忽慢或者没有手点的快,适当加大开火延迟。
------------------------------------------------------------
------------------------------------------------------------
------------------参数设置-----------------------------------
------------------------------------------------------------
-------------开关热键----------------------------------------
off = 5----关闭
on = 6----开启
-------------全自动武器参数-----------------------------------
zyx = 2----首发Y向强度
xyz = 0----X向强度
xzy = 1----Y向强度
yxz = 9----延迟
-------------半自动武器参数-----------------------------------
single = 8----开火键(鼠标G键,默认8为G8既G502左键旁边俩键前边那个键)
yzx = 2----Y向强度
zzz = 180----开火延迟
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
-------------以下所有参数如无特殊需求--------------------------
--------------------请勿更改---------------------------------
------------------------------------------------------------
------------------------------------------------------------
local
norecoil = false
------------------------------------------------------------
function OnEvent(event, arg)
------------------------------------------------------------
EnablePrimaryMouseButtonEvents(true)
------------------------------------------------------------
------------------------------------------------------------
-------------no recoil--------------------------------------
------------------------------------------------------------
------------------------------------------------------------
if
(event ==
"G_PRESSED"
and
arg == on) then
----↑如果想用鼠标开关的话
"G_PRESSED"
改为
"MOUSE_BUTTON_PRESSED"
----↑之后修改
----↓如果改了的话最下边还有一处需要修改,切记!!!
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
if
(event ==
"MOUSE_BUTTON_PRESSED"
and
arg == single
and
norecoil) then
repeat
PressMouseButton(1)
Sleep(17)
ReleaseMouseButton(1)
MoveMouseRelative(0, yzx)
Sleep(zzz)
until
not
IsModifierPressed(
"rctrl"
)
----------↑如果想更改半自动的连发触发的按键,修改为下边绿字中的其余按键即可。
---------------------------------------------------
----↓鼠标按键触发的话使用这个↓
----IsMouseButtonPressed(2)
----2=中键,3=右键,4=侧键G4,5=侧键G5。不可用1左键
---------------------------------------------------
----↓键盘按键触发的话使用这个↓
----IsModifierPressed(
"rctrl"
)
----
"lalt"
,
"ralt"
,
"alt"
----分别是左侧右侧和两侧的
alt
----
"lshift"
,
"rshift"
,
"shift"
----分别是左侧右侧和两侧的shift
----
"lctrl"
,
"rctrl"
,
"ctrl"
----分别是左侧右侧和两侧的ctrl
end
------------------------------------------------------------
------------------------------------------------------------
--------mouse-----------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
if
(event ==
"G_PRESSED"
and
arg == off) then
----↑就这个位置也需要把
"G_PRESSED"
改为
"MOUSE_BUTTON_PRESSED"
norecoil = false
if
(norecoil == false) then
OutputLogMessage(
"mouse\n"
)
end
end
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
end