Geekid812 / TrackmaniaBingo

An Openplanet plugin to race against your friends to be the first team to complete a Bingo board!
https://openplanet.dev/plugin/trackmaniabingo
16 stars 5 forks source link

Prevent the possibility to watch/load ghosts #44

Open WhatEverest1 opened 1 year ago

WhatEverest1 commented 1 year ago

For (potential) bingo related competitions it would be cool to have a setting that prevents one from watching the leaderboard ghosts (simply trusting the players is not always an option). This could probably be achieved with a custom game mode (like the Chaos mode by nsgr?) or maybe there's a more elegant way where you can just disable it via the openplanet api.

Geekid812 commented 1 year ago

To be fair, there never was an official rule that you can't watch leaderboard ghosts. It is up to players to decide what is allowed in their lobbies, and for now it has worked sufficiently well. Bingo is still highly reliant on chance, but as seeing many people have made it a general rule to avoid ghosts, there is some jusification to this concern.

XertroV commented 1 year ago

Implementation of hiding the records UI element from TTG you can steal: https://github.com/XertroV/tm-cgf-library/blob/master/src/TTG/HideGameUI.as

Usage: https://github.com/XertroV/tm-cgf-library/blob/200b8ba451b347fe5b503a00b3677cb79a65c8e7/src/TTG/TTGState.as#L721-L722

It's implemented as a game option in TTG, so I assume it's easy enough to do the same for Bingo.

Note that the TTG impl also hides the chrono/timer and the respawn helper stuff on the RHS.