TheWreckingCrewUK / Insurgency-Redux-Legacy

A collection of Insurgency Redux missions.
http://www.thewreckingcrew.eu/
4 stars 1 forks source link

[Misc] Voting System to End Mission #47

Closed Bosenator closed 7 years ago

Bosenator commented 7 years ago

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.

["#giveup", { ... }, "all", player] call CBA_fnc_registerChatCommand;