Env alyxemp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template)
(updates)
Line 1: Line 1:
{{hl2 point|env_alyxemp}}
{{lang|Env alyxemp}}
{{hl2 point|env_alyxemp}} This entity creates a particle effect from Alyx's EMP.


== Entity description ==
To attach one end to Alyx's EMP device:
This entity creates a particle effect from Alyx's EMP. Often parented to Alyx and set parent attachment to emp. (setparentattachment anim_attachment_Rh)
#Use the '''Parent''' keyvalue or the <code>SetParent</code> input to parent it to {{ent|npc_alyx}}.
#Send the <code>env_alyxemp</code> the <code>SetParentAttachment</code> input with <code>emp</code> for the parameter.
To change the '''Target Entity''', use the <code>SetTargetEnt</code> input with the new entity name for the parameter.


== Keyvalues ==
{{tip|To find attachment points for other models, use {{ent|ent_attachments}}.}}
{{KV Targetname}}
{{KV Parentname}}
{{KV Angles}}
{{KV|EMP Type|choices|EMP effect type.}}
:* 0 : Small
:* 1 : Large
{{KV|Target Entity|target_destination|Entity to use as a target endpoint.}}


== Inputs ==
{{code class|CAlyxEmpEffect|env_alyxemp.cpp}}
{{I Targetname}}
 
{{I Parentname}}
==Keyvalues==
{{IO|StartCharge|Start charging the effect over specified number of seconds.|param=float}}
{{KV|EMP Type|choices|EMP effect type.
:*0: Small
:*1: Large}}
{{KV|Target Entity|target_destination|Entity to use as a target endpoint (probably an {{ent|info_target}}).}}
{{KV BaseEntity|base=1}}
 
==Inputs==
{{IO|StartCharge|param=float|Start charging the effect over specified number of seconds.}}
{{IO|StartDischarge|Start discharging the effect over specified number of seconds.}}
{{IO|StartDischarge|Start discharging the effect over specified number of seconds.}}
{{IO|Stop|Stops the effect at any point.|param=float}}
{{IO|Stop|param=float|Stops the effect. {{todo|Clarify what the parameter does?}}}}
{{IO|SetTargetEnt|Sets the target entity for the effect.|param=string}}
{{IO|SetTargetEnt|param=string|Sets the '''Target Entity''' for the effect.}}
{{I BaseEntity|base=1}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}

Revision as of 12:21, 6 September 2018

English (en)Translate (Translate)

Template:Hl2 point 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.

Tip.pngTip:To find attachment points for other models, use ent_attachments.
C++ In code, it is represented by theCAlyxEmpEffectclass, defined in theenv_alyxemp.cppfile.

Keyvalues

EMP Type ([todo internal name (i)]) <choices>
EMP effect type.
  • 0: Small
  • 1: Large
Target Entity ([todo internal name (i)]) <targetname>
Entity to use as a target endpoint (probably an info_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