From 31d5cd8bb68276353edc4e79e8b58eaf86b61630 Mon Sep 17 00:00:00 2001 From: Hayden K Date: Fri, 7 Feb 2025 14:32:18 -0500 Subject: Add L4D1_1015plus and L4D1_1022plus gametype tags 1022 is the update that adds Mac support and introduces some of the already known vtable changes (this update is similar to 2040 for L4D2 in that regard), the tag will also see some use in some upcoming features. The 1015 tag is questionably necessary, but will be used for at least one feature (it's also the update that adds the newer matchmaking interfaces used in l4dreset.c, but having the tag available doesn't help anything there). --- src/engineapi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/engineapi.c') diff --git a/src/engineapi.c b/src/engineapi.c index cc5f2cf..87a8858 100644 --- a/src/engineapi.c +++ b/src/engineapi.c @@ -105,6 +105,18 @@ bool engineapi_init(int pluginver) { } } + if (GAMETYPE_MATCHES(L4D1)) { + // Crash Course update + if (con_findcmd("director_log_scavenge_items")) { + _gametype_tag |= _gametype_tag_L4D1_1015plus; + } + // seems there was some code shuffling in the Mac update (1022) + // this update came like 2-3 weeks after The Sacrifice itself released + if (con_findvar("tank_stasis_time_suicide")) { + _gametype_tag |= _gametype_tag_L4D1_1022plus; + } + } + if (GAMETYPE_MATCHES(L4D2)) { if (con_findvar("sv_zombie_touch_trigger_delay")) { _gametype_tag |= _gametype_tag_L4D2_2125plus; -- cgit v1.2.3-54-g00ecf