Hello NI community,
This patch adds another new weapon and fixes some small errors.
Item Changes:- Heavy Halberd +11c, +7p
- New House Crafted Marauder polearm (with secondary mode)
Other Changes:- Z no longer votes to skip prep time when typed in a chat box
so now the marketplace polearm is way better than snake halberd?
I start to build but team press Z
nice update for builders(
(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 += 1
By 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 |
When you own a Non-English (not to say german) keyboard, its Y to skip the preptime.
If you have a azerty or qwertz keyboard and want to redefine keys, let me know in a PM.
(17-03-2018, 10:05 AM)Kaasovic Wrote: [ -> ]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 += 1
You should use a ternary conditional operator to simplify this in processing time, memory, and code readability.
Code:
players_alive_threshold = players_alive * 4 / 5
players_alive_threshold = ((players_alive_threshold mod 100) / 100) >= 50 ? players_alive_threshold + 1 : players_alive_threshold;
(17-03-2018, 10:48 AM)Kaasovic Wrote: [ -> ]If you have a azerty or qwertz keyboard and want to redefine keys, let me know in a PM.
using MALTRON plis halp
(17-03-2018, 03:44 PM)bluzark Wrote: [ -> ] (17-03-2018, 10:48 AM)Kaasovic Wrote: [ -> ]If you have a azerty or qwertz keyboard and want to redefine keys, let me know in a PM.
using MALTRON plis halp
ps2 controller