<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: CS GO перестал работать скрипт]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=16831</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16831&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: CS GO перестал работать скрипт».]]></description>
		<lastBuildDate>Mon, 20 Dec 2021 16:50:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151322#p151322</link>
			<description><![CDATA[<p>[;full recoil control +<br />;generic recoil control +<br />;pistol autofire &amp; recoil control<br />;Brusk Recoil HF</p><p>#NoEnv<br />SendMode Input<br />#singleInstance, force</p><p>SetTitleMatchMode, 3<br />#IfWinActive Counter-Strike: Global Offensive</p><p>;--------------<br />;-----EDIT-----<br />;--------------</p><p>;modify true/false ONLY<br />show_tooltip := true<br />show_gui := true<br />only_norecoil_when_crouched := false<br />invert_y_axis := false</p><p>;camping triggerbot<br />;offset pixels for triggerbot color search (1 pixel because awp scope takes up 1 pixel)<br />offsetX := 1<br />offsetY := 1<br />;delay for triggerbot<br />trigger_delay := 20<br />;triggerbot color tolerance<br />tolerance := 10</p><p>;keybinds (leave the quotes (&quot;) there)<br />key_crouch := &quot;LCtrl&quot;<br />key_shoot := &quot;LButton&quot;<br />key_pause_script := &quot;RCtrl&quot;<br />key_generic_norecoil := &quot;f3&quot;<br />key_ak47_norecoil := &quot;f4&quot;<br />key_m4a4_norecoil := &quot;f5&quot;<br />key_m4a1s_norecoil := &quot;f6&quot;<br />key_galil_norecoil := &quot;f7&quot;<br />key_famas_norecoil := &quot;f8&quot;<br />key_ump45_norecoil := &quot;f9&quot;<br />key_toggle_norecoil := &quot;f2&quot;<br />key_toggle_autofire := &quot;f1&quot;<br />;for generic norecoil ONLY<br />key_increase_norecoil_amount := &quot;Up&quot;<br />key_decrease_norecoil_amount := &quot;Down&quot;<br />;for camping triggerbot (hold)<br />key_hold_trigger := &quot;t&quot;</p><p>;--------------<br />;-----EDIT-----<br />;--------------</p><p>FileRead, tempSaveText, %A_WorkingDir%\script_save.txt<br />If ErrorLevel = 1<br />{<br />	FileAppend, 2, %A_WorkingDir%\script_save.txt<br />	FileRead, tempSaveText, %A_WorkingDir%\script_save.txt<br />}</p><p>sensitivity := tempSaveText + 0</p><p>;f2 = toggle noRecoil<br />noRecoil := false<br />;f3 = toggle autofire<br />autofire := false</p><p>;special generic recoil stuff<br />firstShotRecoilTimeMax := 15<br />firstShotRecoilTime := 0</p><p>firstShotRestTimeMax := 5<br />firstShotRestTime := 0</p><p>weapon := 0<br />;0 = none<br />;1 = ak<br />;2 = m4<br />;3 = m4a1s<br />;4 = galil<br />;5 = famas<br />;6 = ump45</p><p>;recoil patterns<br />ak47_pattern_str := &quot;-4,7;4,19;-3,29;-1,31;13,31;8,28;13,21;-17,12;-42,3;-21,2;12,11;-15,7;-26,-8;-3,4;40,1;19,7;14,10;27,0;33,-10;-21,-2;7,3;-7,9;-8,4;19,-3;5,6;-20,-1;-33,-4;-45,-21;-14,1&quot;<br />ak47_offset := 3.8<br />ak47_waitoffset := 4.7</p><p>m4_pattern_str := &quot;20,7;0,9;-6,16;7,21;-9,23;-5,27;16,15;11,13;22,5;-4,11;-18,6;-30,-4;-24,0;-25,-6;0,4;8,4;-11,1;-13,-2;2,2;33,-1;10,6;27,3;10,2;11,0;-12,0;6,5;4,5;3,1;4,-1&quot;<br />m4_offset := 3.64<br />m4_waitoffset := 4.13<br />m4_offset2 := 3.65<br />m4_waitoffset2 := 4.17</p><p>m4a1s_pattern_str := &quot;1,6;0,4;-4,14;4,18;-6,21;-4,24;14,14;8,12;18,5;-4,10;-14,5;-25,-3;-19,0;-22,-3;1,3;8,3;-9,1;-13,-2;3,2;1,1&quot;<br />m4a1s_offset := 3.9<br />m4a1s_waitoffset := 4.7<br />m4a1s_point_offset := &quot;&quot;</p><p>galil_pattern_str := &quot;4,4;-2,5;6,10;12,20;-1,25;2,24;6,18;11,10;-4,14;-22,8;-30,-10;-29,-13;-9,8;-12,2;-7,1;0,1;4,7;25,7;14,4;25,-3;31,-9;6,3;-12,3;10,-1;10,-1;10,-4;-9,5;-32,-5;-24,-3;-15,5;6,8;-14,-3;-24,-5;-13,-1&quot;<br />galil_offset := 3.65<br />galil_waitoffset := 4.28</p><p>famas_pattern_str := &quot;-4,5;1,4;-6,10;-1,17;0,20;14,20;16,20;-6,12;-20,8;-16,5;-13,2;4,5;23,4;12,6;20,-3;5,0;15,0;3,5;-4,3;-25,-1;-3,2;11,0;15,-7;15,-10&quot;<br />famas_offset := 3.6<br />famas_waitoffset := 4.15</p><p>ump45_pattern_str := &quot;-1,6;-4,8;-2,18;-4,23;-9,23;-3,26;11,17;-4,12;9,13;18,8;15,5;-1,3;5,6;0,6;9,-3;5,-1;-12,4;-19,1;-1,-2;15,-5;17,-2;-6,3;-20,-2;-3,-1&quot;<br />ump45_offset := 3.65<br />ump45_waitoffset := 4.2<br />ump45_offset2 := 3.45<br />ump45_waitoffset2 := 4.2<br />StringSplit, ak_pattern, ak47_pattern_str, `;<br />StringSplit, m4_pattern, m4_pattern_str, `;<br />StringSplit, m4a1s_pattern, m4a1s_pattern_str, `;<br />StringSplit, galil_pattern, galil_pattern_str, `;<br />StringSplit, famas_pattern, famas_pattern_str, `;<br />StringSplit, ump45_pattern, ump45_pattern_str, `;</p><p>if(show_gui){<br />	;GUI<br />	Gui, Show, w200 h250, Script <img src="//forum.script-coding.com/img/smilies/big_smile.png" width="15" height="15" /><br />	;No Recoil<br />	Gui, Add, GroupBox, x10 y10 w170 h90, No Recoil<br />	Gui, Add, Text, x20 y30 vNORECOILTEXT cRed, %key_toggle_norecoil% - toggle: Off<br />	Gui, Add, Text, x20 y50 cBlack, Amount:<br />	Gui, Add, Edit, x70 y45 w55<br />	Gui, Add, UpDown, vNORECOILAMT Range1-20, 1<br />	Gui, Add, Text, x20 y70 w100 vWEAPONRECOILTEXT cBlue, %key_generic_norecoil% - %key_ump45_norecoil%: Default</p><p>	;Autofire<br />	Gui, Add, GroupBox, x10 y110 w170 h50, Auto Fire<br />	Gui, Add, Text, x20 y130 vAUTOFIRETEXT cRed, %key_toggle_autofire% - toggle: Off<br />	;Sensitivity<br />	Gui, Add, GroupBox, x10 y170 w170 h50, Sensitivity<br />	Gui, Add, Text, x20 y190 cBlack, Sensitivity:<br />	Gui, Add, Edit, x80 y185 w30 vSENSITIVITY gSENSCHANGED, %sensitivity%<br />}</p><p>modifier := 2.52 / sensitivity</p><p>previouslyCrouched := false</p><p>previouslyTrigger := false<br />lastColor := 0x000000</p><p>OnExit, GuiClose</p><p>HotKey, *%key_shoot%, shoot<br />HotKey, *%key_pause_script%, pause_script<br />HotKey, *%key_generic_norecoil%, generic_norecoil<br />HotKey, *%key_ak47_norecoil%, ak47_norecoil<br />HotKey, *%key_m4a4_norecoil%, m4a4_norecoil<br />HotKey, *%key_m4a1s_norecoil%, m4a1s_norecoil<br />HotKey, *%key_galil_norecoil%, galil_norecoil<br />HotKey, *%key_famas_norecoil%, famas_norecoil<br />HotKey, *%key_ump45_norecoil%, ump45_norecoil<br />HotKey, *%key_toggle_norecoil%, toggle_norecoil<br />HotKey, *%key_toggle_autofire%, toggle_autofire<br />HotKey, *%key_increase_norecoil_amount%, increase_norecoil_amount<br />HotKey, *%key_decrease_norecoil_amount%, decrease_norecoil_amount<br />HotKey, *%key_hold_trigger%, hold_trigger</p><p>return</p><p>SENSCHANGED:</p><p>GuiControlGet, SENSITIVITY<br />sensitivity := SENSITIVITY<br />modifier := 2.52 / sensitivity</p><p>return</p><p>hold_trigger:</p><p>MouseGetPos, spotX, spotY<br />spotX := spotX + offsetX<br />spotY := spotY + offsetY</p><p>While GetKeyState(key_hold_trigger, &quot;P&quot;){<br />	if(previouslyTrigger){<br />		PixelGetColor, color, %spotX%, %spotY%, RGB<br />		splitColor(color, r1, g1, b1)<br />		splitColor(lastColor, r2, g2, b2)<br />		if((r1 &gt; r2 + tolerance || r1 &lt; r2 - tolerance) || (g1 &gt; g2 + tolerance || g1 &lt; g2 - tolerance) || (b1 &gt; b2 + tolerance || b1 &lt; b2 - tolerance)){<br />			Sleep %trigger_delay%<br />			Random, tempRand, 30, 50<br />			Click down<br />			Sleep %tempRand%<br />			Click up<br />		}<br />		lastColor := color<br />	}else{<br />		PixelGetColor, lastColor, %spotX%, %spotY%, RGB<br />		previouslyTrigger := true<br />	}<br />	Sleep 20<br />}<br />previouslyTrigger := false</p><p>return</p><p>shoot:</p><p>GuiControlGet, NORECOILAMT<br />if(noRecoil &amp;&amp; autofire){<br />	While GetKeyState(key_shoot, &quot;P&quot;){<br />		Random, tempRand, 30, 50<br />		Click down<br />		Sleep %tempRand%<br />		Click up<br />		if(firstShotRestTime &gt; firstShotRestTimeMax){<br />			mouseXY(0, NORECOILAMT)<br />			Random, tempRand, 10, 20<br />			Sleep %tempRand%<br />		}else{<br />			firstShotRestTime += 1<br />			Random, tempRand, 10, 20<br />			Sleep %tempRand%<br />		}<br />	}<br />}else if(noRecoil){<br />	Click down<br />	if(weapon == 1)<br />		Sleep 50<br />	if(weapon == 2)<br />		Sleep 15<br />	if(weapon == 3)<br />		Sleep 15<br />	if(weapon == 4)<br />		Sleep 10<br />	if(weapon == 5)<br />		Sleep 30<br />	if(weapon == 6)<br />		Sleep 15<br />	previouslyCrouched := GetKeyState(key_crouch, &quot;P&quot;)<br />	While GetKeyState(key_shoot, &quot;P&quot;){<br />		if((only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;))){<br />		}<br />		if((GetKeyState(key_crouch, &quot;P&quot;) &amp;&amp; only_norecoil_when_crouched) || (!only_norecoil_when_crouched)){<br />			if(weapon == 1){ ;AK-47<br />				pattern_current_xy := ak_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				current_xy1 := current_xy1 / ak47_offset * modifier<br />				current_xy2 := current_xy2 / ak47_offset * modifier</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 4<br />				;middlePointY := current_xy2 / 4</p><p>				if(29 == A_Index){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />				}else{<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / ak47_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / ak47_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / ak47_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / ak47_waitoffset<br />				}<br />			}else if(weapon == 2){ ;M4A4<br />				pattern_current_xy := m4_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				if(InStr(&quot;1;7;8;9;10;11;12;13;14;19;20;21;22;23;24&quot;, A_Index)){<br />					current_xy1 := current_xy1 / m4_offset2 * modifier<br />					current_xy2 := current_xy2 / m4_offset2 * modifier<br />				}else{<br />					current_xy1 := current_xy1 / m4_offset * modifier<br />					current_xy2 := current_xy2 / m4_offset * modifier<br />				}</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 3<br />				;middlePointY := current_xy2 / 3</p><p>				if(InStr(&quot;1;7;8;9;10;11;12;13;14;19;20;21;22;23;24&quot;, A_Index)){<br />					waitTime := 88 / m4_waitoffset2<br />				}else{<br />					waitTime := 87 / m4_waitoffset<br />				}</p><p>				if(InStr(&quot;4&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 5)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;7&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;8&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 3, current_xy2 - 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;9&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;10&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2 - 10)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;11&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;13&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;14&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;15&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 10, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;16&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 10, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;17&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 3, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;18&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 10, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;19&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 10, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 10, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;23&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 20, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;24&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 10, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;29&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />				}else{<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}<br />			}else if(weapon == 3){ ;M4A1-S<br />				pattern_current_xy := m4a1s_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				current_xy1 := current_xy1 / m4a1s_offset * modifier<br />				current_xy2 := current_xy2 / m4a1s_offset * modifier</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 3<br />				;middlePointY := current_xy2 / 3</p><p>				if(InStr(&quot;1&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 3)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else if(InStr(&quot;6&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else if(InStr(&quot;7&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else if(InStr(&quot;9&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else if(InStr(&quot;11;13&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else if(InStr(&quot;14&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 2, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 2, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}else{<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep 99 / m4a1s_waitoffset<br />				}<br />			}else if(weapon == 4){ ;GALIL AR<br />				pattern_current_xy := galil_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				current_xy1 := current_xy1 / galil_waitoffset * modifier<br />				current_xy2 := current_xy2 / galil_waitoffset * modifier</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 3<br />				;middlePointY := current_xy2 / 3</p><p>				if(16 == A_Index){<br />					waitTime := 50 / galil_waitoffset<br />				}else{<br />					waitTime := 90 / galil_waitoffset<br />				}</p><p>				if(InStr(&quot;4&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;9&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 7, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 7, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 7, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 7, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;10&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;11&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 3)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 3)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 3)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 - 3)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;15&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;16&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2 + 10)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;17;18&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 + 3, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;19&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2 + 5)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;20;21&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}else if(InStr(&quot;25;26&quot;, A_Index)){<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 8, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 8, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1 - 5, current_xy2)<br />					Sleep %waitTime%<br />				}else{<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />					if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />						mouseXY(current_xy1, current_xy2)<br />					Sleep %waitTime%<br />				}<br />			}else if(weapon == 5){ ;FAMAS<br />				pattern_current_xy := famas_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				current_xy1 := current_xy1 / famas_waitoffset * modifier<br />				current_xy2 := current_xy2 / famas_waitoffset * modifier</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 3<br />				;middlePointY := current_xy2 / 3</p><p>				if(InStr(&quot;12&quot;, A_Index)){<br />					waitTime := 87 / famas_waitoffset<br />				}if(InStr(&quot;18;20;22&quot;, A_Index)){<br />					waitTime := 80 / famas_waitoffset<br />				}if(InStr(&quot;21&quot;, A_Index)){<br />					waitTime := 84 / famas_waitoffset<br />				}else{<br />					waitTime := 88 / famas_waitoffset<br />				}</p><p>				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />			}else if(weapon == 6){ ;UMP-45<br />				pattern_current_xy := ump45_pattern%A_Index%<br />				StringSplit, current_xy, pattern_current_xy, `,<br />				if(InStr(&quot;18;21&quot;, A_Index)){<br />					current_xy1 := current_xy1 / ump45_offset2 * modifier<br />					current_xy2 := current_xy2 / ump45_offset2 * modifier<br />				}else{<br />					current_xy1 := current_xy1 / ump45_offset * modifier<br />					current_xy2 := current_xy2 / ump45_offset * modifier<br />				}</p><p>				;average current and next points<br />				;middlePointX := current_xy1 / 3<br />				;middlePointY := current_xy2 / 3</p><p>				if(InStr(&quot;18;21&quot;, A_Index)){<br />					waitTime := 85 / ump45_waitoffset2<br />				}else{<br />					waitTime := 90 / ump45_waitoffset<br />				}</p><p>				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />				if(!(only_norecoil_when_crouched &amp;&amp; !previouslyCrouched &amp;&amp; GetKeyState(key_crouch, &quot;P&quot;)))<br />					mouseXY(current_xy1, current_xy2)<br />				Sleep %waitTime%<br />			}else if(weapon == 0){ ;Generic<br />				if(firstShotRestTime &gt; firstShotRestTimeMax){<br />					if(firstShotRecoilTime &gt; firstShotRecoilTimeMax){<br />						mouseXY(0, NORECOILAMT)<br />						Random, tempRand, 200, 220<br />						Sleep %tempRand%<br />					}else{<br />						firstShotRecoilTime += 1<br />						mouseXY(0, NORECOILAMT * 2)<br />						Random, tempRand, 20, 40<br />						Sleep %tempRand%<br />					}<br />				}else{<br />					firstShotRestTime += 1<br />					Random, tempRand, 20, 40<br />					Sleep %tempRand%<br />				}<br />			}<br />		}<br />	}<br />	Click up<br />}else if(autofire){<br />	While GetKeyState(key_shoot, &quot;P&quot;){<br />		Random, tempRand, 30, 50<br />		Click down<br />		Sleep %tempRand%<br />		Click up<br />		Sleep %tempRand%<br />	}<br />}else{<br />	Click down<br />	KeyWait, %key_shoot%<br />	Click up<br />}</p><p>firstShotRecoilTime := 0<br />firstShotRestTime := 0</p><p>return</p><p>pause_script:</p><p>Suspend</p><p>return</p><p>generic_norecoil:</p><p>weapon := 0<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: Default<br />if(show_tooltip){<br />	Tooltip, Default<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>ak47_norecoil:</p><p>weapon := 1<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: AK-47<br />if(show_tooltip){<br />	Tooltip, AK-47<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><br /><p>m4a4_norecoil:</p><p>weapon := 2<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: M4A4<br />if(show_tooltip){<br />	Tooltip, M4A4<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>m4a1s_norecoil:</p><p>weapon := 3<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: M4A1-S<br />if(show_tooltip){<br />	Tooltip, M4A1-S<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>galil_norecoil:</p><p>weapon := 4<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: Galil AR<br />if(show_tooltip){<br />	Tooltip, Galil AR<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>famas_norecoil:</p><p>weapon := 5<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: FAMAS<br />if(show_tooltip){<br />	Tooltip, FAMAS<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>ump45_norecoil:</p><p>weapon := 6<br />if(show_gui)<br />	GuiControl, , WEAPONRECOILTEXT, %key_generic_norecoil% - %key_ump45_norecoil%: Ump-45<br />if(show_tooltip){<br />	Tooltip, Ump-45<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>increase_norecoil_amount:</p><p>if(show_gui){<br />	GuiControlGet, NORECOILAMT<br />	NORECOILAMT := NORECOILAMT + 1<br />	GuiControl, , NORECOILAMT, %NORECOILAMT%<br />}<br />if(show_tooltip){<br />	Tooltip, Amount: %NORECOILAMT%<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>decrease_norecoil_amount:</p><p>if(show_gui){<br />	GuiControlGet, NORECOILAMT<br />	NORECOILAMT := NORECOILAMT - 1<br />	GuiControl, , NORECOILAMT, %NORECOILAMT%<br />}<br />if(show_tooltip){<br />	Tooltip, Amount: %NORECOILAMT%<br />	SetTimer, ResetTooltip, 500<br />}</p><p>return</p><p>toggle_norecoil:</p><p>noRecoil := !noRecoil<br />if(noRecoil){<br />	if(show_gui){<br />		GuiControl, , NORECOILTEXT, %key_toggle_norecoil% - toggle: On<br />		Gui, Font, cGreen<br />		GuiControl, Font, NORECOILTEXT<br />	}<br />	if(show_tooltip){<br />		Tooltip, No Recoil On<br />		SetTimer, ResetTooltip, 500<br />	}<br />}else{<br />	if(show_gui){<br />		GuiControl, , NORECOILTEXT, %key_toggle_norecoil% - toggle: Off<br />		Gui, Font, cRed<br />		GuiControl, Font, NORECOILTEXT<br />	}<br />	if(show_tooltip){<br />		Tooltip, No Recoil Off<br />		SetTimer, ResetTooltip, 500<br />	}<br />}</p><p>return</p><p>toggle_autofire:</p><p>autofire := !autofire<br />if(autofire){<br />	if(show_gui){<br />		GuiControl, , AUTOFIRETEXT, %key_toggle_autofire% - toggle: On<br />		Gui, Font, cGreen<br />		GuiControl, Font, AUTOFIRETEXT<br />	}<br />	if(show_tooltip){<br />		Tooltip, Autofire On<br />		SetTimer, ResetTooltip, 500<br />	}<br />}else{<br />	GuiControl, , AUTOFIRETEXT, %key_toggle_autofire% - toggle: Off<br />	Gui, Font, cRed<br />	GuiControl, Font, AUTOFIRETEXT<br />	if(show_tooltip){<br />		Tooltip, Autofire Off<br />		SetTimer, ResetTooltip, 500<br />	}<br />}</p><p>return</p><p>;Functions</p><p>ResetTooltip:</p><p>Tooltip,</p><p>return</p><p>mouseXY(x, y)<br />{<br />	if(invert_y_axis)<br />		DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,-y,uint,0,int,0)<br />	else<br />		DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0)<br />}</p><p>splitColor(color, ByRef r, ByRef g, ByRef b)<br />{<br />&nbsp; &nbsp; r := color &gt;&gt; 16 &amp; 0xFF<br />&nbsp; &nbsp; g := color &gt;&gt; 8 &amp; 0xFF<br />&nbsp; &nbsp; b := color &amp; 0xFF<br />}</p><p>GuiClose:</p><p>FileDelete, %A_WorkingDir%\script_save.txt<br />FileAppend, %sensitivity%, %A_WorkingDir%\script_save.txt</p><p>ExitApp</p><p>return]</p>]]></description>
			<author><![CDATA[null@example.com (lzzl7)]]></author>
			<pubDate>Mon, 20 Dec 2021 16:50:11 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151322#p151322</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151259#p151259</link>
			<description><![CDATA[<p>Не лучший вариант. Просто оформите код тегом [cоde], как написано в правилах.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 18 Dec 2021 16:30:36 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151259#p151259</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151258#p151258</link>
			<description><![CDATA[<p>Так,подойдет?</p>]]></description>
			<author><![CDATA[null@example.com (lzzl7)]]></author>
			<pubDate>Sat, 18 Dec 2021 16:16:45 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151258#p151258</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151256#p151256</link>
			<description><![CDATA[<p><strong>lzzl7</strong>, если вы не очень хорошо понимаете, что вам написали, тогда вряд ли. Добавьте точки во все предложения. Оформите код, как положено, в правилах есть ссылка. Посмотрите, как код выглядит в других постах.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 18 Dec 2021 15:09:46 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151256#p151256</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151253#p151253</link>
			<description><![CDATA[<p><strong>teadrinker</strong> Возможно ли решить проблему?</p>]]></description>
			<author><![CDATA[null@example.com (lzzl7)]]></author>
			<pubDate>Sat, 18 Dec 2021 14:07:52 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151253#p151253</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151244#p151244</link>
			<description><![CDATA[<p><strong>lzzl7</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/viewtopic.php?id=5421">составление заголовков</a>, оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a>, заглавные <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">буквы</a> в начале и точки в конце предложений.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 18 Dec 2021 11:08:24 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151244#p151244</guid>
		</item>
		<item>
			<title><![CDATA[AHK: CS GO перестал работать скрипт]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=151243#p151243</link>
			<description><![CDATA[<p>Здравствуйте уважаемые форумчане!<br />Пожалуйста, уделите немного внимания.<br />Перестал работать скрипт и не могу понять в чем причина, тк я в этом полный 0 , решил обратиться к опытным юзерам.<br />Вот сам скрипт.</p>]]></description>
			<author><![CDATA[null@example.com (lzzl7)]]></author>
			<pubDate>Sat, 18 Dec 2021 09:51:36 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=151243#p151243</guid>
		</item>
	</channel>
</rss>
