// fields without a label (not networked)
case "ping": sbt_field[sbt_num_fields] = SP_PING; break;
case "pl": sbt_field[sbt_num_fields] = SP_PL; break;
- case "kd": case "kdr": case "kdratio": sbt_field[sbt_num_fields] = SP_KDRATIO; break;
- case "sum": case "diff": case "k-d": sbt_field[sbt_num_fields] = SP_SUM; break;
case "name": case "nick": sbt_field[sbt_num_fields] = SP_NAME; have_name = true; break;
case "|": sbt_field[sbt_num_fields] = SP_SEPARATOR; have_separator = true; break;
+ case "kd": case "kdr": case "kdratio": sbt_field[sbt_num_fields] = SP_KDRATIO; break;
+ case "sum": case "diff": case "k-d": sbt_field[sbt_num_fields] = SP_SUM; break;
+ case "frags": sbt_field[sbt_num_fields] = SP_FRAGS; break;
default: // fields with a label
{
// map alternative labels
}
});
-LABEL(notfound)
- if(str == "frags")
- j = SP_FRAGS;
- else
- {
- // NOTE: can't check STAT(SHOWFPS) here, if checked too early it returns false anyway
- if(!nocomplain && str != "fps") // server can disable the fps field
- LOG_INFOF("^1Error:^7 Unknown score field: '%s'", str);
+ // NOTE: can't check STAT(SHOWFPS) here, if checked too early it returns false anyway
+ if(!nocomplain && str != "fps") // server can disable the fps field
+ LOG_INFOF("^1Error:^7 Unknown score field: '%s'", str);
- strfree(sbt_field_title[sbt_num_fields]);
- sbt_field_size[sbt_num_fields] = 0;
- continue;
- }
-LABEL(found)
+ strfree(sbt_field_title[sbt_num_fields]);
+ sbt_field_size[sbt_num_fields] = 0;
+ continue;
+
+ LABEL(found)
sbt_field[sbt_num_fields] = j;
if(j == ps_primary)
have_primary = true;
// game mode specific indices are not in common/, but in server/scores_rules.qc!
#ifdef GAMEQC
+// non-networked fields (client only, even though they are defined in the server too)
REGISTER_SP(END);
REGISTER_SP(PING);
REGISTER_SP(PL);
REGISTER_SP(NAME);
-REGISTER_SP(KDRATIO);
-REGISTER_SP(SUM);
-
REGISTER_SP(SEPARATOR);
+REGISTER_SP(KDRATIO); // kills / deaths
+REGISTER_SP(SUM); // kills - deaths
+REGISTER_SP(FRAGS); // kills - suicides
+
+// networked fields
+
REGISTER_SP(SCORE);
REGISTER_SP(DMG);
REGISTER_SP(DEATHS);
REGISTER_SP(SUICIDES);
REGISTER_SP(TEAMKILLS);
-REGISTER_SP(FRAGS);
REGISTER_SP(ELO);