MCPcopy Create free account
hub / github.com/assaultcube/AC / spawn_message

Function spawn_message

source/src/clientgame.cpp:799–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799inline const char * spawn_message()
800{
801 if (spawnpermission == SP_WRONGMAP)
802 {
803 // Don't use "/n" within these messages. If you do, the words won't align to the middle of the screen.
804 if (securemapcheck(getclientmap()))
805 return "3The server will NOT allow spawning or getmap!"; // Also see client.cpp which has a conoutf message
806 else return "3You must be on the correct map to spawn. Type /getmap to download it.";
807 }
808 else if (m_coop) return "3Type /getmap or send a map and vote for it to start co-op edit.";
809 else if (multiplayer(NULL)) return "4Awaiting permission to spawn. \f2DON'T PANIC!";
810 else return ""; // theres no waiting for permission in sp
811 // Despite its many glaring (and occasionally fatal) inaccuracies, AssaultCube itself has outsold the
812 // Encyclopedia Galactica because it is slightly cheaper, and because it has the words "Don't Panic"
813 // in large, friendly letters.
814}
815
816int waiting_permission = 0;
817

Callers 1

tryrespawnFunction · 0.85

Calls 3

securemapcheckFunction · 0.85
getclientmapFunction · 0.85
multiplayerFunction · 0.85

Tested by

no test coverage detected