View Single Post
Author Message
12Toastie
Junior Member
Join Date: Nov 2014
Old 05-05-2021 , 01:52   Looking for a function thatll set the players current velocity.. NOT MAXSPEED
Reply With Quote #1

Allow me to explain.. this is for TFC..

In TFC each class has their own maxspeed, and are allowed to bunnyhop up to 170% of their maxspeed. If they try to bhop over that 170%, itll reset their velocity to their maxspeed.

For example, a Scout has a maxspeed of 400.. and can go as high as 680 and if he tries to bhop while being over 680, his velocity will be reset to 400.

Now there is another thing called a "chop hop"... where a player can actually maintain a high rate of speed past 680 by +duck'ing instead. I want to apply that same mechanic to +duck where if they try it while over 680, itll set them back to 400. Is there a function thatll set their current velocity given these conditions?

Last edited by 12Toastie; 05-05-2021 at 01:53.
12Toastie is offline