Maxlives not correctly displayed when following teammates.
When using the "maxlives" setting, the scoreboard doesn’t show the remaining lives. Instead, "" is displayed which means the players don’t have lives left and are out of the game. Etpub/silent mod running on ET:L engine aren’t affected.
Another seemingly related bug is when being killed and following a teammate before a respawn. The "remaining lives" counter of the followed players isn’t up-to-date, and the number displayed seems to be your last known number of remaining lives instead of the life number of the followed player. This bug is also present when running etpub/silent with ET:L engine.
#1 Updated by Spyhawk over 6 years ago
Sorry I missed the proper referencing in the commit
The scoreboard issue is fixed in
The spec issue is however not fixed yet.
#7 Updated by Spyhawk almost 6 years ago
So I spend again another couple of hours on this issue, without positive results I’m afraid.
The best I can do with the trick just above is hiding the faulty result in the scoreboard, but I can’t display the old (and correct) value when following someone.
In another attempt, I’ve tried to display cg.scores[cg.snap→ps.clientNum].respawnsLeft instead of cg.snap→ps.persistant[PERS_RESPAWNS_LEFT] in cg_draw_hud.c, by refreshing the whole score when entering the 3D world (ClientBegin), respawning or following another player (probably a bit overkill). Here, it seems the score displayed in the maxlives counter isn’t always consistent with the one displayed in the scoreboard. There is clearly something I don’t understand here, and I’ll need fresh eyes to have a look at this issue.