Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

apb:reloaded no-recoil script


  • Please log in to reply
15 replies to this topic
noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

now i was wondering if some one could help me out here if you have played apb and used the tommy gun you know how intense the recoil is and its really bad i could look at a building and shott from bottom to top with less than 3 seconds and i was wondering if someone would give me an autohotkey script for no recoil on the tommy gun and if you dont believe me on the recoil look at this link

http://www.youtube.c...h?v=SbFG7DGVsKA

that recoil is ridiculous i dont know how thats a useable weapon without aim biot or no recoil scripts so please help me and yes im so sorry im kinda new to AHK but please help me



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013

Hi noxian_122112,

 

I've never played the game and I don't know how long it would take to get the tommy gun so this is untested but here is a post that looks like it does what you want, the replies to the original post explain what the script does so if needed you might be able to figure out how to modify it.

 

Most likely you'll need to change:

mouseXY(0, 6)

to move it more than 6.


My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

did you see the video and i almost have the tommy gun im gonna have it permanent through promotional stuff but ya the recoils way intense and i need you to be more specific 



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013

This code here: from this post is said to be an anti-recoil script

#NoEnv
SendMode Input

_auto := true

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

autofire()
{
  global _auto
  if _auto
  {
    Loop
    {
      if GetKeyState("LButton", "P")
      {
        Sleep 85
        mouseXY(0, 6)
        Sleep 45
      }
      else
        break
    } ;; loop
  } ;; if
} ;; autofire()

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

It moves the mouse down 6 pixels every 50ms while the left mouse button is held.

 

 

Most likely you'll need to change:

mouseXY(0, 6)

to move it more than 6.

I said this since the tommy gun looked like it had a lot of recoil so I think you will need to change the number '6' to a higher number depending on testing.

 

Have you tried this anti-recoil script out on other weapons with recoil yet?

Or on the desktop? you can see your mouse moving down when you hold down the left mouse button.


My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

im gonna try it but how do i put it to a hotkey because i have my autofire on insert sorry im kinda really new to this im still bit confused on making the script and i know im sorry  but id really appreciate the help



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013

No problem,

 

In the script above you see these three lines:

~LButton::autofire()
+LButton::_auto := ! _auto
F1::ExitApp
  1. ~LButton::autofire() says => when I press the LButton down run the autofire() function and make sure the current application sees the LButton so it doesn't stop you from clicking with it.
  2. +LButton::_auto := ! _auto says => when I press Shift + LButton toggle the autofire script to work or not
  3. F1::ExitApp says => exit the script

So one thing you could do is put the anti-recoil script in a new script file by itself and double click the file to start it.  By default the script is working to turn it of you could press Shift + LButton(Left Mouse Button)

 

So when you want to make your mouse move down when your pressing the LButton have it on, when you don't want it on press Shift + LButton to turn it off, then press Shift + LButton to turn it back on later.

 

The '~' :

When the hotkey fires, its key's native function will not be blocked (hidden from the system)


My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

ok but im mixxed up which ones auto fire and just show me the no recoil but do i put the script file anywhere specifically



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013

Where you put the script file is up to you, I generally put all mine together in a file like 'My Documents/AutoHotkey'.  If you keep using autohotkey you might start to need libraries which contain extra functions, these are generally put in 'My Documents/AutoHotkey/Lib' or 'path-where-your-script-is-save.ahk/Lib'.  You can put the anti-recoil script in the same file as your other one if you want it should make a difference.


My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

ok but which one specifically is the anti recoil and i can just put on my desktop? 



noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

just send the specific script here so i can put it in and thank you so much



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013

HI noxian_122112, I guess I'm just not understanding you "just send the specific script here so i can put it in and than you so much" this here is the entire anti-recoil script it doesn't have anything extra, that is all it does:

 

#NoEnv
SendMode Input

_auto := true ;Toggle for the anti-recoil being on or off. default is on

~LButton::autofire() ; When the LButton is pressed run the autofire() function
+LButton::_auto := ! _auto ;Shift + LButton used to toggle the anti-recoil on and off
F1::ExitApp ; F1 used to exit the ahk script file

; autofire() function, name is misleading could easily be antiRecoil()
autofire()
{
  global _auto 
  if _auto ; if _auto == true. i.e. is anti-recoil on? 
  { ; anti-recoil on?  If yes do this
    Loop ; Continuously loop until a 'break' command
    {
      if GetKeyState("LButton", "P") ; If LButton is pressed
      { ; LButton pressed? If yes do this
        Sleep 85 ; sleep for 85 milliseconds
        mouseXY(0, 6) ;Call the mouseXY() function which moves the mouse the specified distance. mouseXY( X, Y,)
        Sleep 45 ; sleep for 45milliseconds
      }
      else ;LButton pressed? If no do this, i.e. exit the loop
        break ;will stop the loop
    } ;; loop
  } ;; if
} ;; autofire() ; anti-recoil on? If no do nothing

mouseXY(x,y)
{
  DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0) ; moves the mouse could easily be the built in autohotkey MouseMove, X, Y
}

When you hold the "Left Mouse Button" i.e. (I'm assuming that makes you fire in APB) it moves the mouse down 6 pixels every 50millisecond.

I've added some comments to better explain the script from my understanding.


My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

thank you i understad alot better but i have 2 last and final questions im sorry! but still thank you i really appreciate you putting your time and effort into helrping me but what is the default button to switch it on and off and say if i wanted to lower or higher the ammount of pixels the mouse moves down would it be right here in the script 

 

 

 

 ----------->  mouseXY(0, 6) <----------



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013
  1. +LButton::_auto := ! _auto.  This is the hotkey to turn it on and off. On = You hold mouse button down, your mouse will move down.  Off = You hold mouse button down, nothing special happens.
    1. + is shift
    2. LButton is Left Mouse Button
  2. Yes, changing 'mouseXY(0,6)' would change how much the mouse moves

My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm


noxian_122112
  • Members
  • 9 posts
  • Last active: Aug 11 2013 03:54 AM
  • Joined: 10 Aug 2013

so if i changed the 6 to a bigger number itd move down faster and what about the digit before the 6



lifeweaver
  • Members
  • 868 posts
  • Last active: Jan 25 2016 01:29 AM
  • Joined: 04 Mar 2013
  1. Yes bigger means it moves further
  2. The digit before the 6 is the X positioning.
    1. X is movement left or right
    2. Y is movement up or down

My script runs in A_AhkVersion:=1.1.22.07, get the latest version at http://ahkscript.org/download/

Check out this AutoHotkey tutorial: http://ahkscript.git...o/AHK_Tutorial/

Read the documentation: http://ahkscript.org.../AutoHotkey.htm