hello this is just a very small tutorial showing how to do auto run
its nice and easy
1. open HUD_TPSGame.cpp
look for
under that add
how you will have auto run to turn it off and on its just numlock on the keybored but you can change NumLock to anything you want to toggle it on and off
so its like
r3dPoint3D accelaration(0,0,0);
if(!disablePlayerMovement)
{
if(Keyboard->WasReleased(kbsNumLock) && num == false){num = true;}
else {if(Keyboard->WasReleased(kbsNumLock) && num == true){num = false;}}
// if facing a wall and cannot sprint - stop sprint
remember if this helps you hit that like button
its nice and easy
1. open HUD_TPSGame.cpp
look for
Code:
r3dPoint3D accelaration(0,0,0); if(!disablePlayerMovement)
{
under that add
Code:
if(Keyboard->WasReleased(kbsNumLock) && num == false){num = true;}
else {if(Keyboard->WasReleased(kbsNumLock) && num == true){num = false;}}
so its like
r3dPoint3D accelaration(0,0,0);
if(!disablePlayerMovement)
{
if(Keyboard->WasReleased(kbsNumLock) && num == false){num = true;}
else {if(Keyboard->WasReleased(kbsNumLock) && num == true){num = false;}}
// if facing a wall and cannot sprint - stop sprint
remember if this helps you hit that like button