This article's documentation is for anything that uses the Source engine. Click here for more information.

$hbox

From Valve Developer Community
< Pt-br
Revision as of 15:51, 8 September 2024 by Noob dev2323 (talk | contribs) (Created page with "{{subst:#if: CREATING TRANSLATION OF '$hbox' to 'português do Brasil' VIA Template:LanguageBar BUTTONS...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

English (en)Português do Brasil (pt-br)Translate (Translate)

$hbox é um comandos QC(en) disponível em todos os jogos Source Source. It creates a hitbox around a bone. These hitboxes are used by the AI for simple collisions, such as bullets.

Broom icon.png
This article or section needs to be updated to include current information regarding the subject because:
Document about CS:GO's hit capsules
Remember to check for any notes left by the tagger at this article's talk page.

Running studiomdl with the -h option will print out all of the autogenerated hitboxes.

If any hitboxes are defined this way, autohitbox generation is disabled.

Hitbox Groups

When a hitbox is added to a bone, it has an additional group parameter before the name of the bone which can change how the hit is calculated for damage. Many NPC as well as certain vehicles follow a scheme for each hitbox.

  • $hbox 0 - Generic - the default group of hitboxes, appears White in HLMV
  • $hbox 1 - Head - Used for human NPC heads and to define where the player sits on the vehicle.mdl, appears Red in HLMV
  • $hbox 2 - Chest - Used for human NPC midsection and chest, appears Green in HLMV
  • $hbox 3 - Stomach - Used for human NPC stomach and pelvis, appears Yellow in HLMV
  • $hbox 4 - Left Arm - Used for human Left Arm, appears Deep Blue in HLMV
  • $hbox 5 - Right Arm - Used for human Right Arm, appears Bright Violet in HLMV
  • $hbox 6 - Left Leg - Used for human Left Leg, appears Bright Cyan in HLMV
  • $hbox 7 - Right Leg - Used for human Right Leg, appears White like the default group in HLMV
  • $hbox 8 - Neck - Used for human neck (to fix penetration to head from behind), appears Orange in HLMV (em todos os jogos desde Counter-Strike: Global Offensive)

Syntax

$hbox (group number) (bone name) (min x) (min y) (min z) (max x) (max y) (max z)

See also