From 8564c6e069f30446e7c4c66ecaba72e0fa2563b4 Mon Sep 17 00:00:00 2001 From: Pan32 Date: Sat, 3 Jul 2021 01:09:11 +0100 Subject: [PATCH] fixed patch 1 and 2, disabled everything after 3 because I havent checked yet --- extension.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extension.cpp b/extension.cpp index 0e28d17..d5d7ed0 100644 --- a/extension.cpp +++ b/extension.cpp @@ -146,7 +146,7 @@ static struct SrcdsPatch // 1: player_speedmod should not turn off flashlight { "_ZN17CMovementSpeedMod13InputSpeedModER11inputdata_t", - (unsigned char *)"\xFF\x90\x8C\x05\x00\x00\x85\xC0\x0F\x85\x75\x02\x00\x00", + (unsigned char *)"\xFF\x90\x8C\x05\x00\x00\x85\xC0\x0F\x85\x85\x02\x00\x00", "xxxxxxxxxxxxxx", (unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90", 0, 0, 0, false @@ -154,7 +154,7 @@ static struct SrcdsPatch // 2: only select CT spawnpoints { "_ZN9CCSPlayer19EntSelectSpawnPointEv", - (unsigned char *)"\x89\x1C\x24\xE8\x00\x00\x00\x00\x83\xF8\x03\x74\x4B", + (unsigned char *)"\x89\x1C\x24\xE8\x00\x00\x00\x00\x83\xF8\x03\x74\x6B", "xxxx????xxxxx", (unsigned char *)"\x89\x1C\x24\x90\x90\x90\x90\x90\x90\x90\x90\xEB\x4B", 0, 0, 0, false @@ -168,7 +168,7 @@ static struct SrcdsPatch 0, 0, 0, false }, // 5: disable alive check in point_viewcontrol->Disable - { + /*{ "_ZN14CTriggerCamera7DisableEv", (unsigned char *)"\x8B\x10\x89\x04\x24\xFF\x92\x08\x01\x00\x00\x84\xC0\x0F\x84\x58\xFF\xFF\xFF", "xxxxxxx??xxxxxx?xxx", @@ -222,7 +222,7 @@ static struct SrcdsPatch "xxxx???????x????xxxxxxxxxxx", (unsigned char *)"\x89\x44\x24\x04\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x89\xF8\x8B\x5D\xF4\x8B\x75\xF8\x8B\x7D\xFC", 0, 0, 0, true - } + }*/ }; class CBaseEntity;