Revert initialize game.cfg into GameDLLInit, now use game_init.cfg instead this.

This commit is contained in:
s1lent 2019-06-05 19:46:48 +07:00
parent 70d2f4855b
commit 3f5448da59
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
5 changed files with 14 additions and 13 deletions

8
dist/game.cfg vendored
View File

@ -1,3 +1,5 @@
echo Executing ReGameDLL Configuration File
// The style of gameplay where there aren't any teams (FFA mode)
// 0 - disabled (default behaviour)
// 1 - enabled
@ -208,12 +210,6 @@ mp_kill_filled_spawn "1"
// Default value: "0"
mp_allow_point_servercommand "0"
// Sets mins/maxs hull bounds for the player.
// 0 - disabled (default behaviour, sets engine)
// 1 - enabled (sets gamedll)
// Default value: "1"
mp_hullbounds_sets "1"
// Show 'HP' field into a scoreboard
// 0 - don't send any update for 'HP' field to any clients
// 1 - show only Terrorist 'HP' field to all clients

5
dist/game_init.cfg vendored Normal file
View File

@ -0,0 +1,5 @@
// Sets mins/maxs hull bounds for the player.
// 0 - disabled (default behaviour, sets engine)
// 1 - enabled (sets gamedll)
// Default value: "1"
mp_hullbounds_sets "1"

View File

@ -44,7 +44,12 @@ task publishPrepareFiles {
// copy files from folder dist
copy {
from('dist')
into 'publish/publishRoot'
into 'publish/publishRoot/bin/win32/cstrike'
}
copy {
from('dist')
into 'publish/publishRoot/bin/linux32/cstrike'
}
// cssdk

View File

@ -317,7 +317,7 @@ void EXT_FUNC GameDLLInit()
#ifdef REGAMEDLL_ADD
// execute initial pre-configurations
SERVER_COMMAND("exec game.cfg\n");
SERVER_COMMAND("exec game_init.cfg\n");
SERVER_EXECUTE();
#endif

View File

@ -133,11 +133,6 @@ LINK_HOOK_CHAIN2(CGameRules *, InstallGameRules)
CGameRules *EXT_FUNC __API_HOOK(InstallGameRules)()
{
#ifdef REGAMEDLL_ADD
// execute post-configurations
SERVER_PRINT("Executing ReGameDLL Configuration File\n");
#endif
SERVER_COMMAND("exec game.cfg\n");
SERVER_EXECUTE();