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.

Criando Entidades de Brush

From Valve Developer Community
< Pt-br
Revision as of 13:03, 9 September 2024 by David Macalister (talk | contribs)
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)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.

Finishing

Open the Texture Browser and 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.

But don’t get too carried away!

Destroying

To make a brush entity back into a regular one, select it and press Ctrl+Shift+W, or ToWorld, right next to the ToEntity button you clicked earlier.



Stub

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