Module MapRate Reweight - Steell/Ultimate-Mapchooser GitHub Wiki
The MapRate Map-Reweighting module will take the average rating of a map from the MapRate SourceMod Plugin and use that value to modify the weights of maps in Ultimate Mapchooser. This module requires the MapRate plugin to be present in order to work.
The MapRate Map-Reweighting module provides the following commands:
-
sm_umc_maprate_testreweight
<mapname>
-- Displays the calculated reweight-factor for the given map.
The list of cvars for the MapRate Map-Reweighting module is located in cfg/sourcemod/umc-maprate-reweight.cfg.
###Modifying The Reweight Scale The sm_umc_maprate_expscale cvar can be used to modify how the module will scale the average rating for each map to determine the weight.
AVG = average rating
SCALE = value of "sm_umc_maprate_expscale"
W = calculated weight
W = AVG ^ SCALE
(average rating is raised to the power of the expscale cvar)
By default, this cvar is set to 1, which creates a linear scale:
AVG | SCALE | W
-----+-------+---
1 ^ 1 = 1
2 ^ 1 = 2
3 ^ 1 = 3
4 ^ 1 = 4
5 ^ 1 = 5
If you set it to 2, for example, the result is no longer linear, and higher ratings now have a bigger impact on the result weight:
AVG | SCALE | W
-----+-------+---
1 ^ 2 = 1
2 ^ 2 = 4
3 ^ 2 = 9
4 ^ 2 = 16
5 ^ 2 = 25