summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_main.c11
1 files 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)