CS2: add Metamod setting (#505)
This commit is contained in:
parent
4a86ba6ac6
commit
5f20079e0d
@ -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",
|
||||
|
@ -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
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user