If 75% of players (minus headless client) send the message #giveup within a space of 5 minutes, the mission will trigger the "Friendly forces have retreated from the area" losing screen, so they can go vote on a different mission to play.
Needs at least 4 people connected, in order to vote (so work by others isn't lost). Needs to be relatively independent from Insurgency, so we can drop this into other missions too.
The code below should call a function with the player object, that targets an EH on the server that collects and counts.
If 75% of players (minus headless client) send the message
#giveup
within a space of 5 minutes, the mission will trigger the "Friendly forces have retreated from the area" losing screen, so they can go vote on a different mission to play.Needs at least 4 people connected, in order to vote (so work by others isn't lost). Needs to be relatively independent from Insurgency, so we can drop this into other missions too.
The code below should call a function with the player object, that targets an EH on the server that collects and counts.