From 25838ab4eb1fc94f59186cb24b75f440f9062f9a Mon Sep 17 00:00:00 2001 From: Hayden K Date: Mon, 7 Apr 2025 16:18:35 -0400 Subject: Fix the infamous Swamp Fever "god mode glitch" Turns out this was fixed in version 2112 (October 2012), so it was fairly easy to isolate in Ghidra (I had previously thought this was fixed by TLS). The CDirector::FinaleEscapeState member is used in CDirector::IsFinaleWon (and maybe another function, I don't remember). Prior to Valve's fix, the value was never reset to 0 after finishing a campaign, so when the Swamp (or Crash Course) "minifinale" events ran, the game would behave as though the player was entering the end-of-finale cutscene and block votes, make players invincible etc. 2112 fixed this bug by setting the member back to 0 in CDirector::Reset, so here we just set it to 0 when quickreset is used, since that is essentially the recommended way to start a run at this point. Now co-op hosts won't need to restart their game after finishing a campaign anymore! --- src/sst.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sst.c') diff --git a/src/sst.c b/src/sst.c index 61c30b9..a60ad36 100644 --- a/src/sst.c +++ b/src/sst.c @@ -277,6 +277,7 @@ static const char *updatenotes = "\ * Increased sst_mouse_factor limit from 20 to 100\n\ * sst_l4d_testwarp now performs the take-control unsticking step by default\n\ * Added sst_l4d_previewwarp to visualise warp unsticking logic\n\ +* sst_l4d_quickreset now fixes the Swamp Fever/Crash Course \"god mode glitch\"\n\ * Added a fix for lag/stuttering in newer L4D2 versions caused by addon loading\n\ * Added a fix for disabling all addons in L4D2 requiring a game restart\n\ * Removed multiplayer chat rate limit in L4D series and Portal 2\n\ -- cgit v1.2.3-54-g00ecf