add cp_mp to script loading

This commit is contained in:
quaK 2024-07-11 22:24:50 +03:00
parent 61d2fe06f3
commit d7b972f3d9

View File

@ -315,6 +315,11 @@ namespace gsc
load_scripts(path, "scripts/"); // meant to override stock GSC
load_scripts(path, "custom_scripts/"); // for no issues, use custom_scripts/
load_scripts(path, "custom_scripts/"s + game::Com_GameMode_GetActiveGameModeStr() + "/");
if (game::Com_GameMode_GetActiveGameMode() == game::GAME_MODE_CP || game::Com_GameMode_GetActiveGameMode() == game::GAME_MODE_MP)
{
load_scripts(path, "custom_scripts/cp_mp/");
}
}
}
}