Author Topic: Server_EloRating  (Read 1048 times)

This was originally meant for a tdm server I was making a while back.
Credit to Pecon for her levels mod which I used as a base.

Elo is calculated on each kill or death and the difference is subtracted from the losing player's Elo rating and added to the winning player.

The equation:
%expectedScore = 1 / (1 + mPow(10, ((2Elo - %1Elo)/400)))
%eloDifference = %K * (%score - %expectedScore)
%K is the elo coefficient
%Score is the outcome of the fight. In this case either 1 or 0

/stats - name/bl_id

/eloReset - name/bl_id/all

$Pref::EloRating::eloKVal - Change coefficient value
$Pref::EloRating::fightsToRating - How many fight until you get your rating.
$Pref::EloRating::fightsWelcomeMsg - Display fights left till rating on join.
$Pref::EloRating::resetPerm /eloReset command permissions
$Pref::EloRating::resetAllHost /eloReset ALL command host only.

Prefs can be changed from the glass server menu.
If you are an admin you can type /printEloPrefs to see all the preferences ingame.

« Last Edit: February 06, 2022, 09:28:10 PM by c[_] »

competitive blockland matchmaking when