From ea752466846c129a0910e47d34d725af1aea5d84 Mon Sep 17 00:00:00 2001 From: Hayden K Date: Wed, 26 Apr 2023 19:07:12 -0400 Subject: Fix enabling and disabling addons in L4D1 --- src/fixes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fixes.c b/src/fixes.c index a948b52..29d5ab3 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -174,6 +174,11 @@ static void l4d1specific(void) { // same thing as above, seemed easier to just dupe :) chcmdflags("cl_fullupdate", CON_CHEAT, 0); + + // These commands lack CLIENTCMD_CAN_EXECUTE, so enabling/disabling addons + // doesn't work without manually running these in the console afterwards. + chcmdflags("mission_reload", 0, CON_CCMDEXEC); + chcmdflags("update_addon_paths", 0, CON_CCMDEXEC); } void fixes_apply(void) { -- cgit v1.2.3