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

Function SendCheaterText

Descent3/GameLoop.cpp:1539–1551  ·  view source on GitHub ↗

Tells others that we are cheating

Source from the content-addressed store, hash-verified

1537
1538// Tells others that we are cheating
1539void SendCheaterText() {
1540 // Notify other players that you're using debug/test keys. We may want to change this to
1541 // only send the message for some keys.
1542 if (Game_mode & GM_MULTI) {
1543 char str[255];
1544 snprintf(str, sizeof(str), TXT_CHEATER, Players[Player_num].callsign);
1545
1546 if (Netgame.local_role == LR_SERVER)
1547 MultiSendMessageFromServer(GR_RGB(255, 0, 0), str);
1548 else
1549 MultiSendMessageToServer(0, str);
1550 }
1551}
1552
1553#include "osiris_dll.h"
1554#include "audiotaunts.h"

Callers 1

ProcessTestKeysFunction · 0.85

Calls 3

MultiSendMessageToServerFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected