From 20cfe7e4a15a4c1be1691fdfdf922ef840943c8f Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Tue, 28 Aug 2018 23:06:31 -0400 Subject: [PATCH] Make the low player count distributions slightly more extreme Scales below 8 players instead of 6 players. The distance multipler in 4P is now x1.14 instead of x1.07. --- src/k_kart.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 22d8124e9..b390ceaef 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -615,8 +615,8 @@ static INT32 K_KartGetItemOdds(UINT8 pos, SINT8 item, fixed_t mashed) players[first].mo->z - players[second].mo->z) / mapheaderinfo[gamemap-1]->mobj_scale; if (franticitems) secondist = (15*secondist/14); - if (pingame < 6 && !G_BattleGametype()) - secondist = ((28+(6-pingame))*secondist/28); + if (pingame < 8 && !G_BattleGametype()) + secondist = ((28+(8-pingame))*secondist/28); } // POWERITEMODDS handles all of the "frantic item" related functionality, for all of our powerful items. @@ -628,8 +628,8 @@ static INT32 K_KartGetItemOdds(UINT8 pos, SINT8 item, fixed_t mashed) #define POWERITEMODDS(odds) \ if (franticitems) \ odds *= 2; \ - if (pingame < 6 && !G_BattleGametype()) \ - odds = FixedMul(odds*FRACUNIT, FRACUNIT+min((6-pingame)*(FRACUNIT/25), FRACUNIT))/FRACUNIT; \ + if (pingame < 8 && !G_BattleGametype()) \ + odds = FixedMul(odds*FRACUNIT, FRACUNIT+min((8-pingame)*(FRACUNIT/25), FRACUNIT))/FRACUNIT; \ if (mashed > 0) \ odds = FixedDiv(odds*FRACUNIT, mashed+FRACUNIT)/FRACUNIT \ @@ -881,8 +881,8 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd) if (franticitems) // Frantic items make the distances between everyone artifically higher, for crazier items pdis = (15*pdis/14); - if (pingame < 6 && !G_BattleGametype()) - pdis = ((28+(6-pingame))*pdis/28); + if (pingame < 8 && !G_BattleGametype()) + pdis = ((28+(8-pingame))*pdis/28); if (pingame == 1 && oddsvalid[0]) // Record Attack, or just alone useodds = 0;