Added game.cfg

This commit is contained in:
s1lentq 2016-01-21 17:23:56 +06:00
parent b51ca11c39
commit 2085f00203
4 changed files with 30 additions and 4 deletions

22
dist/game.cfg vendored Normal file
View File

@ -0,0 +1,22 @@
// ReGameDLL Configuration File
echo Executing ReGameDLL Configuration File
// Allow inflict damage to teammates
// 0 - disabled
// 1 - enabled
// 2 - FFA mode
//
// Default value: "0"
mp_friendlyfire 0
// The maximum allowable amount of money in the game
//
// Default value: "16000"
mp_maxmoney 16000
// Disable round end by game scenario
// 0 - disabled
// 1 - enabled
//
// Default value: "0"
mp_round_infinite 0

View File

@ -40,6 +40,12 @@ task publishPrepareFiles {
_copyFileToDir('publish/releaseRegamedllNofixes/mp.pdb', 'publish/publishRoot/bin/pure/')
_copyFile('publish/releaseRegamedllNofixes/libcs.so', 'publish/publishRoot/bin/pure/cs.so')
//copy files from folder dist
copy {
from('dist')
into 'publish/publishRoot'
}
//hlsdk
//project.file('publish/publishRoot/hlsdk').mkdirs()
//copy {

View File

@ -496,12 +496,11 @@ void CheckStartMoney(void)
CVAR_SET_FLOAT("mp_startmoney", 800);
#else
int max_money = (int)maxmoney.value;
int min_money = (int)minmoney.value;
if (money > max_money)
CVAR_SET_FLOAT("mp_startmoney", max_money);
else if (money < min_money)
CVAR_SET_FLOAT("mp_startmoney", min_money);
else if (money < 0)
CVAR_SET_FLOAT("mp_startmoney", 0);
#endif // REGAMEDLL_ADD
}

View File

@ -224,7 +224,6 @@ extern cvar_t sk_scientist_heal3;
#ifdef REGAMEDLL_ADD
extern cvar_t maxmoney;
extern cvar_t minmoney;
extern cvar_t round_infinite;
#endif // REGAMEDLL_ADD