AutoHotkey Community

It is currently May 27th, 2012, 6:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Special anti recoil
PostPosted: September 13th, 2008, 3:27 am 
I have looked around and i have found a couple of scripts for this, but they are all desighed for battle field 2. For my fps, i have already figured out how to rapid/auto fire. What I need now is a way to counter the recoil.

Basically I need a script that anti-recoils(basicly move my mouse downward) a certain amount after each shot,for a certain amount of time,because the gun stops recoiling after the 5th or 6th bullet.

Can someone help me with this??

[ Moderator!: Swapped Username and Subject ]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2008, 3:32 am 
Offline

Joined: September 13th, 2008, 3:29 am
Posts: 1
this is by script right now

SendMode Play
~*LButton::
loop
{
GetKeyState, LButtonState, LButton, P
GetKeyState, CapsState, CapsLock, T
if (LButtonState = "U") || (CapsState = "U")
{
break
}
else
{
send {click down}
sleep, 38
send {click up}
sleep, 38
MouseMove, 0, 10, 30, R
}
}
Return


What i want is for it to continue to rapidfire, but stop anti-recoiling after a certain number of shots or a certain amount of time.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Try this.
PostPosted: October 23rd, 2010, 4:47 pm 
I'm not claiming credit for this, as the meat of it is somebody else's work, but I did modify it to stop the mouse movement after a certian number of instances, should be ideal for what you need.

Code:
;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
; FUNCTIONAL VERSION
; Script Function:
;   Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv
SendMode Input

_auto := true

~LButton::autofire()
MButton::_auto := ! _auto
F1::ExitApp

autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
SendInput {LButton DownTemp}
Sleep 32
if a_index < 5
mouseXY(0, -6)
SendInput {LButton Up}
Send {Q}
Sleep 100
}
else
break

} ;; loop
} ;; if
} ;; autofire()


mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}




Remove the line "Send{Q}" if you aren't playing BFBC2.
The line "if a_index < 5" is the one you're concerned with, change the 5 to whatever you need, if you need anti-recoil off after 10 shots change it to 10.
The line "mouseXY(0, -6)" will need tweaking to change the amount of anti-recoil, I use inverted mouse, so the figure is negative for me, but it's positive if you don't use invert.
Finally, change the values on the "sleep" lines to change how fast it fires, it's in milliseconds (thousandths of a second)
Hope this helps mate.


Report this post
Top
  
Reply with quote  
 Post subject: Hacker!
PostPosted: October 24th, 2010, 10:39 pm 
Offline

Joined: November 16th, 2007, 8:31 am
Posts: 10
Location: California, USA
Nobody likes playing against hackers. Learn to play within the confines of the game. It is the rules that make it fun. What you are doing is just as bad as the guy who figures out how to make his character invisible so that he can kill anyone without being killed.

_________________
Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened.

-Sir Winston Churchill


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2010, 11:46 pm 
Offline

Joined: February 29th, 2008, 8:36 pm
Posts: 901
Location: Vault 7
Meh, cheating/cheaters are fun, as long as it is done only for fun. People who cheat in secret only to cover for their own poor skills are lame. But pulling pranks on friends, inventing new ways to play, adding a handicap (with the consent of opponents), having fun scripting, and pushing a game to its limits... that's all great fun.

_________________
ImageDebugging,Container,FileContainer,Object Preferences,ShellFileOperation


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], dra, HotkeyStick, migz99, Wicked, XstatyK and 56 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