Please or Register to create posts and topics.

Prevent input

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

???????????????????????????????????????????????Modding beginner. But ready to learn.
????????????????????????????????????????????????????????Visit my Steam profile!

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.

?????????????????????????????TWP Releases | My Workshop

How/where can I set cl_fowardspeed / backspeed to 0?

???????????????????????????????????????????????Modding beginner. But ready to learn.
????????????????????????????????????????????????????????Visit my Steam profile!
iSpectra wrote:
How/where can I set cl_fowardspeed / backspeed to 0?

point_clientcommand

Image
PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."

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?