Making your avatar continuesly move forward
by Alex \"bathala\" Rufon · 10/16/2003 (2:20 pm) · 2 comments
With these changes, your avatar will continue to move forward even if you move the mouse or the left and right turn keys. The only way to cancel it is by pressing the down key.
Why would you use this?
1. You love your users and care enough about their middle finger. People who play Counter-Strike 3 hours staight knows what I'm taking about. :wink:
2. Your making a game that requires extensive manuevering.
3. Your making a 1st/3rd person RPG game that forces the user to walk all-over the place.
To apply this, follow the following steps:
1. Make a backup of client/scripts/default.bind.cs. This file exist in each of the MOD (FPS, DEMO, STARTER.FPS) directory that can be found in torque/example directory.
2. Open this file and search for the movebackward function. Change it to the following:
Thats it! :)
Some final words. I would have love to say that I just pulled this out of my hat but thats not true. Although, I had the original idea and the script that I posted here ... I had some help on making them. I would like to acknowledge the help of Brad 'fragbert' Shapcott and Jared Schnelle; both GarageGames members.
For more info about this, check out the post: TOPIC: Player Autowalk/Run? in the GarageGames Private SDK forums. Please note that you must be a TGE SDK owner to access it.
Alex
NOTE: I also posted this in the GameBeavers forum.
Why would you use this?
1. You love your users and care enough about their middle finger. People who play Counter-Strike 3 hours staight knows what I'm taking about. :wink:
2. Your making a game that requires extensive manuevering.
3. Your making a 1st/3rd person RPG game that forces the user to walk all-over the place.
To apply this, follow the following steps:
1. Make a backup of client/scripts/default.bind.cs. This file exist in each of the MOD (FPS, DEMO, STARTER.FPS) directory that can be found in torque/example directory.
2. Open this file and search for the movebackward function. Change it to the following:
Quote:3. Then add the following at the end of the file:
function movebackward(%val)
{
$mvBackwardAction = %val;
// Make sure that we dont move forward again
$mvForwardAction = 0.0;
}
Quote:
function lockForward(%val)
{
if(%val){
if($mvForwardAction)
$mvForwardAction = 0.0;
else
$mvForwardAction = 1.0;
}
}
moveMap.bind(keyboard, "shift w", lockForward);
Thats it! :)
Some final words. I would have love to say that I just pulled this out of my hat but thats not true. Although, I had the original idea and the script that I posted here ... I had some help on making them. I would like to acknowledge the help of Brad 'fragbert' Shapcott and Jared Schnelle; both GarageGames members.
For more info about this, check out the post: TOPIC: Player Autowalk/Run? in the GarageGames Private SDK forums. Please note that you must be a TGE SDK owner to access it.
Alex
NOTE: I also posted this in the GameBeavers forum.
About the author
I am an independent game developer who's never going to make it in the industry because I'm color blind and has absolutely no imagination.
#2
Thanks!
04/20/2004 (6:02 am)
this is great, but its better to implent as its in most games, you use a special key for autowalk, and you can bindmap it to any key.Thanks!

Torque Owner Ace