Env alyxemp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{lang|Env alyxemp}}{{this is a|e0|series=Half-Life 2|name=env_alyxemp}} This entity creates a particle effect from Alyx's EMP.
{{lang|Env alyxemp}}{{this is a|point entity|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch|name=env_alyxemp}} This entity creates a particle effect from Alyx's EMP.


To attach one end to Alyx's EMP device:
To attach one end to Alyx's EMP device:

Revision as of 17:09, 17 May 2024

English (en)Translate (Translate)

env_alyxemp is a point entity available in Half-Life 2 Half-Life 2, Half-Life 2: Episode One Half-Life 2: Episode One, Half-Life 2: Episode Two Half-Life 2: Episode Two, and Half-Life 2: Deathmatch Half-Life 2: Deathmatch. This entity creates a particle effect from Alyx's EMP.

To attach one end to Alyx's EMP device:

  1. Use the Parent keyvalue or the SetParent input to parent it to npc_alyx.
  2. Send the env_alyxemp the SetParentAttachment input with emp for the parameter.

To change the Target Entity, use the SetTargetEnt input with the new entity name for the parameter.

Todo: How to make Alyx take out the EMP device?
Tip.pngTip:To find attachment points for other models, use ent_attachments.
Note.pngNote:This entity is also in the code for Portal. Its functionality is not guaranteed.


C++ In code, it is represented by theCAlyxEmpEffectclass, defined in theenv_alyxemp.cppfile.

Keyvalues

EMP Type (Type) ([todo internal name (i)]) <choices>
EMP effect type.
  • 0: Small
  • 1: Large
Target Entity (EndTargetName) ([todo internal name (i)]) <targetname>
Entity to use as a target endpoint (probably an info_target). This entity can be its own target.


Inputs

StartCharge <floatRedirectInput/float>
Start charging the effect over specified number of seconds.
StartDischarge
Start discharging the effect over specified number of seconds.
Stop <floatRedirectInput/float>
Stops the effect.
Todo: Clarify what the parameter does?
SetTargetEnt <stringRedirectInput/string>
Sets the Target Entity for the effect.


Outputs