4Map_NewGame(
int skillValue)
6 if (fileExists(
"cfg/chapter1.cfg")) {
7 localcmd(
"maxplayers 1\ndeathmatch 0\ncoop 0\nexec cfg/chapter1.cfg");
37Map_SpawnServer(
string hostName,
string mapName,
int maxPlayers,
string gameType,
string passWord)
39 localcmd( sprintf(
"hostname %s\n", hostName ) );
40 localcmd( sprintf(
"maxplayers %i\n", maxPlayers ) );
41 localcmd( sprintf(
"sv_password %s\n", passWord ) );
42 localcmd( sprintf(
"g_gametype %s\n", gameType ) );
43 localcmd( sprintf(
"map %s\n", mapName ) );
__variant GameLibrary_GetInfo(gameInfo_t)
Retrieves fields for the currently running game.
Definition: gamelibrary.qc:789
@ GAMEINFO_STARTMAP
(string) The command for starting a new game.
Definition: gamelibrary.h:70
@ GAMEINFO_TRAININGMAP
(string) The command for starting the training.
Definition: gamelibrary.h:71
void RichPresence_Set(string strKey, string strValue)
Sets a rich-presence key to the desired value.
Definition: richpresence.qc:32
void RichPresence_Clear(void)
Clears the current rich-presence status.
Definition: richpresence.qc:52