Skip to content

Commit

Permalink
Revert "Merge pull request #1 from jensewe/updaterate_patch"
Browse files Browse the repository at this point in the history
This reverts commit ee4e00d, reversing
changes made to 3de09b9.
  • Loading branch information
accelerator74 committed Nov 18, 2024
1 parent 57bbde6 commit db72da3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 253 deletions.
1 change: 0 additions & 1 deletion AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sourceFiles = [
'memutils.cpp',
'maxrate_patches.cpp',
'boomervomitpatch.cpp',
'updaterate_patches.cpp',

os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook.cpp'),
os.path.join(Extension.mms_root, 'core', 'sourcehook', 'sourcehook_impl_chookidman.cpp'),
Expand Down
3 changes: 0 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ and removes the (30k) limits on rate control cvars:

### Changelog / TODO

1.6:
- Patch SetUpdateRate to allow tickrate > 100 (Thanks to jensewe)

1.5: Contributed by Accelerator
- Fixed CVomit::UpdateAbility offsets.
- Some code optimization
Expand Down
49 changes: 0 additions & 49 deletions sigs.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,53 +172,4 @@ const int g_FrameTimeReadOffsets[] =
#endif
#endif

#if defined (_WIN32)
#if defined (_L4D)
//53 8B 5C 24 0C 84 DB 75 ? A1
#define SIG_CGAMECLIENT_SETUPDATERATE "\x53\x8B\x5C\x24\x0C\x84\xDB\x75\x2A\xA1"
#define SIG_CGAMECLIENT_SETUPDATERATE_LEN 10
#define CGAMECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x7E
#define CGAMECLIENT_SETUPDATERATE_PATCH_OFFSET 0x3F
//8B 44 24 04 83 F8 ? 7E ? B8 ? ? ? ? EB
#define SIG_CBASECLIENT_SETUPDATERATE "\x8B\x44\x24\x04\x83\xF8\x2A\x7E\x2A\xB8\x2A\x2A\x2A\x2A\xEB"
#define SIG_CBASECLIENT_SETUPDATERATE_LEN 15
#define CBASECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x7E
#define CBASECLIENT_SETUPDATERATE_PATCH_OFFSET 0x7
#elif defined (_L4D2)
//55 8B EC 53 8B 5D 0C 84 DB 75 ? A1
#define SIG_CGAMECLIENT_SETUPDATERATE "\x55\x8B\xEC\x53\x8B\x5D\x0C\x84\xDB\x75\x2A\xA1"
#define SIG_CGAMECLIENT_SETUPDATERATE_LEN 12
#define CGAMECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x7E
#define CGAMECLIENT_SETUPDATERATE_PATCH_OFFSET 0x3F
//55 8B EC 8B 45 08 83 F8 ? 7E ? B8 ? ? ? ? EB
#define SIG_CBASECLIENT_SETUPDATERATE "\x55\x8B\xEC\x8B\x45\x08\x83\xF8\x2A\x7E\x2A\xB8\x2A\x2A\x2A\x2A\xEB"
#define SIG_CBASECLIENT_SETUPDATERATE_LEN 17
#define CBASECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x7E
#define CBASECLIENT_SETUPDATERATE_PATCH_OFFSET 0x9
#endif
#elif defined (_LINUX)
#define SIG_CGAMECLIENT_SETUPDATERATE "_ZN11CGameClient13SetUpdateRateEib"
#define SIG_CBASECLIENT_SETUPDATERATE "_ZN11CBaseClient13SetUpdateRateEib"

/*
83 FA 64 cmp edx, 64h
B8 64 00 00 00 mov eax, 64h
7F 07 jg short loc_1DA32A
*/
#define CGAMECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x7F
/*
BA 64 00 00 00 mov edx, 64h
83 F8 64 cmp eax, 64h
0F 4E D0 cmovle edx, eax
*/
#define CBASECLIENT_SETUPDATERATE_PATCH_CHECK_BYTE 0x4E
#if defined (_L4D)
#define CGAMECLIENT_SETUPDATERATE_PATCH_OFFSET 0x4C
#define CBASECLIENT_SETUPDATERATE_PATCH_OFFSET 0x17
#elif defined (_L4D2)
#define CGAMECLIENT_SETUPDATERATE_PATCH_OFFSET 0x41
#define CBASECLIENT_SETUPDATERATE_PATCH_OFFSET 0x21
#endif
#endif

#endif // _SIGS_H_
7 changes: 2 additions & 5 deletions tickrate_enabler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@

#include "boomervomitpatch.h"
#include "maxrate_patches.h"
#include "updaterate_patches.h"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
Expand All @@ -54,8 +53,8 @@
#else
#define VDEBUG ""
#endif
#define VERSION_L4D "1.6"
#define VERSION_L4D2 "1.6"
#define VERSION_L4D "1.5"
#define VERSION_L4D2 "1.5"
#if defined (_L4D)
#define VERSION VERSION_L4D VDEBUG
#elif defined (_L4D2)
Expand Down Expand Up @@ -119,8 +118,6 @@ bool L4DTickRate::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn ga
#if defined (CLAMPCLIENTRATE_PATCH)
m_patchManager.Register(new ClampClientRatePatch((BYTE *)engine));
#endif
m_patchManager.Register(new CGameClientUpdateRatePatch((BYTE *)engine));
m_patchManager.Register(new CBaseClientUpdateRatePatch((BYTE *)engine));

m_patchManager.PatchAll();
}
Expand Down
132 changes: 0 additions & 132 deletions updaterate_patches.cpp

This file was deleted.

63 changes: 0 additions & 63 deletions updaterate_patches.h

This file was deleted.

0 comments on commit db72da3

Please sign in to comment.