If call inline auto gEntitySystem = *reinterpret_cast<CGameEntitySystem**>(schema.FindPattern("client.dll", "4C 8B C9 81 FA"));
gEntitySystem->GetBaseEntity() = nullptr
void* GetEntityByIndexFunction(int Index)
{
SCHEMA schema;
using fnGetBaseEntity = void* (__thiscall*)(void*, int);
static auto GetBaseEntity = reinterpret_cast<fnGetBaseEntity>(schema.FindPattern("client.dll", "4C 8D 49 ? 81 FA"));
return GetBaseEntity(this, Index);
}
GetLocalPlayerIndex = 53
C_CSPlayerController* C_CSPlayerController::GetLocalPlayerController() {
const int nIndex = engine_interface->GetLocalPlayerIndex();
return (C_CSPlayerController*)gEntitySystem->GetEntity<C_CSPlayerController>(nIndex);
}
This is where the problem.
You have any ideas why that problem give me nullptr??
someone told me correct for now 48 8B 0D ? ? ? ? 0F 28 DE 4C 89 6C 24 ? 4C 8B C0 4C 89 6C 24 ? 49 8B D6
but...
An exception was thrown at 0x00007FFD9E387B29 (client.dll) in cs2.exe: 0xC0000005: Access violation reading from 0xFFFFFFFFFFFFFFFF.
C_CSPlayerController* C_CSPlayerController::GetLocalPlayerController() {
const int nIndex = engine_interface->GetLocalPlayerIndex();
return (C_CSPlayerController*)gEntitySystem->GetEntity<C_CSPlayerController>(nIndex);
}
engineinterface = Source2EngineToClient001
inline auto gEntitySystem = *reinterpret_cast<CGameEntitySystem**>(schema.FindPattern("client.dll", "48 8B 0D ? ? ? ? 0F 28 DE 4C 89 6C 24 ? 4C 8B C0 4C 89 6C 24 ? 49 8B D6"));
давай на русском ты знаешь в чем проблема просто я уже не обновлял чит более года вот сейчас занимаюсь фиксом просто не понимаю что не так у меня