Difference between revisions of "Game player counter"
(Add warning concerning bug of entity) |
m (Add way around bug) |
||
Line 16: | Line 16: | ||
== Notes == | == Notes == | ||
− | + | This entity is partially broken, it doesn’t work correctly after a level change for instance, and you cannot access the current number of connected players with it. You can instead replace this entity’s behaviour with a trigger_entity_iterator and a game_counter. | |
+ | Unlike other entities, game_player_counter sends 'On' output instead of 'Toggle'. | ||
Latest revision as of 22:02, 23 May 2023
game_player_counter | |
---|---|
Type |
point |
Status |
supported |
This entity automatically fires its targets based on the number of players connected to the server. It will automatically fire its "Min Target" when "Min Value" is reached and its "Max Target" when "Max Value" is reached. This entity is partially broken, it doesn’t work correctly after a level change for instance, and you cannot access the current number of connected players with it.
1 Keyvalues
Min Value : frags
Player-count for "Min Target".
Max Value : health
Player-count for "Max Target".
Min Target : target
Target to trigger when "Min Value" is reached.
Max Target : netname
Target to trigger when "Max Value" is reached.
Filter Player Targetname : message
If set, only players by that targetname will cause the game_player_counter to count up/down. It's not possible to set a targetname on a player before he connects, so don't ask me how to make use of this.
2 Notes
This entity is partially broken, it doesn’t work correctly after a level change for instance, and you cannot access the current number of connected players with it. You can instead replace this entity’s behaviour with a trigger_entity_iterator and a game_counter. Unlike other entities, game_player_counter sends 'On' output instead of 'Toggle'.