Blocking player movement Created 15 years ago2009-05-22 23:55:26 UTC by DiscoStu DiscoStu

Created 15 years ago2009-05-22 23:55:26 UTC by DiscoStu DiscoStu

Posted 15 years ago2009-05-22 23:55:26 UTC Post #267345
I was wondering if it is possible to block a player's movement in HL1. Like it's done in the beginning of Opposing Force, where you are stuck there but can look around. I feel placing the player inside a clip brush wouldn't quite do it. I haven't tested it actually, but I thought maybe someone else already did.
Posted 15 years ago2009-05-23 01:59:08 UTC Post #267348
I have done that before with clip brushes, but if the player crouches they will be stuck in the crouched position until they noclip out if it.
Other that that, I don't think I can suggest anything.
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 15 years ago2009-05-23 06:45:35 UTC Post #267353
info_player_freeze or something like that was used in the opfor expansion. Just stick him in the seat if he's sitting, it's the best you can do without the proper ents.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-05-23 17:18:38 UTC Post #267362
Hm, I see. Thanks for the input.
Posted 15 years ago2009-05-23 17:24:52 UTC Post #267363
Make sure you also have a camera sequence for him standing, them teleport the player to where the camera left him afterwards, This will involve trial and error to get the exact position, so do all this after everything else is mapped and scripted (execpt enemy NPCs)
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-05-23 17:34:40 UTC Post #267364
That won't work. Cameras have a different FOV I think. You'll notice the change.
Posted 15 years ago2009-05-23 17:37:31 UTC Post #267365
Oh... Well, there goes my idea, and my ideas for other mods... :/
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-05-23 18:05:11 UTC Post #267367
If you are using Spirit of Half-Life it should be easy. Are you?
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2009-05-23 19:02:35 UTC Post #267368
I am, I dunno about discostu...
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-05-23 19:47:39 UTC Post #267369
In Spirit of Half-Life you can set any entity's position or velocity using a motion_manager.
Oskar Potatis Oskar Potatis🦔
Posted 15 years ago2009-05-23 23:01:53 UTC Post #267371
But I don't want to set an entity's position or velocity... and I don't think even the camera trick would work as it would have a fixed point of view, and the whole point was to keep the player in one place while allowing to freely look around.

And no, I'm not using Spirit.
Posted 15 years ago2009-05-23 23:50:22 UTC Post #267372
Dammit you guys...

Just add a null brush clipping into the lower half of the player's body, but not cutting into the surrounding geometry. To get him out as in Opposing Force, use a teleport.
Rimrook RimrookSince 2003
Posted 15 years ago2009-05-24 19:11:04 UTC Post #267416
Aha, interesting... Does it prevent the player from crouching? And perhaps it can be removed as a func_wall_toggle? Gotta try that...
Posted 15 years ago2009-05-25 02:25:58 UTC Post #267445
Clip brushes don't work as entities, do they? Someone said they acted weird.
Jessie JessieTrans Rights <3
Posted 15 years ago2009-05-25 12:42:59 UTC Post #267465
Do what Rimrooks says, its the best solution for what you want to achieve.
And no, CLIP brushes are not treated as entities, just invisible walls, really.
Posted 15 years ago2009-05-25 13:21:37 UTC Post #267468
you can only use a func_wall_toggle if you're using spirit and can parent the entities together, assuming you're helicopter or transport vehicle is a func_train thats moving.

and no, clip brushes will not work for this, that's why I suggested the null brush. works similarly but has properties solid enough for entities.
Rimrook RimrookSince 2003
You must be logged in to post a response.