$hboxset: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Preparing page for move. This action was perfomed by a bot under supervision.)
Line 1: Line 1:
{{lang|$hboxset|title=<code>$hboxset</code>}}
{{langsp|title=<code>$hboxset</code>}}
{{This is a|c0|name=$hboxset}} It creates a named block for a group of [[$hbox]] definitions. The [[:Category:AI|AI]] can select any one set to use for collisions.
It creates a named block for a group of [[$hbox]] definitions. The [[:Category:AI|AI]] can select any one set to use for collisions.


==Syntax==
==Syntax==
Line 30: Line 30:
* '''$hboxset'''
* '''$hboxset'''


[[Category:Modeling]]
__NOTOC__
[[Category:QC Commands]]
[[Category:Source]]__NOTOC__

Revision as of 13:23, 11 January 2024

English (en)Translate (Translate)
It creates a named block for a group of $hbox definitions. The AI can select any one set to use for collisions.

Syntax

$hboxset (name)

Example

$hboxset "default"

$hbox 0 "airboat.hull"	   -40.00    0.00  -72.50    40.00   20.00   72.50
$hbox 0 "airboat.hull"	   -12.50   20.00  -21.00    12.50   65.00   11.00
$hbox 0 "airboat.hull"	   -11.00   20.00   22.50    11.00   37.50   47.50
$hbox 0 "airboat.hull"	   -20.00   20.00  -99.50    20.00   80.00  -24.50

$hboxset "entryboxes"
									
$hbox 0 "Airboat.Hull"	    25.00   10.00  -104.00    85.00  110.00  104.00		// top left
$hbox 1 "Airboat.Hull"	   -85.00   10.00  -104.00   -25.00  110.00  104.00		// top right
$hbox 2 "Airboat.Hull"	   -37.50   10.00    40.00    37.50  110.00  104.00		// top front
$hbox 3 "Airboat.Hull"	    25.00  -40.00  -104.00    85.00   10.00  104.00		// bottom left
$hbox 4 "Airboat.Hull"	   -85.00  -40.00  -104.00   -25.00   10.00  104.00		// bottom right
$hbox 5 "Airboat.Hull"	   -37.50  -40.00    40.00    37.50   10.00  104.00		// bottom front
$hbox 6 "Airboat.Hull"	   -37.50   10.00 -132.00    37.50  110.00  -88.00		// top rear
$hbox 7 "Airboat.Hull"	   -37.50  -40.00 -132.00    37.50   10.00  -88.00		// bottom rear

See also