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

Pt-br/Creating Brush Entities: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{subst:#if: CREATING TRANSLATION OF 'Creating Brush Entities' to 'português do Brasil' VIA Template:LanguageBar BUTTONS...")
 
mNo edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{translate}}{{wip}}
{{LanguageBar |title = Criando Entidades de Brush}}
{{LanguageBar}}
{{Goldsource topicon}}{{source topicon}}
{{Goldsource topicon}}{{source topicon}}
{{first room menu}}
{{first room menu}}
We have already [[Basic Construction|created brushes]]. There is another side to them: the '''[[brush entity]]'''.
[[Basic Construction|criamos brushes]]. Há um outro lado deles: as '''[[brush entity|entidades de brush]]'''


In this example, we will create a brush that acts as a sliding door. When the player touches the brush, it will rise into the air and allow passage.
Neste exemplo, criaremos um brush que funciona como uma porta deslizante. Quando o jogador tocar o brush, ele se elevará no ar e permitirá a passagem.


[[File:Door basic.png|thumb|none|A basic {{ent|func_door}} entity.]]
[[File:Door basic.png|thumb|none|Uma {{ent|func_door}} básica]]


== Construction ==
== Construção ==
# Select the {{hammer block}} and create a new brush. 128×128×16 is a good size, but anything will do. {{tip|If Hammer’s grid is too large to get down to 16 units, press {{key|[}} or click '''Smaller Grid''' [[File:Hammer SmallerGrid.png|link=]] to scale it down. Never disable snapping unless you really, ''really'' need to!}}
# Selecione o bloco {{hammer block}} e crie um novo brush. 128×128×16 é um bom tamanho, mas qualquer tamanho serve. {{tip|Se a grade do Hammer for muito grande para ser reduzida a 16 unidades, pressione {{key|[}} ou clique em '''Smaller Grid'''' [[File:Hammer SmallerGrid.png|link=]] para reduzi-la. Nunca desative o encaixe a menos que você realmente precise!}}
# Move the brush to an entity (also known as “tying” to an entity) using {{key|Ctrl+T}} or the [[Hammer New Objects Toolbar#toEntity_(Ctrl+T)|toEntity]] button:<p>[[File:Hammer toEntityButton.png|border|Hammer toEntity button|link=]]</p>. {{tip| If you've unselected the brush you wish to tie the entity to you will need to reselect it otherwise the toEntity button will not work when you click on it}}
# Mova o brush para uma entidade (também conhecido como “amarrar” a uma entidade) usando {{key|Ctrl+T}} ou o botão [[Hammer New Objects Toolbar#toEntity_(Ctrl+T)|toEntity]]:<p>[[File:Hammer toEntityButton.png|border|Botão Hammer toEntity|link=]]</p> {{tip|Se você tiver desmarcado o brush ao qual deseja vincular a entidade, será necessário selecionar novamente, caso contrário, o botão toEntity não funcionará quando você clicar nele}}
# This will bring up the [[Hammer Object Properties Dialog|Object Properties]] dialog:<p>[[File:Hammer object properties.png|400px|Object properties dialog]]</p> {{tip|If you need to access the dialog again later, select your brush and press {{key|Alt+Enter}}.}}
# Isso abrirá a caixa de diálogo [[Hammer Object Properties Dialog|Propiedades do Objeto]]:<p>[[File:Hammer object properties.png|400px|Dialogo de Propriedades do Objeto]]</p> {{tip|Se você precisar acessar a caixa de diálogo novamente mais tarde, selecione o brush e pressione {{key|Alt+Enter}}.}}
# Select [[func_door]] from the “Class” drop-down menu in the top left (you can search by typing into the box) and hit “Apply”.
# Select [[func_door]] from the “Class” drop-down menu in the top left (you can search by typing into the box) and hit “Apply”.
# Near the bottom of the main “Keyvalues” list, find “Move Direction”. Either change its value to read “<code>-90 0 0</code>” or select “Up” from the drop-down list to the left of the black circle.
# Near the bottom of the main “Keyvalues” list, find “Move Direction”. Either change its value to read “<code>-90 0 0</code>” or select “Up” from the drop-down list to the left of the black circle.
# Click “Apply” again, then close the Object Properties dialog.
# Click “Apply” again, then close the Object Properties dialog.


