First, all credits go to Codex.
In WarZ_Server.sln; MasterServerConfig.cpp
Look for
Code:
void CMasterServerConfig::LoadPermGamesConfig()
Below you will see something like this
Below that you will place
Code:
int DisableASR;
int DisableSNP;
Below of
Code:
r3dscpy(name, r3dReadCFG_S(configFile, group, "name", ""));
You will place
Code:
DisableASR = r3dReadCFG_I(configFile, group, "DisableASR", 0);
DisableSNP = r3dReadCFG_I(configFile, group, "DisableSNP", 0);
In
Code:
ParsePermamentGame(i, name, map, data);
You change for this
Code:
ParsePermamentGame(i, name, map, data,DisableASR,DisableSNP);
In MasterServerConfig.h you look for this.
Code:
void ParsePermamentGame(int gameServerId, const char* name, const char* map, const char* data);
And change for this
Code:
void ParsePermamentGame(int gameServerId, const char* name, const char* map, const char* data, int DisableASR, int DisableSNP);
Now you look for this
Code:
void CMasterServerConfig::ParsePermamentGame(int gameServerId, const char* name, const char* map, const char* data)
And change for this
Code:
void CMasterServerConfig::ParsePermamentGame(int gameServerId, const char* name, const char* map, const char* data, int DisableASR ,int DisableSNP)
below you will see something like this
Code:
ginfo.flags = GBGameInfo::SFLAGS_Nameplates | GBGameInfo::SFLAGS_CrossHair | GBGameInfo::SFLAGS_Tracers;
below, you add
Code:
if(channel == 1) ginfo.flags |= GBGameInfo::SFLAGS_TrialsAllowed;
if ( DisableASR == 1)
ginfo.flags |= GBGameInfo::SFLAGS_DisableASR;
if ( DisableSNP == 1)
ginfo.flags |= GBGameInfo::SFLAGS_DisableSNP;
Done.
MasterServer.cfg Example
Code:
[PermGame2]map = MAPID_ServerTest DOESNOTHING GBNET_REGION_US_West 0 0
data = 20 0 0 2 0 1 0
name = TEST
DisableASR = 0 // if 0 enable
DisableSNP = 0 // if 0 enable