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/Vort Energy Gloves"

From Valve Developer Community
Jump to: navigation, search
(Added HLATools page template)
m (Make entities link to their wiki page)
Line 9: Line 9:
 
== Setup ==
 
== Setup ==
  
Create a test room. Insert a '''info_hlvr_equip_player''' entity and check at least the following keys:
+
Create a test room. Insert a '''[[info_hlvr_equip_player]]''' entity and check at least the following keys:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 23: Line 23:
 
|}
 
|}
  
Insert a '''logic_playerproxy''' entity and, for this tutorial, set it's name to ''playerproxy''.
+
Insert a '''[[logic_playerproxy]]''' entity and, for this tutorial, set it's name to ''playerproxy''.
  
Insert a '''logic_auto''' entity. In the outputs, add the following output:
+
Insert a '''[[logic_auto]]''' entity. In the outputs, add the following output:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 48: Line 48:
 
=== Using an input ===
 
=== Using an input ===
  
You can charge the gloves with a '''logic_relay''' or similar entity with the following output:
+
You can charge the gloves with a '''[[logic_relay]]''' or similar entity with the following output:
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 69: Line 69:
 
[[File:HLA_SDK_Vort_Energy_Gloves_Img2.png]]
 
[[File:HLA_SDK_Vort_Energy_Gloves_Img2.png]]
  
Insert a '''point_vort_energy''' entity and rotate it accordingly. Make sure Start Enabled is checked:
+
Insert a '''[[point_vort_energy]]''' entity and rotate it accordingly. Make sure Start Enabled is checked:
  
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 01:11, 21 July 2020

Русский

Introduction

This tutorial will teach you how change the player hands to use Vortigaunt Energy Gloves, seen at the climax of Half-Life: Alyx. Make sure you have the latest SDK Tools.

Setup

Create a test room. Insert a info_hlvr_equip_player entity and check at least the following keys:

Key Value
Equip on Map Start
Grabbity Gloves

Insert a logic_playerproxy entity and, for this tutorial, set it's name to playerproxy.

Insert a logic_auto entity. In the outputs, add the following output:

My Output Target Entity Target Input Parameter Delay
OnNewGame playerproxy HapticPulseHands 0.00

HLA SDK Vort Energy Gloves Img3.png

Charging the gloves

Using an input

You can charge the gloves with a logic_relay or similar entity with the following output:

My Output Target Entity Target Input Parameter Delay
<output> !player GiveVortEnergy 0.00

Using energy rings

HLA SDK Vort Energy Gloves Img2.png

Insert a point_vort_energy entity and rotate it accordingly. Make sure Start Enabled is checked:

Key Value
Equip on Map Start
Grabbity Gloves

If you want it to charge the glove only once, add the following output:

My Output Target Entity Target Input Parameter Delay
OnEnergyPulled !self Disable 0.00

You can recharge the energy ring by using the following input:

My Output Target Entity Target Input Parameter Delay
<output> <entity_name> Enable 0.00

Finishing up

Compile and run your map, and you should have the Vortigaunt Energy Gloves and working Energy Rings.

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

HLA SDK Vort Energy Gloves Img1.png