A basic example on how to use info_hullshape.
The slope on the left behaves as normal. You can stand at the very top without sliding off of it.
However, the slope on the right uses info_hullshape
to give the player a different hull shape when interacting with the slope, and as such the player cannot stand at the top and will instead reliably slide off.
The way this works is that I've made two brushes: Both of which are cuboids but with a tapered bottom, and they have the dimensions
for standing and crouching respectively. These are tied to each their own info_hullshape
along with an origin brush each and given the targetnames slippery_stand
Both slopes (along with the little "stairs" in front) are tied to each their own func_detail
(this also works with any solid brush entity as well). With SmartEdit off, the keys
are added and given the values slippery_stand
This tells the compiler to generate the clipping hulls for these func_detail
s as if the player was shaped like the two info_hullshape
It's also possible to use the
Set as default shape (defaulthulls)
key for the info_hullshape
s if you wish for those to be the default of your map.