aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hayden K <imaciidz@gmail.com> 2025-02-07 14:22:37 -0500
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-06 20:59:36 +0100
commitdc540372be9da686a3087843ae4ae5f038a3a9a0 (patch)
tree83467140166992d36977a90b307b92f1d6f501b4
parent98f63b5bfc980d5be25ca1daf1bbcf66dc6696ab (diff)
downloadsst-dc540372be9da686a3087843ae4ae5f038a3a9a0.tar.gz
sst-dc540372be9da686a3087843ae4ae5f038a3a9a0.zip
Rename L4D2_2147plus gametype tag to L4D2_2125plus
Turns out the cvar we use to detect 2147 was actually added in 2125. Since renaming it doesn't currently break anything (and 2125 was a fairly notable code shuffling update, given it was the first update with a native Linux build of the game), it makes most sense to just do this.
-rw-r--r--gamedata/engine.txt6
-rw-r--r--gamedata/vguimatsurface.txt6
-rw-r--r--src/engineapi.c3
-rw-r--r--src/fastfwd.c3
-rw-r--r--src/gametype.h3
-rw-r--r--src/l4daddon.c2
6 files changed, 13 insertions, 10 deletions
diff --git a/gamedata/engine.txt b/gamedata/engine.txt
index 9c37f6d..ab6fbd5 100644
--- a/gamedata/engine.txt
+++ b/gamedata/engine.txt
@@ -59,7 +59,7 @@ vtidx_GetEngineBuildNumber
#L4D1_1005 99
#L4D1_Steam 97
vtidx_ManageAddonsForActiveSession
- L4D2_2147plus 179
+ L4D2_2125plus 179
# IGameUIFuncs
vtidx_GetDesktopResolution 5
@@ -84,7 +84,7 @@ vtidx_SetPaintEnabled 67
Client013
L4D1 68
L4D2 71
- L4D2_2147plus 72
+ L4D2_2125plus 72
Client014
L4D2 70
vtidx_Paint 123
@@ -92,7 +92,7 @@ vtidx_Paint 123
L4D2 126 # 2000
Client013
L4D2 127 # 2045
- L4D2_2147plus 128
+ L4D2_2125plus 128
# SendProp
sz_SendProp
diff --git a/gamedata/vguimatsurface.txt b/gamedata/vguimatsurface.txt
index e35c125..dbb5891 100644
--- a/gamedata/vguimatsurface.txt
+++ b/gamedata/vguimatsurface.txt
@@ -29,16 +29,16 @@ vtidx_DrawPrintText
vtidx_GetScreenSize
OrangeBoxbased 37
L4D 37
- L4D2_2147plus 35
+ L4D2_2125plus 35
# Unused: currently no good way to create custom fonts without leaking them
#vtidx_CreateFont
# OrangeBoxbased 64
# L4D 64
-# L4D2_2147plus 63
+# L4D2_2125plus 63
#vtidx_SetFontGlyphSet
# OrangeBoxbased 65
# L4D 65
-# L4D2_2147plus 64
+# L4D2_2125plus 64
vtidx_GetFontTall
OrangeBoxbased 67
L4D 67
diff --git a/src/engineapi.c b/src/engineapi.c
index a8f4167..cc5f2cf 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -1,6 +1,7 @@
/*
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 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
@@ -106,7 +107,7 @@ bool engineapi_init(int pluginver) {
if (GAMETYPE_MATCHES(L4D2)) {
if (con_findvar("sv_zombie_touch_trigger_delay")) {
- _gametype_tag |= _gametype_tag_L4D2_2147plus;
+ _gametype_tag |= _gametype_tag_L4D2_2125plus;
}
if (con_findvar("director_cs_weapon_spawn_chance")) {
_gametype_tag |= _gametype_tag_TheLastStand;
diff --git a/src/fastfwd.c b/src/fastfwd.c
index 7378b04..fa45beb 100644
--- a/src/fastfwd.c
+++ b/src/fastfwd.c
@@ -2,6 +2,7 @@
* Copyright © 2023 Matthew Wozniak <sirtomato999@gmail.com>
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 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
@@ -221,7 +222,7 @@ INIT {
errmsg_errorx("couldn't find FrameUpdate function");
return FEAT_INCOMPAT;
}
- if_cold (!(func = find_floatcall(func, GAMETYPE_MATCHES(L4D2_2147plus) ?
+ if_cold (!(func = find_floatcall(func, GAMETYPE_MATCHES(L4D2_2125plus) ?
2 : 1, "CHostState::State_Run"))) {
errmsg_errorx("couldn't find State_Run function");
return FEAT_INCOMPAT;
diff --git a/src/gametype.h b/src/gametype.h
index a6d6b0c..98d360a 100644
--- a/src/gametype.h
+++ b/src/gametype.h
@@ -1,6 +1,7 @@
/*
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 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
@@ -53,7 +54,7 @@ extern u32 _gametype_tag;
/* games needing version-specific stuff */
#define _gametype_tag_Portal1_3420 (1 << 17)
-#define _gametype_tag_L4D2_2147plus (1 << 18)
+#define _gametype_tag_L4D2_2125plus (1 << 18)
#define _gametype_tag_TheLastStand (1 << 19) /* The JAiZ update */
/* Matches for any multiple possible tags */
diff --git a/src/l4daddon.c b/src/l4daddon.c
index 19c7a2f..30f68eb 100644
--- a/src/l4daddon.c
+++ b/src/l4daddon.c
@@ -35,7 +35,7 @@
#include "x86util.h"
FEATURE("Left 4 Dead 2 addon bugfixes")
-GAMESPECIFIC(L4D2_2147plus)
+GAMESPECIFIC(L4D2_2125plus)
REQUIRE_GAMEDATA(vtidx_ManageAddonsForActiveSession)
REQUIRE_GLOBAL(engclient)