Trigger stun: Difference between revisions
Jump to navigation
Jump to search

(Created page with '{{tf2 brush|trigger_stun}} ==Entity description== A trigger volume that induces a stun effect on players. ==Keyvalues== {{KV Targetname}} {{KV Parentname}} {{KV Trigger}} {{KV|…') |
Kestrelguy (talk | contribs) m (updated template usage.) |
||
Line 1: | Line 1: | ||
{{tf2 brush|trigger_stun}} | {{lang|Trigger stun}} | ||
{{tf2 brush|trigger_stun}} It is a trigger volume that induces a stun effect on players. | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Stun type|choices|intn=stun_type| | |||
:* 0 : None/Movement | |||
:* 1 : Sandman stun/Controls + Movement | |||
{{KV|Stun type|choices | :* 2 : Humiliation/Fear/Loser State + Controls + Movement}} | ||
:* 0 : None | {{KV|Stun/Scared Effects|intn=stun_effects|boolean|Enables the "scared" particle effects. Does not work if stun type is none. Scream sound only plays if stun type is Fear.}} | ||
:* 1 : Sandman stun | {{KV|Duration|intn=stun_duration|float|Time in seconds that the player will remain under the effects of this trigger after leaving its area.}} | ||
:* 2 : Humiliation/Fear | {{KV|Move Speed Reduction|intn=move_speed_reduction|float|Reduce maximum speed by this fraction of base max speed (450), this is not class dependent. 0 {{=}} no reduction. 1 {{=}} total reduction, no movement. Example: 0.3 {{=}} Reduction by 30% of 450 {{=}} 315 max speed {{=}} only Scout, Medic, and Spy will notice a change.}} | ||
{{KV|Scared | {{KV|Delay|intn=trigger_delay|float|Time in seconds after entering the trigger before the player is affected. Will occur immediately if the player exits the trigger before this time. This also delays <tt>OnStunPlayer</tt> firing.}} | ||
{{KV|Duration|float|Time in seconds that the player will remain under the effects of this trigger after leaving its area.}} | {{KV TriggerOnce|base=1}} | ||
{{KV|Move | |||
{{KV|Delay|float|Time in seconds after entering the trigger before the player is affected. Will occur immediately if the player exits the trigger before this time. This also delays OnStunPlayer firing.}} | |||
==Flags== | ==Flags== | ||
{{Fl | {{Fl TriggerOnce}} | ||
==Inputs== | ==Inputs== | ||
{{I | {{I TriggerOnce|base=1}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnStunPlayer|Sent when a player is stunned (dependent on <tt>Delay</tt> setting).}} | |||
{{O BaseEntity}} | |||
{{IO|OnStunPlayer|Sent when a player is stunned (dependent on | {{O TriggerOnce}} |
Revision as of 19:17, 27 May 2022


Template:Tf2 brush It is a trigger volume that induces a stun effect on players.
Keyvalues
- Stun type (stun_type) <choices>
-
- 0 : None/Movement
- 1 : Sandman stun/Controls + Movement
- 2 : Humiliation/Fear/Loser State + Controls + Movement
- Stun/Scared Effects (stun_effects) <boolean>
- Enables the "scared" particle effects. Does not work if stun type is none. Scream sound only plays if stun type is Fear.
- Duration (stun_duration) <float>
- Time in seconds that the player will remain under the effects of this trigger after leaving its area.
- Move Speed Reduction (move_speed_reduction) <float>
- Reduce maximum speed by this fraction of base max speed (450), this is not class dependent. 0 = no reduction. 1 = total reduction, no movement. Example: 0.3 = Reduction by 30% of 450 = 315 max speed = only Scout, Medic, and Spy will notice a change.
- Delay (trigger_delay) <float>
- Time in seconds after entering the trigger before the player is affected. Will occur immediately if the player exits the trigger before this time. This also delays OnStunPlayer firing.
|
Flags
|
Inputs
BaseTrigger:
- Toggle
- Toggles this trigger between enabled and disabled states.
- Enable
- Enable trigger
- Disable
- Disable trigger
Outputs
- OnStunPlayer
- Sent when a player is stunned (dependent on Delay setting).
TriggerOnce:
- OnStartTouch
- Fired when an entity starts touching this trigger. The touching entity must pass this trigger's filters to cause this output to fire. (!activator is the "toucher.")
- OnTrigger
- Fired repeatedly with a delay while an entity is within this trigger's volume. Delay is defined by Delay Before Reset key.