This article relates to the game "Half-Life: Alyx". Click here for more information.
This article relates to the workshop tools for "Half-Life: Alyx". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Difference between revisions of "Half-Life: Alyx Workshop Tools/Level Design/Barnacle"

From Valve Developer Community
Jump to: navigation, search
(Setup)
m (Make entity link to its wiki page)
 
Line 6: Line 6:
 
== Setup ==
 
== Setup ==
  
Create a test room. Insert a '''npc_barnacle''' entity and translate it's origin to the ceiling of the room. Switch the grid size to 1 unit and translate the entity in the Z axis 1 unit down. For some reason, the model origin is 1 unit below it's top face, so, if you don't translate it down, it will crop part of the model.
+
Create a test room. Insert a '''[[npc_barnacle (hlvr)]]''' entity and translate it's origin to the ceiling of the room. Switch the grid size to 1 unit and translate the entity in the Z axis 1 unit down. For some reason, the model origin is 1 unit below it's top face, so, if you don't translate it down, it will crop part of the model.
  
 
{{note|The tongue appears to be "cast" out from the origin of the entity. Geometry intersecting the barnacle may prevent it from deploying its tongue.}}
 
{{note|The tongue appears to be "cast" out from the origin of the entity. Geometry intersecting the barnacle may prevent it from deploying its tongue.}}

Latest revision as of 01:23, 21 July 2020

Introduction

This tutorial will teach you how to add a Barnacle to the game.

Setup

Create a test room. Insert a npc_barnacle (hlvr) entity and translate it's origin to the ceiling of the room. Switch the grid size to 1 unit and translate the entity in the Z axis 1 unit down. For some reason, the model origin is 1 unit below it's top face, so, if you don't translate it down, it will crop part of the model.

Note.png Note: The tongue appears to be "cast" out from the origin of the entity. Geometry intersecting the barnacle may prevent it from deploying its tongue.

HLA SDK Barnacle Img1.png

Finishing up

Compile and run your map, and you should have a working Barnacle, with sounds and AI.

You can download the example map here [[1]].

HLA SDK Barnacle Img2.png