info_hullshape

Modified

12-Jul-2023

Allows to modify player behavior when standing on spiked ramps by replacing the default cuboid shape of the player when generating collision hulls for certain brushes. You can use brush shape of this info_hullshape as player hull. This is used mostly for "surf" maps to prevent player standing on top of curved brushes. You can set this shape globally or use it only on certain brushes. For global hull shape use "Set as default shape" keyvalue. To apply hull shapes into desired brushes do the following: firstly, there have to be two 'info_hullshape' entities, one with the shape of a standing player and the other with the shape of a crouching player. Secondly, the ramp should be tied to a brush entity or func_detail or func_group, and then you set the 'zhlt_hull1' and 'zhlt_hull3' keys in that entity to specify the player's shape for the entity's standing hull and crouching hull. Note that the crouching player must not be bigger than the standing player, otherwise the player will get stuck when he presses the crouch key. If the shape is too complex, the brushes that use this shape will consume much more clipnodes than normal brushes.

Keyvalues


Name targetname : Name of this info_hullshape. This name need to be specified in func_detail or func_group.

Set as default shape defaulthulls : If set, this brush will replace player hull shape globally.

  • 0 : No : No
  • 2 : Hull 1 : Set this brush as a player standing player hull (hull 1).
  • 4 : Hull 2 : Set this brush as big monster's hull (hull 2) but ask yourself- do you really need to change this?.
  • 8 : Hull 3 : Set this brush as a player crouching hull shape (hull 3).

Disable disabled : You can temporarily disable this entity.

  • 0 : No
  • 1 : Yes