Trigger upgrade laser sight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{l4d2 brush|trigger_upgrade_laser_sight}} The entity gives laser sight upgrade to players within the volume. For instance, when the volume is disabled, players lose the laser sights given. It is used in the final map of The Passing to automatically equip the L4D1 survivors with laser sights.
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}__NOTOC__
{{stub}}
{{CD|CTriggerUpgradeLaserSight}}
==Keyvalues==
{{this is a|brush entity|name=trigger_upgrade_laser_sight|series=Left 4 Dead}} The entity gives laser sight upgrade to players within the volume. For instance, when the volume is disabled, players lose the laser sights given. It is used in the final map of The Passing to automatically equip the L4D1 survivors with laser sights.
* {{KV Trigger}}


==Inputs==
== Keyvalues ==
* {{I Trigger}}
{{KV Trigger}}
{{KV Targetname}}


==Outputs==
== Flags ==
*{{O Targetname}}
{{Fl|1|Clients (in {{l4ds}} survivors and SI)}}
*{{ScrollBox|title=TriggerOnce|
; <code>OnStartTouch</code>
: Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. {{activator|toucher}}
; <code>OnStartTouchAll</code>
: Fired when an entity starts touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered. {{activator|toucher}}
}}
*{{ScrollBox|title=Trigger|noscroll=true|
; <code>OnEndTouch</code>
: Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire. {{activator|exiting entity}}
; <code>OnEndTouchAll</code>
: Fires when the last entity in the entity's area exits this trigger or when this entity is disabled. Only entities that passed this trigger's filters are considered.  {{activator|last exiting entity}}
}}


 
== Inputs ==
==Flags==
{{I EnableDisable}}
*1 : Applies to clients (players)
*2 : Applies to NPCs
*4 : Applies to pushables
*8 : Applies to physics objects
*16 : Applies to player ally NPCs
*32 : Applies to clients in vehicles
*64 : Applies to everything
*512 : Applies to clients '''not''' in vehicles
*1024 : Applies to physics debris
*2048 : Applies to NPCs in vehicles (Respects player ally flag)


==See also==
==See also==
* [[info_l4d1_survivor_spawn]]
* [[info_l4d1_survivor_spawn]]
* [[upgrade_spawn]]
* [[upgrade_spawn]]

Latest revision as of 18:03, 17 May 2024

English (en)Translate (Translate)
C++ Class hierarchy
CTriggerUpgradeLaserSight
CTriggerWeaponUpgrade
CBaseTrigger
CBaseToggle
CBaseEntity

trigger_upgrade_laser_sight is a brush entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. The entity gives laser sight upgrade to players within the volume. For instance, when the volume is disabled, players lose the laser sights given. It is used in the final map of The Passing to automatically equip the L4D1 survivors with laser sights.

Keyvalues

BaseTrigger
Filter Name (filtername) <filter>
A filter entity to test potential activators against.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Flags

Clients (in Left 4 Dead seriesLeft 4 Dead series survivors and SI) : [1]

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See also