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/fixes.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/fixes.h (limited to 'src/fixes.h') diff --git a/src/fixes.h b/src/fixes.h new file mode 100644 index 0000000..6795b4c --- /dev/null +++ b/src/fixes.h @@ -0,0 +1,20 @@ +/* + * Copyright © 2021 Michael Smith + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ + +/* Makes a best-effort attempt to fix up random annoyances in some games. */ +void fixes_apply(void); + +// vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3