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

Tip:To find attachment points for other models, use ent_attachments.
(→Inputs: |prel4d=1) |
(misc stuff) |
||
Line 6: | Line 6: | ||
#Send the <code>env_alyxemp</code> the <code>SetParentAttachment</code> input with <code>emp</code> for the parameter. | #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. | To change the '''Target Entity''', use the <code>SetTargetEnt</code> input with the new entity name for the parameter. | ||
{{todo|How to make Alyx take out the EMP device?}} | |||
{{tip|To find attachment points for other models, use {{ent|ent_attachments}}.}} | {{tip|To find attachment points for other models, use {{ent|ent_attachments}}.}} | ||
{{stray ent|{{portal}}}} | |||
{{code class|CAlyxEmpEffect|env_alyxemp.cpp}} | {{code class|CAlyxEmpEffect|env_alyxemp.cpp}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|EMP Type|choices|EMP effect type. | {{KV|EMP Type (Type)|choices|EMP effect type. | ||
:*0: Small | :*0: Small | ||
:*1: Large}} | :*1: Large}} | ||
{{KV|Target Entity|target_destination|Entity to use as a target endpoint (probably an {{ent|info_target}}).}} | {{KV|Target Entity (EndTargetName)|target_destination|Entity to use as a target endpoint (probably an {{ent|info_target}}). This entity can be its own target.}} | ||
{{KV BaseEntity|base=1}} | {{KV BaseEntity|base=1}} | ||
Revision as of 04:39, 17 September 2018


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