1 /* 2 ============ 3 G_InitGame 4 5 ============ 6 */ 7 void G_InitGame( int levelTime, int randomSeed, int restart ) { 8 int i; 9 10 B_InitAlloc(); //make sure everything is clean 11 12 G_Printf ("------- Game Initialization -------\n"); 13 G_Printf ("gamename: %s\n", GAMEVERSION); 14 G_Printf ("gamedate: %s\n", __DATE__); 15 16 // If this server runs JK2MF disable the blocking of player movement 17 // if a player is cheating because this is handled another way in this mod. (banning lol) 18 if ( JK2MFApiAvailable() ) 19 { 20 trap_JK2MF_SwitchCmdBlocking(qfalse); 21 } 22 else 23 { 24 G_Printf("MyMOD: JK2MF is not running."); 25 G_Printf("MyMOD: Some features can not be used."); 26 } 27 28 srand( randomSeed ); 29 G_RegisterCvars(); 30 G_ProcessIPBans(); 31 32 ...