Env alyxemp: Difference between revisions
Jump to navigation
Jump to search

Tip:To find attachment points for other models, use ent_attachments.
SirYodaJedi (talk | contribs) No edit summary |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CAlyxEmpEffect|file1=env_alyxemp.cpp}} | |||
{{this is a|point entity|game=Half-Life 2 series|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: | ||
Line 11: | Line 13: | ||
{{stray ent|{{portal}}}} | {{stray ent|{{portal}}}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|EMP Type | {{KV Targetname}} | ||
{{KV|EMP Type|intn=Type|choices|EMP effect type. | |||
:*0: Small | :*0: Small | ||
:*1: Large}} | :*1: Large}} | ||
{{KV|Target Entity | {{KV|Target Entity|intn=EndTargetName|target_destination|Entity to use as a target endpoint (probably an {{ent|info_target}}). This entity can be its own target.}} | ||
==Inputs== | ==Inputs== | ||
{{ | {{I|StartCharge|param=float|Start charging the effect over specified number of seconds.}} | ||
{{ | {{I|StartDischarge|Start discharging the effect over specified number of seconds.}} | ||
{{ | {{I|Stop|param=float|Stops the effect. {{todo|Clarify what the parameter does?}}}} | ||
{{ | {{I|SetTargetEnt|param=string|Sets the '''Target Entity''' for the effect.}} | ||
Latest revision as of 13:28, 25 September 2024


![]() |
---|
CAlyxEmpEffect |
![]() |
env_alyxemp
is a point entity available in Half-Life 2 series. This entity creates a particle effect from Alyx's EMP.
To attach one end to Alyx's EMP device:
- Use the Parent keyvalue or the
SetParent
input to parent it to npc_alyx. - Send the
env_alyxemp
theSetParentAttachment
input withemp
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?

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- EMP Type (Type) <choices>
- EMP effect type.
- 0: Small
- 1: Large
- Target Entity (EndTargetName) <targetname>
- Entity to use as a target endpoint (probably an info_target). This entity can be its own target.
Inputs
- StartCharge <float >
- Start charging the effect over specified number of seconds.
- StartDischarge
- Start discharging the effect over specified number of seconds.
- Stop <float >
- Stops the effect. Todo: Clarify what the parameter does?
- SetTargetEnt <string >
- Sets the Target Entity for the effect.