AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

180 degree turn in-game

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bimack209
Guest





PostPosted: Sun Nov 22, 2009 8:59 am    Post subject: 180 degree turn in-game Reply with quote

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

PostPosted: Sun Nov 22, 2009 1:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
jps



Joined: 02 Sep 2006
Posts: 279
Location: Scotland

PostPosted: Sun Nov 22, 2009 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
bigmack209
Guest





PostPosted: Fri Nov 27, 2009 5:53 am    Post subject: Reply with quote

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





PostPosted: Fri Nov 27, 2009 6:09 am    Post subject: Reply with quote

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
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group