From 34cd34a374766ad0bb6482080e095b747de26c36 Mon Sep 17 00:00:00 2001 From: jenz Date: Tue, 25 Aug 2026 12:29:01 +0100 Subject: [PATCH] updated patch for ladder NOP out fix and also removed obsolete patches again --- extension.cpp | 62 ++++++--------------------------------------------- 1 file changed, 7 insertions(+), 55 deletions(-) diff --git a/extension.cpp b/extension.cpp index 0d7bef0..a2d1c52 100644 --- a/extension.cpp +++ b/extension.cpp @@ -262,63 +262,15 @@ static struct SrcdsPatch }, // 14: CGameMovement::LadderMove NOP out player->SetGravity( 0 ); // This is in a cloned function which has a weird symbol (_ZN13CGameMovement10LadderMoveEv_part_0) so I went with the function right before it - { - "_ZN13CGameMovement12CheckFallingEv", - (unsigned char *)"\xC7\x80\xA4\x02\x00\x00\x00\x00\x00\x00\x8B\x03\x8B\x80", - "xx????????xxxx", - (unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x8B\x03\x8B\x80", - "cstrike/bin/server_srv.so" - }, - - // 15: I CUtlLinkedList::AllocInternal( bool multilist ) - //skip CUtlLinkedList overflow! (exhausted memory allocator) and CUtlLinkedList overflow! (exhausted index range) - //this avoids crashing when loading over 64k strings into stringpool. Custom assets in maps lead towards the limit. jenz- December 2023 - // \x90 prevent green, - // \xEB prevent red - /* - { - "_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb", - (unsigned char *)"\x74\x0C", - "xx", - (unsigned char *)"\x90\x90", - "bin/dedicated_srv.so" - }, - { - "_ZN12CZipPackFile7PrepareExx", - (unsigned char *)"\x0F\x85\x32\x03\x00\x00", - "_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb", - (unsigned char *)"\x0F\x87\x7A\xFF\xFF\xFF", - "xxxxxx", - (unsigned char *)"\xEB\x85\x32\x03\x00\x00" , - (unsigned char *)"\xEB\x87\x7A\xFF\xFF\xFF", - "bin/dedicated_srv.so" - }, - { - "_ZN14CUtlLinkedListI16CUtlKeyValuePairI19CUtlConstStringBaseIcE7empty_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS4_tEtEE13AllocInternalEb", - (unsigned char *)"\x0F\x84\x9C\x00\x00\x00", - "xxxxxx", - (unsigned char *)"\x90\x90\x90\x90\x90\x90", - "bin/dedicated_srv.so" - }, - - */ - // 16: should allow people to run around freely after game end, by overwriting pPlayer->AddFlag( FL_FROZEN ); line 3337 in cs_gamerules.cpp - //this change is desired for the new mapvoting feature so that people can still freely move at the end of the map while the vote is running. { - "_ZN12CCSGameRules16GoToIntermissionEv", - (unsigned char *)"\x74\x0E\x83\xEC\x08\x6A\x40\x50", - "xxxxxxxx", - (unsigned char *)"\xEB\x0E\x83\xEC\x08\x6A\x40\x50", - "cstrike/bin/server_srv.so" - }, - //17 also jump over boolean = true // freeze players while in intermission m_bFreezePeriod = true; - { - "_ZN12CCSGameRules16GoToIntermissionEv", - (unsigned char *)"\x75\x0F\xE8\x69\xCE\xDA\xFF\x8B\x45\x08", - "xxxxxxxxxx", - (unsigned char *)"\xEB\x0F\xE8\x69\xCE\xDA\xFF\x8B\x45\x08", - "cstrike/bin/server_srv.so" + "_ZN13CGameMovement12CheckFallingEv", + (unsigned char *)"\xC7\x86\xA4\x02\x00\x00\x00\x00\x00\x00\xE9\x00\xFF\xFF", + "xx????????x???", + (unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\xE9\x00\xFF\xFF", + "cstrike/bin/server_srv.so", + 0x600 }, + // 18: Remove weird filename handle check in CZipPackFile::GetFileInfo that broke loading mixed case files in bsp pakfiles { "_ZN12CZipPackFile11GetFileInfoEPKcRiRxS2_S2_Rt",