Skip to content
Permalink
Browse files

game: log and display last win probability in statsdump, refs #403

  • Loading branch information
rmarquis committed Feb 10, 2020
1 parent 164b964 commit 862601ed2f20a5f4f6509b86e6bc1d26915898f8
Showing with 5 additions and 1 deletion.
  1. +2 −1 src/game/g_match.c
  2. +3 −0 src/game/g_skillrating.c
@@ -770,7 +770,8 @@ void G_printMatchInfo(gentity_t *ent)
// display map bias
if (g_skillRating.integer > 1)
{
CP(va("sc \"\n^2Map bias: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * (level.mapProb - 0.5f), 100.f * (0.5f - level.mapProb)));
CP(va("sc \"\n^2Map bias: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * (level.mapProb - 0.5f), 100.f * (0.5f - level.mapProb)));
CP(va("sc \"\n^2Win probability: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * level.axisProb, 100.f * level.alliesProb));
}
#endif

@@ -866,6 +866,9 @@ void G_CalculateSkillRatings(void)
trap_SetConfigstring(CS_LEGACYINFO, cs);
}

// log last estimated win probability
G_LogPrintf("SkillRating: Win probability X/L: %.6f/%.6f\n", level.axisProb, level.alliesProb);

G_UpdateSkillRating(winner);
}

0 comments on commit 862601e

Please sign in to comment.
You can’t perform that action at this time.