Hiding SPEC's score and ping on scoreboard

Locked
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Hiding SPEC's score and ping on scoreboard

Post by nexus024 »

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?
nexus024
Posts: 148
Joined: Fri Oct 06, 2006 7:26 pm

Re: Hiding SPEC's score and ping on scoreboard

Post by nexus024 »

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.
jkoder
Posts: 59
Joined: Tue Jun 17, 2008 9:10 pm

Re: Hiding SPEC's score and ping on scoreboard

Post by jkoder »

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)

Code: Select all

 if ( player->client->sess.sessionTeam == TEAM_SPECTATOR ) {
  // set score the zero
 } 
Locked