momentum-mod / game

Momentum Mod - Standalone Source Movement Speedrunning (READ README)
https://momentum-mod.org
Other
514 stars 207 forks source link

Prevent Player Physics Deformation #1926

Open Gocnak opened 1 year ago

Gocnak commented 1 year ago

Since we're now based on the Portal 2 code for world portals, and because VPhysics is a lovely piece of software, we should figure out why Player Physics Deformation happens in the code and fix it so that players can't abuse it.

Seems to be something in the physics shadow update code not resetting the rotation of the bbox to Axis-Aligned when it updates. Could be good to just force the player AABB to be axis-aligned at all times, or to 0 out any rotational velocity applied to it.

Gocnak commented 1 year ago

From Mr. Burguers in our Discord:

image

seems to be easily forceable using prop_physics_create props_c17/oildrum001_explosive.mdl and going in it