NordInvasion Forum

Full Version: 1.9.3 Client Release
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
First
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:
11
22
32
43
54
65
76
86
97
108
119
1210
1310
1411
1512
1613
1714
1814
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
Pages: 1 2