From 4bbebe5d8482f4adfdaac73bdf91703b20a8df2d Mon Sep 17 00:00:00 2001 From: 2200151533 <2200151533@qq.com> Date: Tue, 23 Jan 2024 18:11:29 +0800 Subject: [PATCH] Update MaxLevel Creadit:WoodgamerHD --- config.cpp | 1 + config.h | 1 + feature.cpp | 25 +++++++++++----------- feature.h | 2 +- src/D3D11Window.cpp | 2 -- src/Menu.cpp | 51 ++++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 66 insertions(+), 16 deletions(-) diff --git a/config.cpp b/config.cpp index fc25a77..bf2d1c5 100644 --- a/config.cpp +++ b/config.cpp @@ -14,6 +14,7 @@ bool DetourTick(SDK::APalPlayerCharacter* m_this,float DeltaSecond) if (m_this->GetPalPlayerController()->IsLocalPlayerController()) { Config.localPlayer = m_this; + } } return OldTickFunc(m_this, DeltaSecond); diff --git a/config.h b/config.h index dc6a0c9..212843d 100644 --- a/config.h +++ b/config.h @@ -20,6 +20,7 @@ public: bool IsInfStamina = false; bool IsSafe = true; bool IsInfinAmmo = false; + bool IsMuteki = false; //���� float SpeedModiflers = 1.0f; diff --git a/feature.cpp b/feature.cpp index e099b3a..d46cb70 100644 --- a/feature.cpp +++ b/feature.cpp @@ -3,26 +3,27 @@ void ESP() { - if (Config.IsESP) + if (Config.GetPalPlayerCharacter() != NULL) { - DrawPlayerList(ImColor(128,0,0)); + if (Config.GetPalPlayerCharacter()->GetPalPlayerController() != NULL) + { + + DrawUActorComponent(Config.GetPalPlayerCharacter()->BlueprintCreatedComponents, ImColor(128, 0, 0)); + } } } - -void DrawPlayerList(ImColor color) +void DrawUActorComponent(SDK::TArray Comps,ImColor color) { ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(ImGui::GetIO().DisplaySize.x / 2, ImGui::GetIO().DisplaySize.y / 2), color, "Drawing..."); - - - SDK::TArray actors = *(SDK::TArray*)(*((uint64_t*)(*(uint64_t*)(Config.GetUWorld()->PersistentLevel))+0x098)); - - if (actors.IsValid()) + if (Comps.IsValid()) { - for (int i = 0; i < actors.Num(); i++) + for (int i = 0; i < Comps.Num(); i++) { - if (actors[i] != NULL) + + if (Comps[i] != NULL) { - ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(10, 10 + (i * 30)), color, actors[i]->GetFullName().c_str()); + + ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(10, 10 + (i * 30)), color, Comps[i]->GetFullName().c_str()); } } } diff --git a/feature.h b/feature.h index f20aa9e..644be34 100644 --- a/feature.h +++ b/feature.h @@ -5,5 +5,5 @@ void ESP(); -void DrawPlayerList(ImColor color); +void DrawUActorComponent(SDK::TArray Comps,ImColor color); diff --git a/src/D3D11Window.cpp b/src/D3D11Window.cpp index b74a20d..ca9bc51 100644 --- a/src/D3D11Window.cpp +++ b/src/D3D11Window.cpp @@ -249,8 +249,6 @@ namespace DX11_Base { // Render Menu Loop g_Menu->Draw(); - //͸�� - ESP(); ImGui::EndFrame(); ImGui::Render(); m_DeviceContext->OMSetRenderTargets(1, &m_RenderTargetView, NULL); diff --git a/src/Menu.cpp b/src/Menu.cpp index 449dbea..bf90ca6 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -69,6 +69,9 @@ namespace DX11_Base { ImGui::Checkbox("InfStamina", &Config.IsInfStamina); + //Creadit Mokobake + //ImGui::Checkbox("MuteKiGodmode", &Config.IsMuteki); + if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) { if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->CanShoot()) @@ -79,6 +82,7 @@ namespace DX11_Base { } } } + //Talk: Teleport or Shop anywhere Config.GetPalPlayerCharacter()->GetPalPlayerController()->Transmitter->Character->NotifyTalkStart_ToServer() //��������һ�� ImGui::SliderFloat("SpeedModifilers", &Config.SpeedModiflers, 1, 10); ImGui::SliderInt("AttackModifilers", &Config.DamageUp, 0, 200000); @@ -156,11 +160,43 @@ namespace DX11_Base { SDK::FFixedPoint fixpoint = SDK::FFixedPoint(); fixpoint.Value = 99999999; Config.GetPalPlayerCharacter()->ReviveCharacter_ToServer(fixpoint); + } } } } - + //Creadit WoodgamerHD + if (ImGui::Button("MAX Level<50>", 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()->GrantExpForParty(99999999); + } + } + } + } + /** Useful + if (ImGui::Button("testTP", ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) + { + if (Config.GetPalPlayerCharacter() != NULL) + { + if (Config.GetPalPlayerCharacter()->GetPalPlayerController()) + { + + SDK::FGuid guid = Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPlayerUId(); + SDK::FVector vector = Config.GetPalPlayerCharacter()->GetTransform().Translation; + SDK::FVector ca_vector = { vector.X + 3000,vector.Y + 100,vector.Z + 3000 }; + Config.GetPalPlayerCharacter()->GetPalPlayerController()->Transmitter->Player->RegisterRespawnLocation_ToServer(guid, ca_vector); + Config.GetPalPlayerCharacter()->GetPalPlayerController()->GetPalPlayerState()->RequestRespawn(); + } + } + } + **/ } void TABConfig() { @@ -182,6 +218,10 @@ namespace DX11_Base { void Menu::Draw() { + if (Config.IsESP) + { + ESP(); + } if (g_GameVariables->m_ShowMenu) MainMenu(); @@ -309,6 +349,15 @@ namespace DX11_Base { } } } + //Creadit Mokobake + /** + if (Config.GetPalPlayerCharacter() != NULL) + { + if (Config.GetPalPlayerCharacter()->CharacterParameterComponent != NULL) + { + Config.GetPalPlayerCharacter()->CharacterParameterComponent->bIsEnableMuteki = Config.IsMuteki; + } + }**/ if (Config.IsDefuseModiler) { if (Config.GetPalPlayerCharacter() != NULL && Config.GetPalPlayerCharacter()->CharacterParameterComponent->DefenseUp != Config.DefuseUp)