Update MaxLevel Creadit:WoodgamerHD

This commit is contained in:
2200151533 2024-01-23 18:11:29 +08:00
parent b4150339bb
commit 4bbebe5d84
6 changed files with 66 additions and 16 deletions

View File

@ -14,6 +14,7 @@ bool DetourTick(SDK::APalPlayerCharacter* m_this,float DeltaSecond)
if (m_this->GetPalPlayerController()->IsLocalPlayerController()) if (m_this->GetPalPlayerController()->IsLocalPlayerController())
{ {
Config.localPlayer = m_this; Config.localPlayer = m_this;
} }
} }
return OldTickFunc(m_this, DeltaSecond); return OldTickFunc(m_this, DeltaSecond);

View File

@ -20,6 +20,7 @@ public:
bool IsInfStamina = false; bool IsInfStamina = false;
bool IsSafe = true; bool IsSafe = true;
bool IsInfinAmmo = false; bool IsInfinAmmo = false;
bool IsMuteki = false;
//<2F><><EFBFBD><EFBFBD> //<2F><><EFBFBD><EFBFBD>
float SpeedModiflers = 1.0f; float SpeedModiflers = 1.0f;

View File

@ -3,26 +3,27 @@
void ESP() 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 DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps,ImColor color)
void DrawPlayerList(ImColor color)
{ {
ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(ImGui::GetIO().DisplaySize.x / 2, ImGui::GetIO().DisplaySize.y / 2), color, "Drawing..."); ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(ImGui::GetIO().DisplaySize.x / 2, ImGui::GetIO().DisplaySize.y / 2), color, "Drawing...");
if (Comps.IsValid())
SDK::TArray<SDK::AActor*> actors = *(SDK::TArray<SDK::AActor*>*)(*((uint64_t*)(*(uint64_t*)(Config.GetUWorld()->PersistentLevel))+0x098));
if (actors.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());
} }
} }
} }

View File

@ -5,5 +5,5 @@
void ESP(); void ESP();
void DrawPlayerList(ImColor color); void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps,ImColor color);

View File

@ -249,8 +249,6 @@ namespace DX11_Base {
// Render Menu Loop // Render Menu Loop
g_Menu->Draw(); g_Menu->Draw();
//͸<><CDB8>
ESP();
ImGui::EndFrame(); ImGui::EndFrame();
ImGui::Render(); ImGui::Render();
m_DeviceContext->OMSetRenderTargets(1, &m_RenderTargetView, NULL); m_DeviceContext->OMSetRenderTargets(1, &m_RenderTargetView, NULL);

View File

@ -69,6 +69,9 @@ namespace DX11_Base {
ImGui::Checkbox("InfStamina", &Config.IsInfStamina); ImGui::Checkbox("InfStamina", &Config.IsInfStamina);
//Creadit Mokobake
//ImGui::Checkbox("MuteKiGodmode", &Config.IsMuteki);
if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20))) if (ImGui::Button("ToggleInfAmmo",ImVec2(ImGui::GetWindowContentRegionWidth() - 3, 20)))
{ {
if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL && Config.GetPalPlayerCharacter()->ShooterComponent->CanShoot()) 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()
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
ImGui::SliderFloat("SpeedModifilers", &Config.SpeedModiflers, 1, 10); ImGui::SliderFloat("SpeedModifilers", &Config.SpeedModiflers, 1, 10);
ImGui::SliderInt("AttackModifilers", &Config.DamageUp, 0, 200000); ImGui::SliderInt("AttackModifilers", &Config.DamageUp, 0, 200000);
@ -156,12 +160,44 @@ namespace DX11_Base {
SDK::FFixedPoint fixpoint = SDK::FFixedPoint(); SDK::FFixedPoint fixpoint = SDK::FFixedPoint();
fixpoint.Value = 99999999; fixpoint.Value = 99999999;
Config.GetPalPlayerCharacter()->ReviveCharacter_ToServer(fixpoint); 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() void TABConfig()
{ {
ImGui::Text("PalWorld Menu"); ImGui::Text("PalWorld Menu");
@ -182,6 +218,10 @@ namespace DX11_Base {
void Menu::Draw() void Menu::Draw()
{ {
if (Config.IsESP)
{
ESP();
}
if (g_GameVariables->m_ShowMenu) if (g_GameVariables->m_ShowMenu)
MainMenu(); 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.IsDefuseModiler)
{ {
if (Config.GetPalPlayerCharacter() != NULL && Config.GetPalPlayerCharacter()->CharacterParameterComponent->DefenseUp != Config.DefuseUp) if (Config.GetPalPlayerCharacter() != NULL && Config.GetPalPlayerCharacter()->CharacterParameterComponent->DefenseUp != Config.DefuseUp)