diff --git a/src/copypasted/CSignature.cpp b/src/copypasted/CSignature.cpp index 7c57789a..fc077bf2 100755 --- a/src/copypasted/CSignature.cpp +++ b/src/copypasted/CSignature.cpp @@ -78,6 +78,9 @@ uintptr_t CSignature::dwFindPattern(uintptr_t dwAddress, uintptr_t dwLength, firstMatch = 0; } } + + logging::Info("THIS IS SERIOUS: Could not locate signature: \n============\n\"%s\"\n============", szPattern); + return NULL; } //=================================================================================== diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 4cf8a4ea..0e11dee4 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -1043,12 +1043,13 @@ void LevelInit_hook(void *_this, const char *newmap) playerlist::Save(); votelogger::antikick_ticks = 0; hacks::shared::lagexploit::bcalled = false; +#if ENABLE_VISUALS typedef bool *(*LoadNamedSkys_Fn)(const char *); uintptr_t addr = - gSignatures.GetEngineSignature("55 89 E5 57 31 FF 56 8D B5 ? ? ? ? 53 " - "81 EC ? ? ? ? C7 85 ? ? ? ? ? ? ? ?"); + gSignatures.GetEngineSignature("55 89 E5 57 31 FF 56 8D B5 ? ? ? ? 53 81 EC 6C 01 00 00"); static LoadNamedSkys_Fn LoadNamedSkys = LoadNamedSkys_Fn(addr); bool succ; + logging::Info("Going to load the skybox"); #ifdef __clang__ asm("movl %1, %%edi; push skynum[(int) skybox_changer]; call %%edi; mov " "%%eax, %0; add %%esp, 4h" @@ -1064,6 +1065,7 @@ void LevelInit_hook(void *_this, const char *newmap) holiday->SetValue(2); else if (holiday->m_nValue == 2) holiday->SetValue(2); +#endif g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec"); hacks::shared::aimbot::Reset();