From 47883e127a51f10d798fdd04ed2fb3e79efd4886 Mon Sep 17 00:00:00 2001 From: xe1os <39219862+xe1os@users.noreply.github.com> Date: Sat, 4 Jul 2026 13:58:34 +0530 Subject: [PATCH] Implement CS2 dependency checks for mod installations Added dependency checks for CS2 mods in command_mods_install.sh. --- lgsm/modules/command_mods_install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lgsm/modules/command_mods_install.sh b/lgsm/modules/command_mods_install.sh index 83458739b..104f7a553 100755 --- a/lgsm/modules/command_mods_install.sh +++ b/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"