$hboxset: Difference between revisions
Jump to navigation
Jump to search

m (Nesciuse moved page $hboxset/en to $hboxset without leaving a redirect: Move en subpage to basepage) |
Trigger hurt (talk | contribs) m (Improve legibility of the first line & remove useless entry in See Also section.) |
||
Line 1: | Line 1: | ||
{{LanguageBar|title = <code>$hboxset</code>}} | {{LanguageBar|title = <code>$hboxset</code>}} | ||
{{this is a|QC command|name=$hboxset}} | {{this is a|QC command|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. | ||
==Syntax== | ==Syntax== | ||
Line 29: | Line 28: | ||
* [[$bbox]] | * [[$bbox]] | ||
* [[$hbox]] | * [[$hbox]] | ||
__NOTOC__ | __NOTOC__ |
Revision as of 13:36, 14 July 2024


$hboxset
is a QC command available in all Source games. 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