AutoHotkey Community

It is currently May 24th, 2012, 5:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: February 10th, 2007, 11:43 pm 
can anyone post a working script for the "prone and shot" with a roll?

go prone "Z"
with "A"
then zoom "Right mouse button"

to be used in combination with a working anti recoil single shot ahk
i already have working...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2007, 4:51 am 
Offline

Joined: October 14th, 2006, 8:46 am
Posts: 18
Code:
;; ProneZoomFire - Player goes prone, then equips scope, then fires a shot.
;;   
;;   Usage:  when game is running, press MIDDLE BUTTON
;;

;;;;;;;;;;;;;
;; directives
;;;;;;;;;;;;;

#installkeybdhook
#installmousehook
#SingleInstance force
#NoEnv
SendMode Input

;;;;;;;;;;;;;;;;;;;;
;; execution section
;;;;;;;;;;;;;;;;;;;;

ProneZoomFire=MButton
Hotkey, %ProneZoomFire%, ProneZoomFire

;; good for most weapons
fixAmount = 3

;; for PAC bf2142 pistol and the GANZ, use a high recoil fix
;; fixAmount = 7

;; end of execution section return
return

;;;;;;;;;
;; labels
;;;;;;;;;

ProneZoomFire:
  ;; go prone
  prone()
 
  ;; zoom (alternate fire)
  zoom()
 
  ;; fires two shots (may fire more than twice depending on gun you're using)
  fireWeapon(2)
 
  ;; fires all 8 rounds in the bf2142 PAC pistol very quickly
  ;;fire(8)
return

;;;;;;;;;;;;
;; functions
;;;;;;;;;;;;z

prone()
{
  SendInput {z down}
  Sleep 60
  SendInput {z up}
  Sleep 100
}

zoom()
{
  SendInput {RButton Down}
  Sleep 60
  SendInput {RButton Up}
  Sleep 100
}

fireWeapon(number)
{
  Global fixAmount
 
  loop %number%
    {
      SendInput {LButton Down}
      Sleep 80
      SendInput {LButton Up}
      Sleep 80
      recoilFix(fixAmount)     
    }
}

recoilFix(amount)
{
  DllCall("mouse_event",uint,1,int,x,int,amount,uint,0,int,0)
}


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, engunneer, Google Feedfetcher, jyloup, Kirtman, Klark92, kwfine, Rathgar2 and 69 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group