(17-03-2018, 08:22 AM)Łíťțłĕ_ĐēvìĹ* Wrote: I start to build but team press Z
nice update for builders(
Well I am sure if someone sees you build barricades he would wait voting to skip prep time till you are done, after all you need ~80% to pass the vote.
Allow me to write the pseudo code that is responsible for calculating the amount of votes needed(afk people are excluded):
Code:
players_alive * 10
players_alive_threshold = players_alive * 8
players_alive_threshold_mod = players_alive_threshold mod 100
players_alive_threshold /= 100
if players_alive_threshold_mod => 50
players_alive_threshold += 1By running some test data through the pseudo code you will end up with
| Players alive: | Votes needed: |
| 1 | 1 |
| 2 | 2 |
| 3 | 2 |
| 4 | 3 |
| 5 | 4 |
| 6 | 5 |
| 7 | 6 |
| 8 | 6 |
| 9 | 7 |
| 10 | 8 |
| 11 | 9 |
| 12 | 10 |
| 13 | 10 |
| 14 | 11 |
| 15 | 12 |
| 16 | 13 |
| 17 | 14 |
| 18 | 14 |
