Game Development Community

Allow mouse movement

by Dan Buske · in ThinkTanks · 08/10/2003 (4:00 am) · 11 replies

I think Think Tanks should allow use of a mouse button for movement. I get tired and sore using both hands to play the game. I would use right button for forward and left button for fire.

About the author

Recent Threads


#1
08/10/2003 (4:19 am)
Get some ducttape and tape down the forward key.
Ive done this in many a games....
Cheap mans macro :)

Or you could build a serial foot controler from radio shack parts like I did :)
#2
08/10/2003 (4:43 am)
I use the standard FPS w,a,s,d keys with my left and mouse with my right.. old habit I guess.

"hen I type tuff tht need thoe key, they ometime on't ork"
Tank Dork
#3
08/10/2003 (10:55 am)
Quote: I would use right button for forward and left button for fire.

Not everyone has a multibutton mouse. Yes, most gamers probably do, but there will be some who don't and you'd be leaving out the chance to get their money. :)

Perhaps better would be a configuration utility so folks can set up their own keys and buttons.
#4
08/10/2003 (11:41 am)
Customized key bindings in a menu are planned for a future release.

For now:

Create a text file named config.cs and save it in the game/client directory. In this file, put:

moveMap.bind( keyboard, a, moveleft );
moveMap.bind( keyboard, d, moveright );
moveMap.bind( keyboard, w, moveforward );
moveMap.bind( keyboard, s, movebackward );

moveMap.bind( keyboard, numpad4, moveleft2 );
moveMap.bind( keyboard, numpad6, moveright2 );
moveMap.bind( keyboard, numpad8, moveforward2 );
moveMap.bind( keyboard, numpad5, movebackward2 );
moveMap.bind( keyboard, numpad2, movebackward4 );

moveMap.bind( keyboard, left, moveleft3 );
moveMap.bind( keyboard, right, moveright3 );
moveMap.bind( keyboard, up, moveforward3 );
moveMap.bind( keyboard, down, movebackward3 );

moveMap.bind( mouse, xaxis, yaw );
moveMap.bind( mouse, yaxis, pitch );
moveMap.bind( mouse, button0, mouseFire );

You can now edit these mappings as you please. Note that there are 3
versions of the movement mapping, any of which can be changed.

For this particular remapping question, change one of the forward movements to be mapped to button 1 on the mouse. Like so:

moveMap.bind( mouse, button1, moveforward3 );

Save the file, restart the game, and you should be good to go.
#5
08/10/2003 (11:53 am)
Thank you very much and my arms and shoulders thank you too.
#6
08/10/2003 (12:12 pm)
Note that this will still require you to use the arrow keys to turn (mouse works the turret). Rebinding the mouse to the tank movement will take some code changes. We may, in the future, have a mapping setup for mouse only play (locked turret) but informal test seem to indicate those using such a configuration will be at a disadvantage. It will help those that need to be able to play with one hand (like when one has to be holding the baby with the other hand)
#7
08/10/2003 (1:35 pm)
Or those people who lost their arm cause they stuck it out of a truck window.
#8
08/10/2003 (3:46 pm)
Quote:
I get tired and sore using both hands to play the game.
Not to be rude but...if you get tired and sore from using a keyboard, maybe playing ThinkTanks effectivly isn't your biggest problem.

I'd start trying to curl soda cans. Start with the empty ones first, because they weigh less.
#9
08/10/2003 (4:01 pm)
Hmm... that gives me an idea for a marketing angle. We can get one of those hour long commericials that play in the middle of the night...

Maybe we should make some sort of ab-flexing input device. Ab-Tanks!
#10
08/10/2003 (4:47 pm)
You just need to play TT with my new Ab-Mouse (Patent Pending).

"Now, if only it could be hooked to a vacuum cleaner...."
-- mark
#11
08/10/2003 (11:15 pm)
Lazy bastard use both hands.
FP