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

Function SendCheaterAttemptText

Descent3/GameCheat.cpp:326–334  ·  view source on GitHub ↗

Tells others that we are cheating

Source from the content-addressed store, hash-verified

324
325// Tells others that we are cheating
326void SendCheaterAttemptText() {
327 char str[255];
328 snprintf(str, sizeof(str), TXT_CHEATATTEMPT, Players[Player_num].callsign);
329
330 if (Netgame.local_role == LR_SERVER)
331 MultiSendMessageFromServer(GR_RGB(255, 0, 0), str);
332 else
333 MultiSendMessageToServer(0, str);
334}
335
336void DemoCheats(int key) {
337 static int snd_cheat = -1;

Callers 1

DemoCheatsFunction · 0.85

Calls 3

MultiSendMessageToServerFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected