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

Pt-br/$hbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{subst:#if: CREATING TRANSLATION OF '$hbox' to 'português do Brasil' VIA Template:LanguageBar BUTTONS...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{translate}}{{wip}}
{{translate}}{{wip}}
{{LanguageBar|title = <code>$hbox</code>}}
{{LanguageBar|title = $hbox}}
{{this is a|QC command|name=$hbox}} It creates a [[hitbox]] around a bone. These hitboxes are used by the [[:Category:AI|AI]] for simple collisions, such as bullets.
{{this is a|QC command|name=$hbox}} Isso cria uma [[hitbox]] em torno de um osso. Essas hitboxes são usados ​​pelo [[:Category:AI|AI]] para colisões simples, como balas.
{{update|Document about CS:GO's hit capsules}}
{{update|Document about CS:GO's hit capsules}}


Running [[studiomdl]] with the <code>-h</code> option will print out all of the autogenerated hitboxes.
Rodando [[studiomdl]] com ó commando <code>-h</code> opção irá imprimir todos os hitboxes gerados automaticamente.


If any hitboxes are defined this way, autohitbox generation is disabled.
quando hitboxes são definidos desta forma, autohitbox generation é desativado.


==Hitbox Groups==
==Grupos de Hitbox==
When a hitbox is added to a [[Skeleton|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_(modeling)|vehicles]] follow a scheme for each hitbox.
Quando a hitbox é adicionado a um [[Skeleton|bone]], tem um parâmetro de grupo adicional antes do nome do osso que pode mudar a forma como o acerto é calculado para o dano. Muitos [[NPC]] bem como certos [[Vehicles(modeling)|vehicles]] siga um esquema para cada hitbox.


* <code>$hbox '''0''' - Generic - the default group of hitboxes, appears White in HLMV </code>
* <code>$hbox '''0''' - Generic - o grupo padrão de hitboxes, aparece branco em [[HLMV]] </code>
* <code>$hbox '''1''' - Head - Used for human NPC heads and to define where the player sits on the vehicle.mdl, appears Red in HLMV </code>
* <code>$hbox '''1''' - Head - Usado para NPC humano cabeças e definir onde o jogador se senta no vehicle.mdl, aparece Vermelho no [[HLMV]] </code>
* <code>$hbox '''2''' - Chest - Used for human NPC midsection and chest, appears Green in HLMV </code>
* <code>$hbox '''2''' - Chest - Usado para NPC humano barriga e peito, aparece Verde no [[HLMV]] </code>
* <code>$hbox '''3''' - Stomach - Used for human NPC stomach and pelvis, appears Yellow in HLMV </code>
* <code>$hbox '''3''' - Stomach - Usado para NPC humano estômago e pélvis, aparece amarelo no [[HLMV]] </code>
* <code>$hbox '''4''' - Left Arm - Used for human Left Arm, appears Deep Blue in HLMV </code>
* <code>$hbox '''4''' - Left Arm - Usado para NPC humano Braço Esquerdo, aparece Azul profundo no [[HLMV]] </code>
* <code>$hbox '''5''' - Right Arm - Used for human Right Arm, appears Bright Violet in HLMV </code>
* <code>$hbox '''5''' - Right Arm - Usado para NPC humano Braço Direito, aparece Violeta Brilhante no [[HLMV]] </code>
* <code>$hbox '''6''' - Left Leg - Used for human Left Leg, appears Bright Cyan in HLMV </code>
* <code>$hbox '''6''' - Left Leg - Usado para NPC humano Perna Esquerda, aparece Ciano Brilhante no HLMV </code>
* <code>$hbox '''7''' - Right Leg - Used for human Right Leg, appears White like the default group in HLMV </code>
* <code>$hbox '''7''' - Right Leg - Usado para NPC humano Perna Direita, appears Branco como o grupo padrão no [[HLMV]] </code>
* <code>$hbox '''8''' - Neck - Used for human neck (to fix penetration to head from behind), appears Orange in HLMV</code> {{since|{{csgo}}}}
* <code>$hbox '''8''' - Neck - Usado para NPC humano pescoço (para corrigir a penetração na cabeça por trás), aparece laranja no [[HLMV]]</code> {{since|{{csgo}}}}


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


==See also==
==Veja também==
* [[$cbox]]
* [[$cbox]]
* [[$bbox]]
* [[$bbox]]
Line 32: Line 32:


[[Category:Modeling]]
[[Category:Modeling]]
[[Category:QC Commands|hbox]]
[[Category:Source]]
[[Category:Source]]

Latest revision as of 20:56, 18 July 2025

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. Isso cria uma hitbox em torno de um osso. Essas hitboxes são usados ​​pelo AI para colisões simples, como balas.

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.

Rodando studiomdl com ó commando -h opção irá imprimir todos os hitboxes gerados automaticamente.

quando hitboxes são definidos desta forma, autohitbox generation é desativado.

Grupos de Hitbox

Quando a hitbox é adicionado a um bone, tem um parâmetro de grupo adicional antes do nome do osso que pode mudar a forma como o acerto é calculado para o dano. Muitos NPC bem como certos vehicles siga um esquema para cada hitbox.

  • $hbox 0 - Generic - o grupo padrão de hitboxes, aparece branco em HLMV
  • $hbox 1 - Head - Usado para NPC humano cabeças e definir onde o jogador se senta no vehicle.mdl, aparece Vermelho no HLMV
  • $hbox 2 - Chest - Usado para NPC humano barriga e peito, aparece Verde no HLMV
  • $hbox 3 - Stomach - Usado para NPC humano estômago e pélvis, aparece amarelo no HLMV
  • $hbox 4 - Left Arm - Usado para NPC humano Braço Esquerdo, aparece Azul profundo no HLMV
  • $hbox 5 - Right Arm - Usado para NPC humano Braço Direito, aparece Violeta Brilhante no HLMV
  • $hbox 6 - Left Leg - Usado para NPC humano Perna Esquerda, aparece Ciano Brilhante no HLMV
  • $hbox 7 - Right Leg - Usado para NPC humano Perna Direita, appears Branco como o grupo padrão no HLMV
  • $hbox 8 - Neck - Usado para NPC humano pescoço (para corrigir a penetração na cabeça por trás), aparece laranja no 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)

Veja também