Hiding SPEC's score and ping on scoreboard
Hiding SPEC's score and ping on scoreboard
I would like to be able to enable/disable a cvar for allowing the ping and score of a spectator to be displayed. In regular baseq3 when a spectator follows a player he inherits that players score and ping. I would like to be able to disable this so the spectators true ping is displayed with a score of 0. Could someone point me in the right direction on how this could be done?
Re: Hiding SPEC's score and ping on scoreboard
I have checked out the source code of the unlagged mod that takes ping samples to display a real ping, however the spectator still has the same score as the person they are following on the scoreboard.
Re: Hiding SPEC's score and ping on scoreboard
Hi N,
I don't have "teh codez" with me where I am but I would imagine that this should be something simple like adding the following where the scores are calculated currently (in g_main.c if I remember correctly)
I don't have "teh codez" with me where I am but I would imagine that this should be something simple like adding the following where the scores are calculated currently (in g_main.c if I remember correctly)
Code: Select all
if ( player->client->sess.sessionTeam == TEAM_SPECTATOR ) {
// set score the zero
}