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

Function ScoreAPIGameOver

Descent3/multi_dll_mgr.cpp:1051–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049 CallMultiScoreDLL(CDT_EVT_PLAYER_JOINS, Players[playernum].callsign);
1050}
1051void ScoreAPIGameOver() {
1052 player_score_matrix sm;
1053
1054 if (ScoreAPIShouldBail())
1055 return;
1056
1057 int counted = 0;
1058 for (int i = 0; i < MAX_NET_PLAYERS; i++) {
1059 if (Players[i].callsign[0]) {
1060 strcpy(sm.name[counted], Players[i].callsign);
1061 sm.kills[counted] = Players[i].num_kills_level;
1062 sm.deaths[counted] = Players[i].num_deaths_level;
1063 counted++;
1064 }
1065 }
1066 sm.num_players = counted;
1067 // Create a matrix of all the players with their scores and send a pointer to it.
1068 CallMultiScoreDLL(CDT_EVT_GAME_OVER, &sm);
1069}
1070bool Set_score_server_ip = false;
1071void ScoreAPIFrameInterval() {
1072 if (ScoreAPIShouldBail())

Callers 2

MultiLeaveGameFunction · 0.85
MultiDoLevelEndedFunction · 0.85

Calls 2

ScoreAPIShouldBailFunction · 0.85
CallMultiScoreDLLFunction · 0.85

Tested by

no test coverage detected