mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
Added game.cfg
This commit is contained in:
parent
b51ca11c39
commit
2085f00203
22
dist/game.cfg
vendored
Normal file
22
dist/game.cfg
vendored
Normal 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
|
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user