From 1ed84a25c2db8ade2b2162b429b30e9138eb5d16 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 6 May 2022 00:49:53 +0100 Subject: HOTFIX: Fix L4D2 2.0.0.0 crashing Idiotic problems require idiotic solutions. --- gamedata/engine.kv | 6 +++++- gamedata/gamelib.kv | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gamedata') diff --git a/gamedata/engine.kv b/gamedata/engine.kv index 8ee8161..414a584 100644 --- a/gamedata/engine.kv +++ b/gamedata/engine.kv @@ -18,7 +18,11 @@ vtidx_GetGameDirectory { } Client012 37 // dmomm, ep1, ... } -vtidx_GetEngineBuildNumber { L4D2 99 } +// TODO(compat): apparently this changed, in early versions it's NOT 99! +// Come up with some way to detect it properly!? +vtidx_GetEngineBuildNumber { + //L4D2 99 +} vtidx_PEntityOfEntIndex { OrangeBox 19 } // probably OE too but??? sz_edict { diff --git a/gamedata/gamelib.kv b/gamedata/gamelib.kv index e7a4302..7db228f 100644 --- a/gamedata/gamelib.kv +++ b/gamedata/gamelib.kv @@ -26,9 +26,7 @@ vtidx_Teleport { L4D "104 + NVDTOR" L4D2 { default "116 + NVDTOR" // TODO(linux): might actually be 119!?!? - // TODO(compat): would like to be able to specify this here. - // see also engineapi.c - //TLS "117 + NVDTOR" + TheLastStand "117 + NVDTOR" // I dunno why JAiZ changed this } } -- cgit v1.2.3