From 8268afc55026f70cd21a7941e1228cfd9adeb0a8 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Wed, 15 Oct 2014 21:16:06 +0300 Subject: Added automatic levels functionality based on total score earned of each player. --- src/game/g_combat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/g_combat.c') diff --git a/src/game/g_combat.c b/src/game/g_combat.c index ada2f9c..87a6bd6 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -55,6 +55,9 @@ void AddScore( gentity_t *ent, int score ) score = rint( ((float)score) / 50.0f ); ent->client->ps.persistant[ PERS_SCORE ] += score; + + G_admin_add_score( ent, score ); + CalculateRanks( ); } -- cgit