12-Jul-2023
This entity keeps track of the total number of players currently on or connecting to the server. It will trigger its "Min Target" when "Min Value" is reach and its "Max Target" when "Max Value" is reached. You don't need to use minimum and maximum value and target. In fact they are completely unrelated and are named like that only to imply the intended use of toggling something in the map based on a player count threshold. You can use "dmg" key to get current number of players e.g. by using trigger_copyvalue or trigger_condition.
Keyvalues |
Min Value frags : Player-count required to trigger "Min Target".
Max Value health : Player-count required to trigger "Max Target".
Min Target target : Entity to trigger when "Min Value" is reached. Trigger use-type is 'On'
Max Target netname : Target to trigger when "Max Value" is reached. Trigger use-type is 'On'.
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.
Unlike other entities, game_player_counter sends 'On' output instead of 'Toggle'.
You can access current player value of this entity by refering to "dmg" keyvalue.
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.