handles a request to see the scores/stats of the game (up to the mod to display the scores on request) Usage: "$scores"
| 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" |
| 406 | void 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 |
nothing calls this directly
no test coverage detected