MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / LoadLevelMPServer

Method LoadLevelMPServer

CryGame/ScriptObjectGame.cpp:1196–1207  ·  view source on GitHub ↗

!Load a level on a mp server, keeping the current clients connected to the current server @param sMapName the name of the map to load @param sMissionName the name of the mission[optional] */

Source from the content-addressed store, hash-verified

1194 @param sMissionName the name of the mission[optional]
1195*/
1196int CScriptObjectGame::LoadLevelMPServer(IFunctionHandler *pH)
1197{
1198 const char *szMapName;
1199 const char *szMissionName = "";
1200
1201 pH->GetParam(1,szMapName);
1202 if(pH->GetParamCount()==2) pH->GetParam(2,szMissionName);
1203
1204 m_pGame->LoadLevelCS(true, szMapName, szMissionName, true);
1205
1206 return pH->EndFunction();
1207}
1208
1209/*! Get the game version as a string
1210*/

Callers

nothing calls this directly

Calls 4

LoadLevelCSMethod · 0.80
EndFunctionMethod · 0.80
GetParamMethod · 0.45
GetParamCountMethod · 0.45

Tested by

no test coverage detected