diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-17 14:51:00 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-02-10 14:47:47 +0100 |
commit | ee267d975528dbe3b67b04265ad595ad36f12920 (patch) | |
tree | f0929aa35b2902e82791155970400cb401ee2688 /src | |
parent | 8238c404708333ee8832ea7538e225086549815d (diff) |
Adjust antistack parameters a bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_main.c | 11 |
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) |