You should now be able to compile your map and see the door working.
Agora você deve conseguir compilar o mapa e ver a porta funcionando.


== Finishing ==
== Terminando ==
Open the [[Hammer Texture Browser|Texture Browser]] and [[Hammer Texture Browser#Filter|filter]] for “door”. Choose a material that you like and apply it to your brush as you would normally. You might also want to build a wall that connects the door to the edges of your map.
Abra o [[Hammer Texture Browser|Texture Browser]] e [[Hammer Texture Browser#Filter|filtro]] para “porta”. Escolha um material que você goste e aplique-o ao brush como faria normalmente. Talvez você também queira construir uma parede que conecte a porta às bordas do mapa.


[[File:Decorated door.jpg|400px|thumb|none|But don’t get too carried away!]]
[[File:Decorated door.jpg|400px|thumb|none|Mas não se empolgue muito!]]


==Destroying==
==Destruindo==
To make a brush entity back into a regular one, select it and press {{key|Ctrl+Shift+W}}, or '''ToWorld''', right next to the ToEntity button you clicked earlier.
Para transformar uma entidade de pincel em uma entidade normal, selecione-a e pressione {{key|Ctrl+Shift+W}}, ou '''ToWorld'''', ao lado do botão ToEntity que você clicou anteriormente.


{{Navbar|Adding Point Entities|Your First Map|Adding Light}}
{{Navbar
| 1 = Adding Point Entities | alt1 = Adicionando pontos de entidades
| 2 = Your First Map | alt2 = Seu primeiro mapa
| 3 = Adding Light | alt3 = Adicionando luz
}}


[[Category:Hammer]]
{{ACategory|Hammer}}
[[Category:Level Design]]
{{ACategory|Level Design}}




{{stub}}
{{stub}}

Latest revision as of 11:33, 23 May 2025

English (en)Français (fr)Magyar (hu)日本語 (ja)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)

criamos brushes. Há um outro lado deles: as entidades de brush

Neste exemplo, criaremos um brush que funciona como uma porta deslizante. Quando o jogador tocar o brush, ele se elevará no ar e permitirá a passagem.

Uma func_door básica

Construção

  1. Selecione o bloco Block tool Hammer block.png e crie um novo brush. 128×128×16 é um bom tamanho, mas qualquer tamanho serve.
    Tip.pngDica:Se a grade do Hammer for muito grande para ser reduzida a 16 unidades, pressione [ ou clique em Smaller Grid' Hammer SmallerGrid.png para reduzi-la. Nunca desative o encaixe a menos que você realmente precise!
  2. Mova o brush para uma entidade (também conhecido como “amarrar” a uma entidade) usando Ctrl+T ou o botão toEntity:

    Botão Hammer toEntity

    Tip.pngDica:Se você tiver desmarcado o brush ao qual deseja vincular a entidade, será necessário selecionar novamente, caso contrário, o botão toEntity não funcionará quando você clicar nele
  3. Isso abrirá a caixa de diálogo Propiedades do Objeto:

    Dialogo de Propriedades do Objeto

    Tip.pngDica:Se você precisar acessar a caixa de diálogo novamente mais tarde, selecione o brush e pressione Alt+Enter.
  4. Select func_door from the “Class” drop-down menu in the top left (you can search by typing into the box) and hit “Apply”.
  5. Near the bottom of the main “Keyvalues” list, find “Move Direction”. Either change its value to read “-90 0 0” or select “Up” from the drop-down list to the left of the black circle.
  6. Click “Apply” again, then close the Object Properties dialog.

Agora você deve conseguir compilar o mapa e ver a porta funcionando.

Terminando

Abra o Texture Browser e filtro para “porta”. Escolha um material que você goste e aplique-o ao brush como faria normalmente. Talvez você também queira construir uma parede que conecte a porta às bordas do mapa.

Mas não se empolgue muito!

Destruindo

Para transformar uma entidade de pincel em uma entidade normal, selecione-a e pressione Ctrl+Shift+W, ou ToWorld', ao lado do botão ToEntity que você clicou anteriormente.



Stub

This article or section is a stub. You can help by expanding it.