 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
bimack209 Guest
|
Posted: Sun Nov 22, 2009 8:59 am Post subject: 180 degree turn in-game |
|
|
i'm trying to make a script to make a 180 degree turn in a first person shooter known as urban terror. i know it's possible because i've seen a demo of someone doing it, and they said they used autohotkey. i tried their script, but that didn't work because we probably have different screen resolutions and i'm doing something wrong.
so, i tried making it myself.
since my screen is 1280x800 and the first value of mousemove is x, i tried:
g::mousemove, 640, 0, 0, R
it appears to move to random positions, doesn't work too well. see, what i think might be the problem is, is that the crosshair in game is always in the center, i'm not sure if autohotkey recognizes that as the current mouse position.
anyway, could i get some help please? |
|
| Back to top |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Sun Nov 22, 2009 1:45 pm Post subject: |
|
|
| It all depends on your sensitivity in game. exacly how many seconds or milliseconds does it take to 180 in the game with your current mouse settings? |
|
| Back to top |
|
 |
jps
Joined: 02 Sep 2006 Posts: 279 Location: Scotland
|
Posted: Sun Nov 22, 2009 6:56 pm Post subject: |
|
|
| Code: | xVar := 640
SpeedVar := 0
up::xVar += 10
Down::xVar -= 10
Right := SpeedVar++
Left := SpeedVar--
Enter::FileAppend, xvar = %xvar% `n SpeedVar = %SpeedVar%, C:\somefile.txt
g::mousemove, %xvar%, 0, %Speedvar%, R |
I havent used ahk for a long time but i think this should work.
Just play around with the values until you find some that work and then press enter to save them to a file. |
|
| Back to top |
|
 |
bigmack209 Guest
|
Posted: Fri Nov 27, 2009 5:53 am Post subject: |
|
|
| how many ms it takes to turn 180 in game depends on how fast i move the mouse obviously... and yes all mouseaccel is off. as for the second post, thanks a ton, but i'm not sure which values exactly i tweak. would you mind simplifying? |
|
| Back to top |
|
 |
bigmack209 Guest
|
Posted: Fri Nov 27, 2009 6:09 am Post subject: |
|
|
nvm i played with that a bit, and i get what youre saying.
the other values are just for editing it on the fly. anyway, it's still going off in random directions. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|