Jump to content


Photo

MW2 Quick Scope Script!


  • Please log in to reply
23 replies to this topic

#1 DracoX872

DracoX872
  • Members
  • 4 posts

Posted 25 June 2010 - 03:06 AM

---------------------
This is a pretty simple script for Call of Duty: Modern Warfare 2.

I saw a Quick Scope AutoHotKey Request on google and saw it answered and a code given, but that code doesn't seem to work. The maker of the code forgot to put {RButton Down} and left it at {RButton}.
I was wondering why that didn't work and looked to check. With a little bit of research I found the problem, took me a while cause im new to AHK.

Its designed so that you can quick scope, not the super speedy luck way, but so that you have 200 miliseconds to aim before it fires.

This is the non-Sleight of Hand Pro version which gives you a bit more time to quick scope and is much more accurate in a way.

~NumLock::Suspend, toggle

$Mbutton::

{    GetKeyState, state, Mbutton, T 
     if state = D

    {
      send {RButton Down}
      send {Shift Down}
      sleep 600
      MouseClick,left
      send {Shift Up}
      send {RButton Up}
   }

else

      {
	
        MouseClick,middle

       }
}


This is the Sleight of Hand Pro version which is pretty much a speedy scope-in and gives you 200 milliseconds before you fire. Its not super accurate, but its great for shooting targets at medium range or even close, but not really lol.


~NumLock::Suspend, toggle

$Mbutton::

{    GetKeyState, state, Mbutton, T 
     if state = D


    {
      send {RButton Down}
      sleep 400
      MouseClick,left
      send {RButton Up}
   }

else

    {
	MouseClick,middle

       }
}




Directions- The best idea is to put a marker on your computer monitor so you can identify where the bullet will land. I personally tore a small piece of sticky note into an arrow shape and put it right in the center of my monitor. When you're playing, remember that you can still click after you zoomed in or while you're zooming in. This way, if someone is close or you've already aimed at them, you don't have to wait for the AHk to shoot; instead you could shoot early to save your life and what-not. Thats about it!

Credits- DracoX872 (ME!)- For the script
CleverUsername - For helping me test the script out and completely destroying me in a private match because he was testing out the Sleight of Hand Version, while i was using the Regular version.

Enjoy!

#2 Guests

  • Guests

Posted 29 June 2010 - 09:21 AM

Sorry im new to all this but how do you get it to shoot?

#3 Guests

  • Guests

Posted 29 June 2010 - 09:25 AM

nvm im stupid and i found it

#4 Sweet kid

Sweet kid
  • Guests

Posted 29 June 2010 - 09:38 AM

Hey works perfectly but what would i change to make it shoot abit earlier. (non sleight of hand one) :?:

#5 Guests

  • Guests

Posted 08 July 2010 - 10:46 AM

Instead of putting something on your monitor, just use AHK.

#SingleInstance force
#Persistent

OnExit, ExitRoutine
xpos := A_ScreenWidth/2
ypos := A_ScreenHeight/2
hDrwArea := DllCall("GetDC", "uint", Null)
SetTimer, SetPixel, 1


SetPixel:

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 2, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 2, "uint", 255, "uint", 0, "uint", 0)


DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 2, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 2, "uint", 255, "uint", 0, "uint", 0)


DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos - 2, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos, "int", ypos + 2, "uint", 255, "uint", 0, "uint", 0)


DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 2, "int", ypos, "uint", 255, "uint", 0, "uint", 0)

; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 6, "int", ypos + 6, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 6, "int", ypos - 6, "uint", 255, "uint", 0, "uint", 0)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)

DllCall("SetPixel", "uint", hDrwArea, "int", xpos - 9, "int", ypos + 9, "uint", 255, "uint", 0, "uint", 0)
DllCall("SetPixel", "uint", hDrwArea, "int", xpos + 9, "int", ypos - 9, "uint", 255, "uint", 0, "uint", 0)

Return

ExitRoutine:
DllCall("ReleaseDC", UInt, 0, UInt, hDrwArea)
DllCall("FreeLibrary", "UInt", hDrwArea)
ExitApp

Non-intrusive, though the flicker might annoy you. I personally sometimes forget to run it and only notice it after playing for awhile.

#6 Believer

Believer
  • Members
  • 41 posts

Posted 11 July 2010 - 03:28 PM

Interesting approach, for me at least, this does not work while in game. I do see the overlay out of game though. Running Win7 64bit, if it matters t all.

#7 Guests

  • Guests

Posted 12 July 2010 - 03:50 PM

Odd. I run the exact same.
Erm, only thing I can think of is, do you run the game in window mode? I run it in window mode and havn't tried it while full screen.

I got how to do it here. Follow that link and look at the other way you can do this. The other way (splash image) described in that topic might work.

#8 Believer

Believer
  • Members
  • 41 posts

Posted 12 July 2010 - 04:00 PM

I'll have to take a look later, but I don't run it in windowed mode, and maybe that's why.
Thanks!

#9 7779876

7779876
  • Guests

Posted 13 July 2010 - 02:08 PM

what button do i press for the sleight of hand quickscope

#10 lolac

lolac
  • Guests

Posted 14 July 2010 - 01:09 AM

Sorry im new to all this but how do you get it to shoot?

really new to this, what do u put the script into to run it?

#11 DracoX872

DracoX872
  • Members
  • 4 posts

Posted 14 July 2010 - 04:29 PM

Actually, I prefer having to put a sticky note peice on my screen cuz im weird like that.

But your flickering pixel thing... can you change the alpha of the pixel so its sort of transparent?


To everyone else:

To run this script, this must be your controls.

Left Click= Shoot

Right Click= Hold Aim Down Sight This is different from Aim Down Sight where you have to click to aim down the sight and click again to get out of your weapon sights.

Shift= Hold your breath for steady shots[/u]

#12 Helghastnl

Helghastnl
  • Guests

Posted 23 September 2010 - 11:05 PM

How do i chance the MouseClick,middle to my mouse 4 key ? plz help

#13 AnotherGuest

AnotherGuest
  • Guests

Posted 19 October 2010 - 02:36 PM

How do i chance the MouseClick,middle to my mouse 4 key ? plz help


Yeah, I would also like to know that. I've changed a few binds in this script, which refer to mouse buttons 4 and 5. It all works fine, but the script won't work if I change the "MouseClick,middle" to "MouseClick,x1".

PS It seems that the autoscriptwriter does not record the 4 and 5 mouse buttons.

I'm running Win 7 ultimate 64bit

#14 Bervuna

Bervuna
  • Guests

Posted 30 October 2010 - 07:54 PM

Hi where do I put that script?

#15 hornet1dk

hornet1dk
  • Members
  • 1 posts

Posted 24 November 2010 - 03:49 PM

Nice works perfect! i just cant download the FAST version? ;)