mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-29 02:47:17 +09:00
34 lines
881 B
C++
34 lines
881 B
C++
#include "pch.h"
|
|
#include "feature.h"
|
|
|
|
void ESP()
|
|
{
|
|
if (Config.GetPalPlayerCharacter() != NULL)
|
|
{
|
|
if (Config.GetPalPlayerCharacter()->ShooterComponent != NULL)
|
|
{
|
|
if(Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon() != NULL)
|
|
{
|
|
DrawUActorComponent(Config.GetPalPlayerCharacter()->ShooterComponent->GetHasWeapon()->InstanceComponents, ImColor(128, 0, 0));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
void DrawUActorComponent(SDK::TArray<SDK::UActorComponent*> Comps,ImColor color)
|
|
{
|
|
ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(ImGui::GetIO().DisplaySize.x / 2, ImGui::GetIO().DisplaySize.y / 2), color, "Drawing...");
|
|
if (Comps.IsValid())
|
|
{
|
|
for (int i = 0; i < Comps.Num(); i++)
|
|
{
|
|
|
|
if (Comps[i] != NULL)
|
|
{
|
|
|
|
ImGui::GetBackgroundDrawList()->AddText(nullptr, 16, ImVec2(10, 10 + (i * 30)), color, Comps[i]->GetFullName().c_str());
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|