From 7672d873478a67de599d2f701b4cc8ddc047ae01 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 27 Nov 2021 05:25:55 +0000 Subject: Unhide useful commands and allow cheats in lobbies This is done through a new "fixes" file which will probably become one of those silly dumping grounds that every project has to have somewhere to put random miscellaneous crap in. These are mainly hidden in L4D2 but they just get unilaterally unhidden if they exist, just to be sure they're accessible. As a bonus, it turns out that unhiding a single cvar also allows us to set sv_cheats 1 in Left 4 Dead 2, bringing an end to the need to port- forward a listen server for co-op practice. --- src/sst.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index dbee4b7..6c60cf3 100644 --- a/src/sst.c +++ b/src/sst.c @@ -19,6 +19,7 @@ #include "con_.h" #include "demorec.h" #include "factory.h" +#include "fixes.h" #include "gamedata.h" #include "gameinfo.h" #include "gametype.h" @@ -108,6 +109,7 @@ static bool do_load(ifacefactory enginef, ifacefactory serverf) { nc: gamedata_init(); // TODO(autojump): we'd init that here has_demorec = demorec_init(); + fixes_apply(); con_colourmsg(RGBA(64, 255, 64, 255), NAME " v" VERSION " successfully loaded"); -- cgit v1.2.3