diff options
author | Hayden <imaciidz@gmail.com> | 2022-02-16 05:23:26 -0500 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-03-19 04:50:24 +0000 |
commit | 4edc56b165cfbb78f604092ca485a005fa623d16 (patch) | |
tree | 1e64f6d22a58c75429741f3a6949a3de6bfd12a6 | |
parent | e5cd34649c09a0a31cd27fc93efb7583de48b078 (diff) |
Fix L4D1 v1.0 mat_monitorgamma flags for QoL
Also unhide demo_interpolateview because yes.
-rw-r--r-- | LICENCE | 1 | ||||
-rw-r--r-- | dist/LICENCE.linux | 1 | ||||
-rw-r--r-- | dist/LICENCE.windows | 1 | ||||
-rw-r--r-- | src/fixes.c | 11 |
4 files changed, 14 insertions, 0 deletions
@@ -2,6 +2,7 @@ Except where otherwise noted, the following terms apply: ════════════════════════════════════════════════════════════════════════════════ Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com> Copyright © 2021 Willian Henrique <wsimanbrazil@yahoo.com.br> +Copyright © 2022 Hayden K <imaciidz@gmail.com> 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 diff --git a/dist/LICENCE.linux b/dist/LICENCE.linux index ce18929..b0e4705 100644 --- a/dist/LICENCE.linux +++ b/dist/LICENCE.linux @@ -2,6 +2,7 @@ Source Speedrun Tools is released under the following copyright licence: ════════════════════════════════════════════════════════════════════════════════ Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com> Copyright © 2021 Willian Henrique <wsimanbrazil@yahoo.com.br> +Copyright © 2022 Hayden K <imaciidz@gmail.com> 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 diff --git a/dist/LICENCE.windows b/dist/LICENCE.windows index 5cd4913..a732745 100644 --- a/dist/LICENCE.windows +++ b/dist/LICENCE.windows @@ -2,6 +2,7 @@ Source Speedrun Tools is released under the following copyright licence: ════════════════════════════════════════════════════════════════════════════════
Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com>
Copyright © 2021 Willian Henrique <wsimanbrazil@yahoo.com.br>
+Copyright © 2022 Hayden K <imaciidz@gmail.com>
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
diff --git a/src/fixes.c b/src/fixes.c index 4931197..9701aed 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -1,5 +1,6 @@ /* * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2022 Hayden K <imaciidz@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -41,6 +42,7 @@ void fixes_apply(void) { unhide("demo_legacy_rollback"); unhide("demo_pauseatservertick"); unhide("demo_quitafterplayback"); + unhide("demo_interpolateview"); // handy console stuff unhide("con_filter_enable"); @@ -89,6 +91,15 @@ void fixes_apply(void) { v->parent->hasmax = true; v->parent->maxval = 0; } } + + // For some reason, L4D1 v1.0 hides mat_monitorgamma and doesn't archive it. + // This means on every startup it's necessary to manually set non-default + // values via the menu. This change here brings it in line with newest Steam + // L4D1, all versions of L4D2, and probably all other Source games for + // convenience. + if (GAMETYPE_MATCHES(L4D1)) { + chflags("mat_monitorgamma", CON_HIDDEN | CON_DEVONLY, CON_ARCHIVE); + } } // vi: sw=4 ts=4 noet tw=80 cc=80 |