Prevent input

Avatar
iSpectra
49 Posts
Posted Nov 19, 2012
Hi,

is it possible to prevent the player from moving at all (prevent input) in defined sections?
I build mumerous sections in my project where move input from the player could cause him to get lost.
As far as I know it's possible to prevent input from an XBOX 360 controller.

I'm looking forward to hear from you.

iSpectra

Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Nov 19, 2012
Replied 1 hour later
There are a few ways to freeze the player.

  1. Enabling a game_ui
  2. Enabling a camera which 'freezes' the player
  3. Setting cl_fowardspeed / backspeed etc to 0

If you just want to prevent the player to walk in certain spots, put an obstacle and/or playerclip. Having the player freeze for no reason is a bit odd to be honest.

Avatar
iSpectra
49 Posts
Posted Jan 29, 2013
Replied 2 months later
How/where can I set cl_fowardspeed / backspeed to 0?
Avatar
iWork925
1,080 Posts
Posted Jan 29, 2013
Replied 14 minutes later

iSpectra wrote:
How/where can I set cl_fowardspeed / backspeed to 0?

point_clientcommand

Advertisement
Registered users don’t see ads! Register now!
Avatar
zivi7
649 Posts
Posted Jan 29, 2013
Replied 9 minutes later
Setting the speed to zero all of a sudden would be as odd as freezing the player all of a sudden imho.

Maybe you could explain a bit more about the situation? I assume it's something like a moving platform the player stands on and shouldn't leave? Maybe a camera (point_viewcontrol) that moves around the player meanwhile could be nice then?