Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 29840

[Tutorial] Auto run like iss

$
0
0
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
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;}}

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

Viewing all articles
Browse latest Browse all 29840

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>