From 9d1fea271bd823b6dc98feb61992bbe64b95a188 Mon Sep 17 00:00:00 2001 From: Hayden Date: Mon, 25 Apr 2022 02:23:15 +0100 Subject: Suppress L4D1 console spam --- src/fixes.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fixes.c b/src/fixes.c index b2f202c..e1b4c0a 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -125,6 +125,13 @@ static void l4d1specific(void) { // values via the menu. This change here brings it in line with pretty much // all other Source games for convenience. chflags("mat_monitorgamma", CON_HIDDEN | CON_DEVONLY, CON_ARCHIVE); + + // Very early versions of L4D1 have a bunch of useless console spam. Setting + // these hidden variables to 0 gets rid of it. + struct con_var *v = con_findvar("ui_l4d_debug"); + if (v) con_setvari(v, 0); + v = con_findvar("mm_l4d_debug"); + if (v) con_setvari(v, 0); } void fixes_apply(void) { -- cgit v1.2.3