From b613d50e14af12d5e882fcdab32b67a794dd0a04 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 17 Nov 2018 14:51:00 +0100 Subject: Adjust antistack parameters a bit. --- src/game/g_main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/game/g_main.c b/src/game/g_main.c index 89f1f3a..8f8a83b 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -576,10 +576,10 @@ static cvarTable_t gameCvarTable[ ] = { &g_antistackScoreThreshold, "g_antistackScoreThreshold", "15", CVAR_ARCHIVE, 0, qfalse }, { &g_antistackTeamBiasThreshold, "g_antistackTeamBiasThreshold", "2", CVAR_ARCHIVE, 0, qfalse }, - { &g_antistackTeamBiasFactor, "g_antistackTeamBiasFactor", "0.69314718", CVAR_ARCHIVE, 0, qfalse }, + { &g_antistackTeamBiasFactor, "g_antistackTeamBiasFactor", "0.4054651", CVAR_ARCHIVE, 0, qfalse }, { &g_antistackScoreBias, "g_antistackScoreBias", "1", CVAR_ARCHIVE, 0, qfalse }, - { &g_antistackScoreBiasThreshold, "g_antistackScoreBiasThreshold", "0.69314718", CVAR_ARCHIVE, 0, qfalse }, - { &g_antistackScoreBiasFactor, "g_antistackScoreBiasFactor", " 0.69314718", CVAR_ARCHIVE, 0, qfalse }, + { &g_antistackScoreBiasThreshold, "g_antistackScoreBiasThreshold", "0", CVAR_ARCHIVE, 0, qfalse }, + { &g_antistackScoreBiasFactor, "g_antistackScoreBiasFactor", "0.2", CVAR_ARCHIVE, 0, qfalse }, { &g_antistackBiasThreshold, "g_antistackBiasThreshold", "0.1053605", CVAR_ARCHIVE, 0, qfalse }, }; @@ -2702,7 +2702,10 @@ static float AntistackTeamBias(int aliens, int humans) if (abs(aliens - humans) < g_antistackTeamBiasThreshold.integer) return 0.0f; - return (humans - aliens) * g_antistackTeamBiasFactor.value; + if (humans > aliens) + return (humans - aliens - g_antistackTeamBiasThreshold.integer + 1); + else + return (humans - aliens + g_antistackTeamBiasThreshold.integer - 1); } static float AntistackScoreBias(int alien_score, int human_score) -- cgit