MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DMFCInputCommand_Scores

Function DMFCInputCommand_Scores

netgames/dmfc/dmfcinputcommand.cpp:406–422  ·  view source on GitHub ↗

handles a request to see the scores/stats of the game (up to the mod to display the scores on request) Usage: "$scores"

Source from the content-addressed store, hash-verified

404// handles a request to see the scores/stats of the game (up to the mod to display the scores on request)
405// Usage: "$scores"
406void DMFCInputCommand_Scores(const char *input_string) {
407 int level;
408 char temp[20];
409
410 // parse $scores
411 if (!StringParseWord(input_string, temp, 20, &input_string)) {
412 basethis->DisplayInputCommandHelp(DTXT_IC_SCORES);
413 return;
414 }
415
416 // see if there is a level
417 if (!StringParseNumber(input_string, &level, &input_string))
418 level = -1;
419
420 // call the event that the user want to see the scores (dedicated server
421 basethis->CallOnPrintScores(level);
422}
423
424// handles a request to turn on/off displaying callsigns on the HUD during the game.
425// Usage: "$hudnames <full/team/none>" full = everyone team = only teammates none = noone

Callers

nothing calls this directly

Calls 4

StringParseWordFunction · 0.85
StringParseNumberFunction · 0.85
CallOnPrintScoresMethod · 0.80

Tested by

no test coverage detected