Browse Source
Implement CS2 dependency checks for mod installations
Added dependency checks for CS2 mods in command_mods_install.sh.
pull/4929/head
xe1os
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
12 additions and
0 deletions
-
lgsm/modules/command_mods_install.sh
|
|
|
@ -148,6 +148,18 @@ if [ "${modcommand}" == "amxmodx" ]; then |
|
|
|
fn_mod_install_amxmodx_file |
|
|
|
fi |
|
|
|
|
|
|
|
# CS2 dependency checks. |
|
|
|
if [ "${modcommand}" == "cssharp" ]; then |
|
|
|
fn_mod_exist "metamodsource2" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "${modcommand}" == "simpleadmin" ] \ |
|
|
|
|| [ "${modcommand}" == "matchzy" ] \ |
|
|
|
|| [ "${modcommand}" == "weaponpaints" ]; then |
|
|
|
fn_mod_exist "metamodsource2" |
|
|
|
fn_mod_exist "cssharp" |
|
|
|
fi |
|
|
|
|
|
|
|
# Prevent WeaponPaints install without CounterStrikeSharp. |
|
|
|
if [ "${modcommand}" == "weaponpaints" ]; then |
|
|
|
fn_mod_exist "cssharp" |
|
|
|
|