Env xen portal effect: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CDA|CEnv_XenPortalEffect|CBaseEntity|}}
{{ent not in fgd|nolink=1|because=used by other entity and wasn't supposed to be used via {{hammer|4}}. Available in [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD Enhanced Black Mesa FGD]}}
{{ent not in fgd|nolink=1|because=used by other entity and wasn't supposed to be used via {{hammer|4}}. Available in [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD Enhanced Black Mesa FGD]}}
{{this is a|point entity|name=env_xen_portal_effect|game=Black Mesa}} This entity used by {{ent|env_xen_portal}} to create the sound and push player away. Also can be used with [[I/O]] system.
{{this is a|point entity|name=env_xen_portal_effect|game=Black Mesa}} This entity used by {{ent|env_xen_portal}} to create the sound and push player away. Also can be used with [[I/O]] system.


Represented by class <code>CEnv_XenPortalEffect</code>.
{{important|This entity fires all the [[I/O]] when spawned. Keep in mind this factor if you will use this entity.}}
{{important|This entity fires all the [[I/O]] when spawned. Keep in mind this factor if you will use this entity.}}
{{note|It doesn't create any sound if spawned with {{ent|player}}. Can be fixed if spawned via {{ent|point_template}}.}}
{{note|It doesn't create any sound if spawned with {{ent|player}} (except multiplayer). Can be fixed if spawned via {{ent|point_template}}.}}
{{bug|hidetested=1|Doesn't push {{ent|player}} in multiplayer. {{fixed|{{SourceCoop}}}}}}


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|Size|intn=size|float|Size. Affects the push away distance. The max push distance is distance increased by ~95 percent of specified value.}}
{{KV|Size|intn=size|float|Size. Affects the push away distance. The max push distance is distance increased by ~95 percent of specified value.}}


== Inputs ==
== Inputs ==
{{IO|PushAway|param=void|Will push player once when fired. Doesn't play any sound.}}
{{I|PushAway|param=void|Will push player once when fired. Doesn't play any sound.}}
{{IO|Burst|param=void|Copy of ''PushAway'', but will also fire ''OnBurst'' output.}}
{{I|Burst|param=void|Copy of ''PushAway'', but will also fire ''OnBurst'' output.}}


== Outputs ==
== Outputs ==
{{IO|OnBurst|param=void|Fires via ''Burst'' input.
{{O|OnBurst|param=void|Fires via ''Burst'' input.
{{note|The input is fired on entity spawn, so it will cause this output to fire as well.}}
{{note|The input is fired on entity spawn, so it will cause this output to fire as well.}}
}}
}}

Latest revision as of 01:24, 2 August 2025

C++ Class hierarchy
CEnv_XenPortalEffect
CBaseEntity
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because used by other entity and wasn't supposed to be used via Hammer Hammer. Available in Enhanced Black Mesa FGD.

env_xen_portal_effect is a point entity available in Black Mesa Black Mesa. This entity used by env_xen_portal to create the sound and push player away. Also can be used with I/O system.

Icon-Important.pngImportant:This entity fires all the I/O when spawned. Keep in mind this factor if you will use this entity.
Note.pngNote:It doesn't create any sound if spawned with player (except multiplayer). Can be fixed if spawned via point_template.
Icon-Bug.pngBug:Doesn't push player in multiplayer. (fixed in SourceCoop)

Keyvalues

Size (size) <float>
Size. Affects the push away distance. The max push distance is distance increased by ~95 percent of specified value.

Inputs

PushAway <void>
Will push player once when fired. Doesn't play any sound.
Burst <void>
Copy of PushAway, but will also fire OnBurst output.

Outputs

OnBurst <void>
Fires via Burst input.
Note.pngNote:The input is fired on entity spawn, so it will cause this output to fire as well.

See also