float hud_dynamic_shake_factor;
float hud_dynamic_shake_time;
-bool autocvar_hud_spectatordueldisplay = true;
-bool autocvar_hud_spectatorteamdisplay = true; //LegendGuard adds a bool to enable/disable team display HUD 06-04-2021
-bool autocvar_hud_spectatorplayernamedisplay = true; //LegendGuard adds a bool to enable/disable player name display HUD 06-04-2021
+bool autocvar_hud_panel_spect_scores = true; //LegendGuard adds a bool to enable/disable score display HUD 06-04-2021
+bool autocvar_hud_panel_spect_playername = true; //LegendGuard adds a bool to enable/disable player name display HUD 06-04-2021
// shared across viewmodel effects and dynamic hud code
vector cl_followmodel_ofs;
{
if(spectatee_status)
{
- /*if(spectatee_status == -1)
- s = _("^1Observing");
- else
- s = sprintf(_("^1Spectating: ^7%s"), entcs_GetName(current_player));
- InfoMessage(s);*/
+ // z411 : Show the observed played if we have the spectator HUD disabled
+ if(!autocvar_hud_panel_spect_playername) {
+ if(spectatee_status == -1)
+ s = _("^1Observing");
+ else
+ s = sprintf(_("^1Spectating: ^7%s"), entcs_GetName(current_player));
+ InfoMessage(s);
+ }
/*if(autocvar_hud_panel_infomessages_group0)
{
//pos = M_ARGV(0, vector);
//img_curr_group = M_ARGV(2, int);
- //if(!mutator_returnvalue)
- //{
- s = sprintf(_("^1Press ^3%s^1 to join"), getcommandkey(_("jump"), "+jump"));
- InfoMessage(s);
- //}
+ s = sprintf(_("^1Press ^3%s^1 to join"), getcommandkey(_("jump"), "+jump"));
+ InfoMessage(s);
}
if (time < STAT(GAMESTARTTIME))
if (!scoreboard_fade_alpha) // the scoreboard too calls Scoreboard_UpdatePlayerTeams
Scoreboard_UpdatePlayerTeams();
- if(spectatee_status) {
- if(teamplay && autocvar_hud_spectatorteamdisplay) return;
- if(gametype == MAPINFO_TYPE_DUEL && autocvar_hud_spectatordueldisplay) return;
- }
+ // z411 : Don't display if we have the spectator HUD scores enabled
+ if(spectatee_status && autocvar_hud_panel_spect_scores) return;
HUD_Panel_LoadCvars();
vector pos, mySize;
hud_fontsize = HUD_GetFontsize("hud_fontsize");
// Spectator name
- if (autocvar_hud_spectatorplayernamedisplay)
+ if (autocvar_hud_panel_spect_playername)
{
if(spectatee_status != -1) {
ammo_y = stov(cvar_string("hud_panel_ammo_pos")).y * vid_conheight;
}
}
- if (teamplay && autocvar_hud_spectatorteamdisplay)
+ // Scores
+ if (!autocvar_hud_panel_spect_scores) return;
+ if (teamplay)
{
// Set vars
teamscore_fontsize = hud_fontsize * 3;
pos = panel_pos + vec2(vid_conwidth - 1, (vid_conheight + 450) / 4 + hud_fontsize.y);
HUD_SpectHUD_drawTeamPlayers(pos, tm, rgb, true);
- } else if(gametype == MAPINFO_TYPE_DUEL && autocvar_hud_spectatordueldisplay) {
+ } else if(gametype == MAPINFO_TYPE_DUEL) {
// Set vars
teamscore_fontsize = hud_fontsize * 3;
teamname_fontsize = hud_fontsize * 1.5;