momentum-mod / website

Momentum Mod's main website.
https://momentum-mod.org
MIT License
58 stars 59 forks source link

Hidden Leaderboards #861

Closed tsa96 closed 6 months ago

tsa96 commented 11 months ago

We want to stop the Unranked leaderboard pool to still have some kind of standards, not including super goblin stuff. That being said, we may as well generate leaderboards for people that do want to play that.

So hidden leaderboards are essentially just the maximal leaderboards generated during map submission, that weren't given ranked/unranked status. We don't show in map selector, but if you load into that map through the "Override gamemode" dropdown, and it has a hidden leaderboard, we'll show it ingame. Stuff in IncompatibleGamemodes we still don't want - we're never storing runs on a surf map done in bhop (yell at us to add 100t surf instead).

Easy to do on backend, add a LeaderboardType enum: enum LeaderboardType { RANKED = 0, UNRANKED = 1, HIDDEN = 2 }

then just keep the maximal leaderboards but change to HIDDEN. Ingame we'd show as "Unranked (Hidden)" in leaderboard UI.