Hullfile

From Valve Developer Community
Revision as of 22:48, 12 January 2025 by SirYodaJedi (talk | contribs) (Verbose format, from source code)
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

Used with the -hullfile parameter in HLCSG. It contains a set of hulls to use for generating clipnodes, usually three (MAX_HULLS).

Verbose format

This format uses the mins and maxs of the hull, allowing an offset origin.

For example, using Quake Quake, with Half-Life Half-Life's crouching hull added on:

( -16 -16 -24 ) ( 16 16 32 )
( -32 -32 -24 ) ( 32 32 64 )
( -16 -16 -18 ) ( 16 16 18 )

Simplified format

This format uses the actual size of the hull in each dimension, assuming a centered origin.

Example from Natural Selection Natural Selection:

32 32 72
64 64 108
32 32 36

The mins and maxs are calculated by multiplying the input by 0.5, and for mins, further multiplying that result by -1.