View Full Version : W S A D
Timoteos
29th May 2004, 04:19 AM
Okay FPS fans.
Need a short, simple tutorial on programming the
X/Y axis for games that do not directly support a joystick.
Many thanks.
Revvin
29th May 2004, 10:51 AM
You could change those axis so they generate a keypress in CMS or a much easier way would be to do it like I showed another user in this (http://www.ch-hangar.com/forum/index.php?showtopic=20) thread where we changed the ministick into a POV hat, this method can be applied to the X and Y axis of your joystick.
MichaelCHProd
29th May 2004, 07:58 PM
Help me to help you. Which direction is which on the mini joystick? I mean do you want tot push the mini joystick forwards to send the "W" key and up to send the "A" key? Or am I off kilter?
LittleFlower
30th May 2004, 11:19 AM
It's not so hard to create a script to do this. Many people have done before. This page (by Worsel) has a number of scipts for FPS games. Look at his "generic map/script" packs.
http://www.user.dccnet.com/robmanning/
Personally I don't like this WASD emulation. The reason is that digital movement is a lot less precise than analog movement. Basically, if you have small deadzones, you will very quickly have your joystick in a position where you move both forward and sideways. This means your script will press "W" and "A" (or "D") at the same time. This will make you move in 2 directions at the same speed, basically causing you to move diagonally. The result is that you hardly ever run straight forward or do a true strafe, the result is that you wil always move diagially left/forward or right/forward. It took me a while to figure this out. But when you play with WASD emulation, you will immediatly feel that "something is not right".
I played the Painkiller demo, which has no joystick support. I made a script to try overcome this problem (by making the deadzones dynamic based on the "stretch" of the other axis). But still not very comfortable. Result: I will only play FPS games with native joystick support.
MichaelCHProd
30th May 2004, 06:39 PM
Nice Link Brother :thumbsup:
Powered by vBulletin® Version 4.1.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.