diff --git a/config.cpp b/config.cpp index 32ea139..b294e28 100644 --- a/config.cpp +++ b/config.cpp @@ -25,6 +25,14 @@ void config::Update(const char* filterText) std::sort(Config.db_filteredItems.begin(), Config.db_filteredItems.end()); } const std::vector& config::GetFilteredItems() { return Config.db_filteredItems; } +void DetourSendDamage(SDK::APalPlayerState* d_this, SDK::APalCharacter* Target, SDK::FPalDamageInfo* info) +{ + /*info->bAttackableToFriend = true; + info->IgnoreShield = true; + info->NativeDamageValue = 9999999; + info->bApplyNativeDamageValue = true;*/ + return OldSendDamageFunc(d_this, Target, info); +} bool DetourTick(SDK::APalPlayerCharacter* m_this, float DeltaSecond) { diff --git a/src/Menu.cpp b/src/Menu.cpp index 6b004fb..7c78437 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -164,6 +164,31 @@ namespace DX11_Base Config.IsToggledFly = !Config.IsToggledFly; ExploitFly(Config.IsToggledFly); } + /*if (ImGui::Button("DeleteSelf", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) + { + SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter(); + if (p_appc != NULL) + { + if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL) + { + if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL) + { + Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->Debug_RequestDeletePlayerSelf_ToServer(); + } + } + } + }*/ + + if (ImGui::Button("GodHealth", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) + ReviveLocalPlayer(); + + //Creadit WoodgamerHD + if (ImGui::Button("Give exp", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) + GiveExperiencePoints(Config.EXP); + } + void TABThroll() + { + if (ImGui::Button("KillAura", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) { if (Config.GetPalPlayerCharacter() != NULL) @@ -201,7 +226,7 @@ namespace DX11_Base { if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL) { - Config.GetPalPlayerCharacter()->GetPalPlayerController()->RequestLiftupThrow_ToServer(NULL); + Config.GetPalPlayerCharacter()->GetPalPlayerController()->RequestLiftup_ToServer(NULL); } } } @@ -243,28 +268,6 @@ namespace DX11_Base } } } - - /*if (ImGui::Button("DeleteSelf", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) - { - SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter(); - if (p_appc != NULL) - { - if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL) - { - if (Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState() != NULL) - { - Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->Debug_RequestDeletePlayerSelf_ToServer(); - } - } - } - }*/ - - if (ImGui::Button("GodHealth", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) - ReviveLocalPlayer(); - - //Creadit WoodgamerHD - if (ImGui::Button("Give exp", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20))) - GiveExperiencePoints(Config.EXP); } void TABConfig() @@ -682,6 +685,11 @@ namespace DX11_Base Tabs::TABExploit(); ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("Thrall")) + { + Tabs::TABThroll(); + ImGui::EndTabItem(); + } if (ImGui::BeginTabItem("Database")) { Tabs::TABDatabase();