Skip to content

Commit 20f8bc1

Browse files
Matt SamMatt Sam
authored andcommitted
...
1 parent 7a384ce commit 20f8bc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Crossfirer_v2.x/Crossfirer_Recoilless.ahk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Return
9494
Return
9595

9696
~*$LButton:: ;压枪 正在开发
97-
If CF_Now.GetStatus()
97+
If CF_Now.GetStatus() && GetKeyState("LButton", "P")
9898
{
9999
SetGuiPosition(XGui7, YGui7, "M", -Radius, -Radius)
100100
Gui, circle: Show, x%XGui7% y%YGui7% w%Diameter% h%Diameter% NA
@@ -103,7 +103,7 @@ Return
103103
GuiControl, recoil_mode: +c00FFFF +Redraw, ModeClick ;#00FFFF
104104
RCL_Text := "自动压枪 " RCL_Down
105105
UpdateText("recoil_mode", "ModeClick", RCL_Text, XGui5, YGui5)
106-
Recoilless(Gun_Chosen, Ammo_Delay, RCL_Down)
106+
Recoilless(Gun_Chosen, RCL_Down, Ammo_Delay)
107107
}
108108
}
109109
Return
@@ -115,7 +115,7 @@ Return
115115
Return
116116

117117
~*RButton:: ;展示圆环
118-
If CF_Now.GetStatus()
118+
If CF_Now.GetStatus() && GetKeyState("RButton", "P")
119119
{
120120
SetGuiPosition(XGui7, YGui7, "M", -Radius, -Radius)
121121
Gui, circle: Show, x%XGui7% y%YGui7% w%Diameter% h%Diameter% NA
@@ -178,7 +178,7 @@ Return
178178
Return
179179
;==================================================================================
180180
;压枪函数,对相应枪械,均能在中近距离上基本压成一条线,即将标准化
181-
Recoilless(Gun_Chosen, Ammo_Delay, RCL_Down)
181+
Recoilless(Gun_Chosen, RCL_Down, Ammo_Delay := 100)
182182
{
183183
StartTime := SystemTime()
184184
Ammo_Count := 0

0 commit comments

Comments
 (0)