Hullfile: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Important:The mins and maxs of Hull 0 should always be 0 0 0, or issues will arise.
Important:The mins and maxs of Hull 0 should always be 0 0 0, or issues will arise.
		
	
| SirYodaJedi (talk | contribs)  (Verbose format, from source code) | SirYodaJedi (talk | contribs)  | ||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| {{stub}} | {{stub}} | ||
| Used with the {{code|-hullfile}} parameter in [[HLCSG]]. It contains a set of [[hull]]s to use for generating [[clipnode]]s | Used with the {{code|-hullfile}} parameter in [[HLCSG]]. It contains a set of [[hull]]s to use for generating [[clipnode]]s. | ||
| == Verbose format == | == Verbose format == | ||
| This format uses the mins and maxs of the hull, allowing an offset origin. | 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: | For example, using {{quake|2}}'s hull sizes, with {{hl1|2}}'s crouching hull added on: | ||
| <pre> | <pre> | ||
| ( 0 0 0 ) ( 0 0 0 ) | |||
| ( -16 -16 -24 ) ( 16 16 32 ) | ( -16 -16 -24 ) ( 16 16 32 ) | ||
| ( -32 -32 -24 ) ( 32 32 64 ) | ( -32 -32 -24 ) ( 32 32 64 ) | ||
| ( -16 -16 -18 ) ( 16 16 18 ) | ( -16 -16 -18 ) ( 16 16 18 ) | ||
| </pre> | </pre> | ||
| {{important|The mins and maxs of Hull 0 should ''always'' be 0 0 0, or issues will arise.}} | |||
| == Simplified format == | == Simplified format == | ||
| This format uses the actual size of the hull in each dimension, assuming a centered origin. | This format uses the actual size of the hull in each dimension, assuming a centered origin. Unlike the verbose format, it doesn't include the point hull (Hull 0). | ||
| Example from {{ns|2}}: | Example from {{ns|2}}: | ||
| Line 21: | Line 23: | ||
| 32 32 36 | 32 32 36 | ||
| </pre> | </pre> | ||
| The  | The maxs is calculated by multiplying the input by 0.5, and the mins is calculated by multiplying that resulting maxs by -1. | ||
Latest revision as of 08:13, 13 January 2025
Used with the -hullfile parameter in HLCSG. It contains a set of hulls to use for generating clipnodes.
Verbose format
This format uses the mins and maxs of the hull, allowing an offset origin.
For example, using  Quake's hull sizes, with
 Quake's hull sizes, with  Half-Life's crouching hull added on:
 Half-Life's crouching hull added on:
( 0 0 0 ) ( 0 0 0 ) ( -16 -16 -24 ) ( 16 16 32 ) ( -32 -32 -24 ) ( 32 32 64 ) ( -16 -16 -18 ) ( 16 16 18 )
 Important:The mins and maxs of Hull 0 should always be 0 0 0, or issues will arise.
Important:The mins and maxs of Hull 0 should always be 0 0 0, or issues will arise.Simplified format
This format uses the actual size of the hull in each dimension, assuming a centered origin. Unlike the verbose format, it doesn't include the point hull (Hull 0).
Example from  Natural Selection:
 Natural Selection:
32 32 72 64 64 108 32 32 36
The maxs is calculated by multiplying the input by 0.5, and the mins is calculated by multiplying that resulting maxs by -1.