Please or Register to create posts and topics.

Restriction Up and Down movement.

Page 1 of 2Next

I was wondering if there was a way to restrict the movement of looking up and down, when a player picks up an object. I tried to get this to work 100 different ways, but can't figure it out. I want a player to pick something up, a cube, physbox, anything, then the player can move around and look left and right, but not up and down. Can it be done?

Maps(Newest to Oldest): Storming the Castle / The Amazing Race / Wreaked / Mental Breakdown / Lost In Transition / Split / Mind Lock
Mapping Since May 21, 2011

Extremely low ceiling.

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."

Without knowing the nature of your puzzle, here is what came to my mind...

Place horizontal fizzlers above and below, so the player is forced to hold the object level to avoid fizzling it.

Winner of the Nobel Prize for Being Immune to Neurotoxin

Thanks for over 1,000 downloads: The Cold Shoulder

No I can't use either of those methods, I had even tried making clips above and below a physbox, but it keeps the box from turning or it pushes the players view zoomed in on the object. I need the object and the player to stay the same distance away from each other also. I don't see how this can work, unless i can turn off the players ability to look up or down, or keep the cube from raising or lowering 100%. Anyone know if there is a console command or something that can lock the players view or something?

Maps(Newest to Oldest): Storming the Castle / The Amazing Race / Wreaked / Mental Breakdown / Lost In Transition / Split / Mind Lock
Mapping Since May 21, 2011

There is some kind of camera control entity. I don't know anything about it, but perhaps you could look into it and see if it works for you. And maybe someone who has used it can post some info.

Winner of the Nobel Prize for Being Immune to Neurotoxin

Thanks for over 1,000 downloads: The Cold Shoulder

If we knew some more details about what you are trying to do here, we may be able to help you out some more. Perhaps there's an alternative method to having the player potentially be really confused when they can't look up or down. If I was suddenly unable to look up or down, I would probably try replacing the battery in my wireless mouse and then give up on the map when that didn't work.

Try out Twin Pillars, a Portal 2 map by BOB74j.

I know that in

Spoiler
Sorry, only logged-in users can see spoilers.

My Maps:
[spoiler][SP] Alternate[/spoiler]

It's a special vehicle script and a game_ui to detect mouse click. The game_ui fires an info_particle_system for the orange flash, and then starts the ending scene.

Falsi sumus crusto!

Well what I was trying to do was make a car. I made a physbox steering wheel, and parented a bunch of brushes to it. then parented a speed gel under the front of the car. Just as a racing thing for the start of one of my maps. It actually works pretty good, but if a player looks up or down, it ruins everything. Go flying in the air, and can toss the car, and stuff. Ohh well.

Maps(Newest to Oldest): Storming the Castle / The Amazing Race / Wreaked / Mental Breakdown / Lost In Transition / Split / Mind Lock
Mapping Since May 21, 2011

That sounds fun and interesting. I hope you can get it working.

You could use a track_train, but then the player would lose the freedom to drive where they like. Perhaps you could also try a clip brush that affects objects but not the player, to sort of hold the car on the ground. Basically just an invisible, horizontal clip brush right above the top of the car.

Winner of the Nobel Prize for Being Immune to Neurotoxin

Thanks for over 1,000 downloads: The Cold Shoulder
Page 1 of 2Next