mirror of
https://github.com/expvintl/cheat_escape_the_backrooms.git
synced 2026-10-10 09:23:04 +08:00
update
This commit is contained in:
@@ -72,12 +72,95 @@ void cheat::init()
|
||||
config::get()->load("C:\\LHY1339\\escape_the_backrooms\\keybind.cheat");
|
||||
color::get()->load();
|
||||
}
|
||||
//
|
||||
//typedef SDK::UCreateSessionCallbackProxyAdvanced* (__fastcall* fn_create_session)(
|
||||
// SDK::UObject* WorldContextObject,
|
||||
// const SDK::TArray<SDK::FSessionPropertyKeyPair>& ExtraSettings,
|
||||
// SDK::APlayerController* PlayerController,
|
||||
// int PublicConnections,
|
||||
// int PrivateConnections,
|
||||
// bool bUseLAN,
|
||||
// bool bAllowInvites,
|
||||
// bool bIsDedicatedServer,
|
||||
// bool bUsePresence,
|
||||
// bool bUseLobbiesIfAvailable,
|
||||
// bool bAllowJoinViaPresence,
|
||||
// bool bAllowJoinViaPresenceFriendsOnly,
|
||||
// bool bAntiCheatProtected,
|
||||
// bool bUsesStats,
|
||||
// bool bShouldAdvertise,
|
||||
// bool bUseLobbiesVoiceChatIfAvailable,
|
||||
// bool bStartAfterCreate,
|
||||
// bool bGameSession
|
||||
// );
|
||||
//
|
||||
//fn_create_session def_create_session = nullptr;
|
||||
//
|
||||
//SDK::UCreateSessionCallbackProxyAdvanced* __fastcall hk_create_session(
|
||||
// SDK::UObject* WorldContextObject,
|
||||
// const SDK::TArray<SDK::FSessionPropertyKeyPair>& ExtraSettings,
|
||||
// SDK::APlayerController* PlayerController,
|
||||
// int PublicConnections,
|
||||
// int PrivateConnections,
|
||||
// bool bUseLAN,
|
||||
// bool bAllowInvites,
|
||||
// bool bIsDedicatedServer,
|
||||
// bool bUsePresence,
|
||||
// bool bUseLobbiesIfAvailable,
|
||||
// bool bAllowJoinViaPresence,
|
||||
// bool bAllowJoinViaPresenceFriendsOnly,
|
||||
// bool bAntiCheatProtected,
|
||||
// bool bUsesStats,
|
||||
// bool bShouldAdvertise,
|
||||
// bool bUseLobbiesVoiceChatIfAvailable,
|
||||
// bool bStartAfterCreate,
|
||||
// bool bGameSession
|
||||
//)
|
||||
//{
|
||||
// printf("hook called create session\n");
|
||||
// return def_create_session(
|
||||
// WorldContextObject,
|
||||
// ExtraSettings,
|
||||
// PlayerController,
|
||||
// 10,
|
||||
// 10,
|
||||
// bUseLAN,
|
||||
// bAllowInvites,
|
||||
// bIsDedicatedServer,
|
||||
// bUsePresence,
|
||||
// bUseLobbiesIfAvailable,
|
||||
// bAllowJoinViaPresence,
|
||||
// bAllowJoinViaPresenceFriendsOnly,
|
||||
// bAntiCheatProtected,
|
||||
// bUsesStats,
|
||||
// bShouldAdvertise,
|
||||
// bUseLobbiesVoiceChatIfAvailable,
|
||||
// bStartAfterCreate,
|
||||
// bGameSession
|
||||
// );
|
||||
//}
|
||||
|
||||
//LONG hk_create_session(_EXCEPTION_POINTERS* Info)
|
||||
//{
|
||||
// printf("hook called create session\n");
|
||||
// return EXCEPTION_CONTINUE_EXECUTION;
|
||||
//}
|
||||
|
||||
void cheat::hook()
|
||||
{
|
||||
vhook::get()->hook_func(hk_post_render, hk_wnd_proc);
|
||||
|
||||
MH_Initialize();
|
||||
//MH_Initialize();
|
||||
|
||||
//SDK::UFunction* func = SDK::UCreateSessionCallbackProxyAdvanced::StaticClass()->GetFunction(
|
||||
// "CreateSessionCallbackProxyAdvanced",
|
||||
// "CreateAdvancedSession"
|
||||
//);
|
||||
//std::cout << "addr : 0x" << std::hex << (uintptr_t)func->ExecFunction - (uintptr_t)GetModuleHandle(nullptr) << std::endl;
|
||||
//uintptr_t targetAddr = (uintptr_t)func->ExecFunction;
|
||||
|
||||
//MH_CreateHook((LPVOID)targetAddr, &hk_create_session, reinterpret_cast<LPVOID*>(&def_create_session));
|
||||
//MH_EnableHook((LPVOID)targetAddr);
|
||||
}
|
||||
|
||||
void cheat::exit()
|
||||
|
||||
@@ -80,6 +80,9 @@
|
||||
<Filter Include="source\cheat\vhook">
|
||||
<UniqueIdentifier>{8b1862d5-d2f8-4e86-90f6-993f5303d858}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="third_party\detours">
|
||||
<UniqueIdentifier>{1e65f5c1-b18c-499b-aa28-be2a425af048}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="_sdk.h">
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
//#define CHEAT_DEBUG
|
||||
|
||||
#define VERSION "26.2.12"
|
||||
#define VERSION_W L"版本:26.2.12\n"
|
||||
#define VERSION "26.2.13"
|
||||
#define VERSION_W L"版本:26.2.13\n"
|
||||
#define GAME_VERSION L"支持游戏版本:1.20(2841)\n"
|
||||
#define THANKS \
|
||||
L"感谢 雾染 的爱发电喵~\n" \
|
||||
|
||||
@@ -220,7 +220,7 @@ void player::domain()
|
||||
}
|
||||
else
|
||||
{
|
||||
my_player->CanKill = false;
|
||||
my_player->CanKill = true;
|
||||
//my_player->CapsuleComponent->SetCollisionResponseToChannel(SDK::ECollisionChannel::ECC_WorldDynamic, SDK::ECollisionResponse::ECR_Block);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user