diff --git a/counter-strike2config.json b/counter-strike2config.json index db4bf46..ed9d6ac 100644 --- a/counter-strike2config.json +++ b/counter-strike2config.json @@ -203,6 +203,45 @@ "Suffix":"players", "EnumValues":{} }, + { + "DisplayName":"Install Metamod", + "Category":"CS2 Server Settings", + "Description":"If set, Metamod will be installed when the server is updated. Metamod Branch and Metamod Build Version must be set accordingly. Activate Metamod by modifying game/csgo/gameinfo.gi to add 'Game csgo/addons/metamod' as the first Game entry under SearchPaths (must be done each time the server is updated)", + "Keywords":"install,metamod", + "FieldName":"InstallMetamod", + "InputType":"checkbox", + "ParamFieldName":"InstallMetamod", + "DefaultValue":"false", + "EnumValues":{ + "False":"false", + "True":"true" + } + }, + { + "DisplayName":"Metamod Branch", + "Category":"CS2 Server Settings", + "Description":"Specifies the [Metamod branch](https://www.sourcemm.net/downloads.php?branch=master&all=1) to install. Minimum 2.0 required", + "Keywords":"metamod,branch", + "FieldName":"MetamodBranch", + "InputType":"number", + "MinValue":"2", + "ParamFieldName":"MetamodBranch", + "DefaultValue":"2.0", + "Placeholder":"2.0", + "EnumValues":{} + }, + { + "DisplayName":"Metamod Build Version", + "Category":"CS2 Server Settings", + "Description":"Specifies the [Metamod build version](https://www.sourcemm.net/downloads.php?branch=master&all=1) to install", + "Keywords":"metamod,build,version", + "FieldName":"MetamodBuild", + "InputType":"number", + "ParamFieldName":"MetamodBuild", + "DefaultValue":"1256", + "Placeholder":"1256", + "EnumValues":{} + }, { "DisplayName":"Pure Server Mode", "Category":"CS2 Server Settings", diff --git a/counter-strike2updates.json b/counter-strike2updates.json index 670b35a..3e8ac93 100644 --- a/counter-strike2updates.json +++ b/counter-strike2updates.json @@ -12,5 +12,29 @@ "UpdateSource":"SteamCMD", "UpdateSourceData":"1007", "UpdateSourceTarget":"{{$FullBaseDir}}game/bin/win64" + }, + { + "UpdateStageName":"Metamod Download", + "UpdateSourcePlatform":"Windows", + "UpdateSource":"FetchURL", + "UpdateSourceData":"https://mms.alliedmods.net/mmsdrop/{{MetamodBranch}}/mmsource-{{MetamodBranch}}.0-git{{MetamodBuild}}-windows.zip", + "UpdateSourceTarget":"{{$FullBaseDir}}game/csgo", + "UnzipUpdateSource":true, + "OverwriteExistingFiles":true, + "UpdateSourceConditionSetting":"InstallMetamod", + "UpdateSourceConditionValue":"true", + "DeleteAfterExtract":true + }, + { + "UpdateStageName":"Metamod Download", + "UpdateSourcePlatform":"Linux", + "UpdateSource":"FetchURL", + "UpdateSourceData":"https://mms.alliedmods.net/mmsdrop/{{MetamodBranch}}/mmsource-{{MetamodBranch}}.0-git{{MetamodBuild}}-linux.tar.gz", + "UpdateSourceTarget":"{{$FullBaseDir}}game/csgo", + "UnzipUpdateSource":true, + "OverwriteExistingFiles":true, + "UpdateSourceConditionSetting":"InstallMetamod", + "UpdateSourceConditionValue":"true", + "DeleteAfterExtract":true } ] \ No newline at end of file