


the latest build will always be found at https://github.com/forrest57/straftat-lobbyRank/releases/latest
This mod for STRAFTAT displays player's ranks under their name in lobbies and in game
the mod listens to setPlayerValues and UpdatePLayerList.
name \n rank(score),
or fetch the single player's rank and cache it if it is not availableThis mod utilizes C0mputery's whitelist to have a "cheater offset" for ranks.
It is semi-widely known that some people have cheated their ranks, so this whitelist has been put in place so that those people are filtered out (or at least we try to)
What happens is:
at this point we have a list of what the top 10 should be. What the mod does now is
offset = top10Players[last].rank - 10
this means that in case the last player's steam rank is 10, the offset will be 0, in case it's 12, it'll be 2 and so on.
no amount of cheaters will ever make a legit player be ranked higher than another legit player, so we don't really need to know where the cheaters are in the top 10
e.g. if steam says my rank is 125 and there are 6 cheaters in the top 10, the mod will display my rank as 119.
there are three possible states for a rank element:
~125
the tilde (~) signals that the mod is not done fetching the whitelist's ranks, so what is being shown is the raw, non-offset, steamLB rank#125
the hashtag signals that the whitelist has been correctly fetched and the shown rank is offset!9
the exclamation mark is accompanied by the rank being bright red. the number shown is the raw steamLB rank, non-offsetthis is reserved for the players who would be in the top 10, but are not in the whitelist.
not for sure, they could be, or they could only have to ask nicely in the tournament discord to be added to the whitelist
also, top 10 players will have a golden rank color
The mod retrieves rank and score from the game's leaderboard system via Steamworks API
Install the mod using a compatible mod loader (e.g., BepInEx).
PRs and issues are always welcome! I try to maintain this project in weekends or after work hours when I can, so sorry in advance if a PR hangs for a couple of days