I'm trying to make a simple hotkey for a smooth 180-turn in a first-person shooter, but the results I'm getting are either an instant movement/turn with:
Or weird circular movement at the character's feet with:
Code: Select all
F1::
{
SendMode "Event"
MouseMove 1, 1, 99
}
Notice the difference in the X and Y coords. The (400, 20) coordinates were adjusted correctly for a 180-turn, but the problem is that it's instant. On the other hand, when I try changing the — now default —
SendMode from
Input to
Event and change the speed to anything slower than 1 (from 2 to 100), I get this weird unexpected movement, even with those (1, 1) coords.
Play mode, on the other hand, just makes the script/hotkey unresponsive, or it just does nothing in-game.
I've also tried looping smaller mouse movements in
Input mode, but the movement is too jittery and unnatural.
How can I get a smoother, non-instant mouse movement in this case?