Player Speed

Avatar
JoeyGuy917
146 Posts
Posted Nov 28, 2013
Hi. First thing, Happy Thanksgiving to anyone celebrating! Second, does anyone know how to change a players speed? If so,how?
Advertisement
Registered users don’t see ads! Register now!
Avatar
Theevina
20 Posts
Posted Nov 28, 2013
Replied 1 hour later
The valve wiki says player_speedmod works only in the HL2 series. I'm not sure but if that works it's the best option. If not the console command hl2_walkspeed should be there.

Try a point_clientcommand and set the command to "hl2_walkspeed ###" where your number is there. I don't know what the default is for Portal 2. Don't actually add the quotes in there because it'll break your map.

Avatar
Skotty
671 Posts
Posted Nov 28, 2013
Replied 7 minutes later
Using console commands via point_clientcommand is always the last option to choose.
I would, even if Valve Wiki (which isn't always correct) points out it shouldn't work, try to use player_speedmodifier.
And if this doesn't work, there might be an input for "player". Just take a look in your game console. Type "ent_info player" and see if you can find a useable input.
Avatar
JoeyGuy917
146 Posts
Posted Nov 28, 2013
Replied 41 minutes later
Okay, I don't think I have any good way of doing this. The player was supposed to slow down, but it seems impossible. I tried the point_clientcommand too, it says no such command. The player_speedmod thing increases too rapidly aswell. And I didn't see anything useful with ent_player_info (or whatever it is).
Avatar
Theevina
20 Posts
Posted Nov 28, 2013
Replied 14 minutes later
With player_speedmod you set the input "ModifySpeed" with a parameter being a float value. 1 is normal. 2 is double speed. 0.5 is half speed. etc. You don't set it to something really high like the client command would be.
Advertisement
Registered users don’t see ads! Register now!
Avatar
JoeyGuy917
146 Posts
Posted Nov 28, 2013
Replied 3 hours later
Thank you!!! It worked!!!!