Code:
;===============================================================================
; QuickScope plugin for ExternalHack, Modern Warfare 2 Edition
; Version 1.5, 18 January 2011
;===============================================================================
;===============================================================================
; Copyright © 2011 Георгий Минулин (also known as 63OR63)
; This file is part of QuickScope plugin for ExternalHack, Modern Warfare 2 Edition.
; QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
; QuickScope plugin for ExternalHack, Modern Warfare 2 Edition is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
; You should have received a copy of the GNU General Public License along with QuickScope plugin for ExternalHack, Modern Warfare 2 Edition. If not, see <https://www.gnu.org/licenses/>.
;===============================================================================
;===============================================================================
; AutoIt: Copyright © 1999-2003 Jonathan Bennett <jon@hiddensof*****m>
; AutoHotkey: Copyright © 2003-2009 Chris Mallett <support@autohotkey.com>
;===============================================================================
;-------------------------------------------------------------------------------
; Settings
;-------------------------------------------------------------------------------
#NoEnv
#SingleInstance force
#MaxThreadsPerHotkey 1
SetWorkingDir %A_ScriptDir%
#IfWinActive ahk_class IW4
;-------------------------------------------------------------------------------
; Variables
;-------------------------------------------------------------------------------
Qs := 0
Fp := 0
Sn := 0
;-------------------------------------------------------------------------------
; Preferences Loading
;-------------------------------------------------------------------------------
IniRead, EnableQuickscopeToggle, settings.ini, General, EnableQuickscopeToggle
IniRead, EnableFoolproofToggle, settings.ini, General, EnableFoolproofToggle
IniRead, EnableFullautoQuickscope, settings.ini, General, EnableFullautoQuickscope
IniRead, EnableHalfmanualQuickscope, settings.ini, General, EnableHalfmanualQuickscope
IniRead, EnableNoBorders, settings.ini, General, EnableNoBorders
IniRead, h_SniperRifleToggle, settings.ini, Hotkeys, SniperRifleToggle
IniRead, h_QuickscopeToggle, settings.ini, Hotkeys, QuickscopeToggle
IniRead, h_FoolproofToggle, settings.ini, Hotkeys, FoolproofToggle
IniRead, h_FullautoQuickscope, settings.ini, Hotkeys, FullautoQuickscope
IniRead, h_HalfmanualQuickscope, settings.ini, Hotkeys, HalfmanualQuickscope
IniRead, g_Aim, settings.ini, GameKeyBindings, Aim
IniRead, g_Fire, settings.ini, GameKeyBindings, Fire
IniRead, a_Aimbot, settings.ini, ExternalHackKeyBindings, Aimbot
;-------------------------------------------------------------------------------
; Hotkeys
;-------------------------------------------------------------------------------
HotKey, %h_SniperRifleToggle%, SniperRifleToggle
if EnableQuickscopeToggle
{
HotKey, %h_QuickscopeToggle%, QuickscopeToggle
}
if EnableFoolproofToggle
{
HotKey, %h_FoolproofToggle%, FoolproofToggle
}
if EnableFullautoQuickscope
{
HotKey, $*%h_FullautoQuickscope%, FullautoQuickscope
}
if EnableHalfmanualQuickscope
{
HotKey, $*%h_HalfmanualQuickscope%, HalfmanualQuickscope
}
if EnableNoBorders
{
NoBorders:
Loop
{
WinWaitClose, ahk_class IW4
{
FullScreen := 0
}
WinWait, ahk_class IW4
{
if not FullScreen = 1
{
FullScreen := 1
WinActivate
WinSet, Style, -0xC00000
WinMove, 0, 0
WinMaximize
}
}
sleep 10000
}
return
}
FeatureOn(PopupText)
{
Gui, Destroy
Gui, +AlwaysOnTop +ToolWindow +LastFound -SysMenu -Caption
Gui, Color, 000000
WinSet, Transparent, 200
Gui, Font, s8, norm, Verdana
Gui, Add, Text, x5 y5 c00ff00, %PopupText%
Gui, Show, NoActivate X0 Y18
sleep 300
Gui, Destroy
}
FeatureOff(PopupText)
{
Gui, Destroy
Gui, +AlwaysOnTop +ToolWindow +LastFound -SysMenu -Caption
Gui, Color, 000000
WinSet, Transparent, 200
Gui, Font, s8, norm, Verdana
Gui, Add, Text, x5 y5 cff0000, %PopupText%
Gui, Show, NoActivate X0 Y18
sleep 300
Gui, Destroy
}
SniperRifleToggle:
if Sn < 1
{
Sn += 1
if Sn = 1
{
SoundBeep, 100, 50
SoundBeep, 100, 50
SoundBeep, 100, 50
FeatureOn("BARRETT SELECTED")
}
}
else
{
Sn := 0
SoundBeep, 400, 200
FeatureOn("INTERVENTION DELECTED")
}
return
QuickscopeToggle:
if Qs < 2
{
Qs += 1
if Qs = 1
{
if not EnableFullautoQuickscope
{
Qs := 2
SoundBeep, 800, 100
FeatureOn("HALF-MANUAL ACTIVATED")
}
else
{
SoundBeep, 600, 100
FeatureOn("FULL-AUTO ACTIVATED")
}
}
else if Qs = 2
{
if not EnableHalfmanualQuickscope
{
Qs := 0
SoundBeep, 200, 100
SoundBeep, 200, 100
FeatureOff("SCRIPT DEACTIVATED")
}
else
{
SoundBeep, 800, 100
FeatureOn("HALF-MANUAL ACTIVATED")
}
}
}
else
{
Qs := 0
SoundBeep, 200, 100
SoundBeep, 200, 100
FeatureOff("SCRIPT DEACTIVATED")
}
return
FoolproofToggle:
if Fp < 1
{
Fp += 1
if Fp = 1
{
SoundBeep, 1000, 300
FeatureOn("FOOLPROOF ACTIVATED")
}
}
else
{
Fp := 0
SoundBeep, 200, 100
SoundBeep, 200, 100
FeatureOff("FOOLPROOF DEACTIVATED")
}
return
FullautoQuickscope:
if Qs = 1
{
Loop
{
Send {%g_Aim%}
if Fp = 1
{
BlockInput MouseMove
}
Send {%a_Aimbot% down}
Sleep 280
Send {%g_Fire%}
if Fp = 1
{
BlockInput MouseMoveOff
}
Send {%a_Aimbot% up}
Send {%g_Aim%}
if Sn = 0
{
Sleep 600
}
else if Sn = 1
{
Sleep 300
}
if not GetKeyState(h_FullautoQuickscope, "P")
break
}
}
else
{
Send {%h_FullautoQuickscope%}
}
return
HalfmanualQuickscope:
if Qs = 2
{
Loop
{
Send {%a_Aimbot% down}
Sleep 50
Send {%g_Fire%}
Send {%a_Aimbot% up}
keywait, %g_Fire%, u
if not GetKeyState(h_HalfmanualQuickscope, "P")
break
}
}
else
{
Send {%h_HalfmanualQuickscope%}
}
return
Let us make a deal: if you won't find here stolen code, you'll come here to Siberia and kiss my ass?