417 bool have_name =
false, have_primary =
false, have_secondary =
false, have_separator =
false;
437 if(
argv(2) ==
"default" ||
argv(2) ==
"expand_default")
439 if(
argv(2) ==
"expand_default")
443 else if(
argv(2) ==
"all" ||
argv(2) ==
"ALL")
445 string s =
"ping pl name |";
449 s =
strcat(s,
" ",
"sum");
450 s =
strcat(s,
" ",
"kdratio");
451 s =
strcat(s,
" ",
"frags");
471 for(i = 1; i < argc - 1; ++i)
474 bool nocomplain =
false;
491 str = strtolower(str);
509 if (str ==
"damage") str =
"dmg";
510 if (str ==
"damagetaken") str =
"dmgtaken";
520 if(!nocomplain && str !=
"fps")
521 LOG_INFOF(
"^1Error:^7 Unknown score field: '%s'", str);
532 have_secondary =
true;
537 if(sbt_num_fields >= MAX_SBT_FIELDS)
544 have_secondary =
true;
546 have_secondary =
true;
547 missing = (!have_primary) + (!have_secondary) + (!have_separator) + (!have_name);
549 if(sbt_num_fields + missing < MAX_SBT_FIELDS)
554 for(i = sbt_num_fields; i > 0; --i)
563 LOG_INFO(
"fixed missing field 'name'");
568 for(i = sbt_num_fields; i > 1; --i)
578 LOG_INFO(
"fixed missing field '|'");
581 else if(!have_separator)
587 LOG_INFO(
"fixed missing field '|'");
PlayerScoreField sbt_field[MAX_SBT_FIELDS+1]
string TranslateScoresLabel(string label)
string sbt_field_title[MAX_SBT_FIELDS+1]
#define SCOREBOARD_DEFAULT_COLUMNS
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
vector HUD_GetFontsize(string cvarname)
PlayerScoreField ps_secondary
float isGametypeInFilter(Gametype gt, float tp, float ts, string pattern)
#define scores_flags(this)
float sbt_field_size[MAX_SBT_FIELDS+1]
#define scores_label(this)
#define tokenizebyseparator
PlayerScoreField ps_primary
string autocvar_scoreboard_columns
#define FOREACH(list, cond, body)
const int SFL_ALLOW_HIDE
Allow a column to be hidden (do not automatically add it even if it is a sorting key) ...