diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-17 14:51:00 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-11-17 14:52:39 +0100 |
commit | b613d50e14af12d5e882fcdab32b67a794dd0a04 (patch) | |
tree | e733a1b5dff1f55095b427fa2d44999eb9f835bb /src/game | |
parent | 2e45a9465849af6bb0a56c33a9723e7d98d806ad (diff) |
Adjust antistack parameters a bit.
Diffstat (limited to 'src/game')
-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) |