3 ms·
>a big innovation of HL2 was the extensive use of a real physics engine. The door and the guard are both physical objects, both have momentum, they impart an im
by why_at 11mo ago
>a big innovation of HL2 was the extensive use of a real physics engine. The door and the guard are both physical objects, both have momentum, they impart an impulse on each other, and although the door hinge is frictionless, the guard's boots have some amount of friction with the floor.
It's been a while since I've played HL2 but this isn't exactly how I remember it. While a lot of things were physics objects I thought the doors would just smoothly rotate towards their target position without any physics at all. You can't bump them shut with another physics object for instance.
- sigmoid10 11mo agoYou can't move them (apart from the opening and closing animation), but they can move other objects that are in their way. Both need to be physics objects for that to work, even though the door is just kinematic (i.e. it won't react to forces applied to it). Although if I remember correctly, they are not even fully kinematic. I think you could get them stuck halfway closed by cramming something in the door frame that would get the whole thing jammed.
- Lammy 11mo ago> I think you could get them stuck halfway closed by cramming something in the door frame that would get the whole thing jammed. This was a popular griefing tactic when TF2 first came out where you could trap everyone in spawn by crouch-jumping into the spawn door as Scout: https://youtu.be/JUPzN7tp7bQ?t=243 https://youtu.be/JUPzN7tp7bQ?t=243
- sigmoid10 11mo agoYeah this seems to be exactly the same issue that Valve eventually discovered in the Mastodon thread linked by OP.
- accrual 11mo agoJust did some quick testing - the doors definitely have physics and can get stuck on objects and can impart forces. But unimpeded yes, they smoothly open/close. I stuck a tire in a door frame and tried to close it, the tire emitted a bunch of dust clouds as the two objects fought before the door finally ejected the tire at high speed.
- matheusmoreira 11mo ago> ejected the tire at high speed I wonder if speed runners have found ways to abuse this...
- 01HNNWZ0MV43FF 11mo agoYou might find this funny https://wiki.sourceruns.org/Infinite-Health-Door.html https://wiki.sourceruns.org/Infinite-Health-Door.html In Half-Life 1 there is a map with two doors that deal negative crushing damage, so you can wedge yourself in them to give yourself a massive over heal
- matheusmoreira 10mo agoThat's amazing!