Env citadel energy core: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add keyvalue name to Scale)
mNo edit summary
Line 4: Line 4:
[[File:EnergyCore.jpg|thumb|right|300px|A Citadel Energy Core with Particles]]
[[File:EnergyCore.jpg|thumb|right|300px|A Citadel Energy Core with Particles]]
{{hl2 point|env_citadel_energy_core}} This is a simple particle effect not prominently displayed but frequently used in the [[Citadel]]. It's most common use is on weapon confiscation devices and ''some'' devices seen transporting energy balls.
{{hl2 point|env_citadel_energy_core}} This is a simple particle effect not prominently displayed but frequently used in the [[Citadel]]. It's most common use is on weapon confiscation devices and ''some'' devices seen transporting energy balls.
{{stray ent|{{portal}} {{portal2}}}}


{{code class|CCitadelEnergyCore|citadel_effects.cpp}}
{{code class|CCitadelEnergyCore|citadel_effects.cpp}}
Line 13: Line 15:
==Keyvalues==
==Keyvalues==
{{KV|Scale (scale)|float|Scale of the effect.  1 is the default size, 2 is twice that, etc.}}
{{KV|Scale (scale)|float|Scale of the effect.  1 is the default size, 2 is twice that, etc.}}
{{KV BaseEntity|base=1}}
{{KV BaseEntity|l4d=1|l4d2=1}}


==Inputs==
==Inputs==
Line 19: Line 21:
{{IO|StartDischarge|Start discharging the core.}}
{{IO|StartDischarge|Start discharging the core.}}
{{IO|Stop|param=float|Makes particles fade away within a given number of seconds.}}
{{IO|Stop|param=float|Makes particles fade away within a given number of seconds.}}
{{I BaseEntity|base=1|prel4d=1}}
{{I BaseEntity|prel4d=1}}


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

Revision as of 05:40, 17 September 2018

English (en)Русский (ru)Translate (Translate)
Not to be confused with prop_coreball.

(The reactor core ball from Episode One)

Not to be confused with prop_combine_ball.

(Citadel/AR2 energy balls)

A Citadel Energy Core with Particles

Template:Hl2 point This is a simple particle effect not prominently displayed but frequently used in the Citadel. It's most common use is on weapon confiscation devices and some devices seen transporting energy balls.

Note.pngNote:This entity is also in the code for Portal Portal 2. Its functionality is not guaranteed.


C++ In code, it is represented by theCCitadelEnergyCoreclass, defined in thecitadel_effects.cppfile.

Flags

  • 1: No small particles
  • 2: Start on

Keyvalues

Scale (scale) ([todo internal name (i)]) <float>
Scale of the effect. 1 is the default size, 2 is twice that, etc.


Inputs

StartCharge <floatRedirectInput/float>
Start charging the core over specified number of seconds.
StartDischarge
Start discharging the core.
Stop <floatRedirectInput/float>
Makes particles fade away within a given number of seconds.


Outputs