(04-08-2012, 06:50 PM)JetlinerX Wrote: Hey all-
First off, is it possible to "disable sprint" and secondly, if the player is crouched, is it possible to kill them if they stand or sprint?
.
Ya'll prolly not need this, but maybe you will if you're going to put up a script if the player starts to sprint.
Then you could put up a timer that checks the player's speed. If the player's speed gets bigger than a certain amount, then something will happen.
void speedtimer(string &in asTimer)
{
AddTimer("speedtimer", 0.2f, "speedtimer");
if (GetPlayerSpeed() >=MAX_ALLOWED_SPEED )
{
SOMETHING HAPPENS
}
}