Very basic Wallhack
Well this is what I already made its a basic wallhack you will see people through walls and if they are before walls (so you know when you need to shoot) they will have a green box around them.
It has no team detection and is crapy but im still trying to figure out how to draw a box around someone and to know if someone is on the same mission.
But I thought it could help some of you guys get forward so I posted it anyway.
And if someone knows how to make it better you can always leave it here.
Good Luck
@gokhanw
Credits:BydloCoder
It has no team detection and is crapy but im still trying to figure out how to draw a box around someone and to know if someone is on the same mission.
But I thought it could help some of you guys get forward so I posted it anyway.
And if someone knows how to make it better you can always leave it here.
Code:
void DrawPlayerESP( UCanvas* pCanvas )
{
if (pPC == NULL || pPC->Pawn == NULL || pPC->WorldInfo == NULL )
return;
FBoxSphereBounds PlayerBounds;
APawn* Target = pPC->Pawn->WorldInfo->PawnList;
while ( Target != NULL )
{
FBoxSphereBounds PlayerBounds = Target->Mesh->Bounds;
if ( Target != NULL && !Target->bDeleteMe && Target->Health >0 && Target != pPC->Pawn && !Target->IsA(AVehicle::StaticClass()))
{
Target->Mesh->SetDepthPriorityGroup(2);
pPC->DrawDebugBox(Target->Location, PlayerBounds.BoxExtent, 0, 255,0,false);
}
Target = Target->NextPawn;
}
}
@gokhanw
Credits:BydloCoder
Thank you