diff --git a/dist/game.cfg b/dist/game.cfg new file mode 100644 index 00000000..70b5ec5f --- /dev/null +++ b/dist/game.cfg @@ -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 diff --git a/publish.gradle b/publish.gradle index 92baf2dd..2f465d9b 100644 --- a/publish.gradle +++ b/publish.gradle @@ -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 { diff --git a/regamedll/dlls/client.cpp b/regamedll/dlls/client.cpp index 534b1b47..6a912ddb 100644 --- a/regamedll/dlls/client.cpp +++ b/regamedll/dlls/client.cpp @@ -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 } diff --git a/regamedll/dlls/game.h b/regamedll/dlls/game.h index 4b172dfe..37e22f89 100644 --- a/regamedll/dlls/game.h +++ b/regamedll/dlls/game.h @@ -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