Hullfile: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| SirYodaJedi (talk | contribs)  (Info_hullshape is something else) | SirYodaJedi (talk | contribs)   (Verbose format, from source code) | ||
| Line 1: | Line 1: | ||
| {{stub}} | {{stub}} | ||
| Used with the {{code|-hullfile}} parameter in [[HLCSG]]. | Used with the {{code|-hullfile}} parameter in [[HLCSG]]. It contains a set of [[hull]]s to use for generating [[clipnode]]s, usually three (MAX_HULLS). | ||
| == Verbose format == | |||
| This format uses the mins and maxs of the hull, allowing an offset origin. | |||
| For example, using {{quake|2}}, with {{hl1|2}}'s crouching hull added on: | |||
| <pre> | |||
| ( -16 -16 -24 ) ( 16 16 32 ) | |||
| ( -32 -32 -24 ) ( 32 32 64 ) | |||
| ( -16 -16 -18 ) ( 16 16 18 ) | |||
| </pre> | |||
| == Simplified format == | |||
| This format uses the actual size of the hull in each dimension, assuming a centered origin. | |||
| Example from {{ns|2}}: | Example from {{ns|2}}: | ||
| Line 8: | Line 21: | ||
| 32 32 36 | 32 32 36 | ||
| </pre> | </pre> | ||
| The mins and maxs are calculated by multiplying the input by 0.5, and for mins, further multiplying that result by -1. | |||
Revision as of 22:48, 12 January 2025
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, with
 Quake, with  Half-Life's crouching hull added on:
 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.