trigger_coop
trigger_coop
is a brush entity available in Synergy. It keeps track of the number of players touching it.
Entity description
A brush entity that counts the number players touching it and fires OnPlayersIn output when the number of players passes the set threshold. It can be set to require a specific number of players, or require a percentage of living players. A HUD element can be shown to all players touching the trigger; displaying the current number of players that are also touching it, out of the total requirement.
Keyvalues
- PlayerValue
([todo internal name (i)])
<integer> - The number or percent of living players this trigger will use to compare with. Use value range of 0 - 100 for percentage.
- CountType
([todo internal name (i)])
<choices> - How the trigger should count the players.
- 0 : Specific Number of players.
- 1 : Percentage of all living players.
- UseHud
([todo internal name (i)])
<choices> - Use the HUD element for each player touching the trigger. (It will not display while the trigger is disabled)
- 0 : No
- 1 : Yes
|
Flags
Everything (not including physics debris) Clients (Survivors, Special Infected, Tanks ) : [32] : [512] : [4096] NPCs (Common Infected, Witches ) : [16] : [2048] Physics Objects (not including physics debris) : [1024]
|
Inputs
|
Outputs
OnPlayersIn
- Fired when the player count passes the requirement.
OnPlayersOut
- Fired when the player count drops below the requirement after reaching it.
Bug:Spamming crouch jumps in a trigger can randomly fire OnStartTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
Warning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning:
OnEndTouch can fire before OnStartTouch under certain circumstances where both are fired on the same tick and each have the same delay. Fix:Add a slight delay to OnEndTouch .Bug:Spamming crouch jump in a trigger can randomly fire OnEndTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
|