Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1911
- else if (actor->IsA(Classes::AWeaponPickup_1911_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_1911_C* pawn = static_cast<Classes::AWeaponPickup_1911_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"1911 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_1887_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_1887_C* pawn = static_cast<Classes::AWeaponPickup_1887_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"1887 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_fal_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_fal_C* pawn = static_cast<Classes::AWeaponPickup_fal_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"FAL [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_dragunov_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_dragunov_C* pawn = static_cast<Classes::AWeaponPickup_dragunov_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"FAL [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_hitec_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_hitec_C* pawn = static_cast<Classes::AWeaponPickup_hitec_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"UZI 9mm [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_m14_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_m14_C* pawn = static_cast<Classes::AWeaponPickup_m14_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"M14 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_m12_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_m12_C* pawn = static_cast<Classes::AWeaponPickup_m12_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"M12 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_M16_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_M16_C* pawn = static_cast<Classes::AWeaponPickup_M16_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"M16 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_hipower_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_hipower_C* pawn = static_cast<Classes::AWeaponPickup_hipower_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"HiPower Pistol [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_python_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_python_C* pawn = static_cast<Classes::AWeaponPickup_python_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Python [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_python_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_python_C* pawn = static_cast<Classes::AWeaponPickup_python_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Python [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_RX_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_RX_C* pawn = static_cast<Classes::AWeaponPickup_RX_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"C4 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_ppk_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_ppk_C* pawn = static_cast<Classes::AWeaponPickup_ppk_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"PPK [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AWeaponPickup_RocketLauncher_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AWeaponPickup_RocketLauncher_C* pawn = static_cast<Classes::AWeaponPickup_RocketLauncher_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Rocket Launcher [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AConsumablePickup_Medkit3_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AConsumablePickup_Medkit3_C* pawn = static_cast<Classes::AConsumablePickup_Medkit3_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"MedKit3 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AConsumablePickup_Medkit_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AConsumablePickup_Medkit_C* pawn = static_cast<Classes::AConsumablePickup_Medkit_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"MedKit [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AConsumable_Burger_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AConsumable_Burger_C* pawn = static_cast<Classes::AConsumable_Burger_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Burger [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AArmorPickup_Body_Light_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AArmorPickup_Body_Light_C* pawn = static_cast<Classes::AArmorPickup_Body_Light_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Light Armor [" + distanceText + L"]", BLACK_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AArmorPickup_Body_Medium_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AArmorPickup_Body_Medium_C* pawn = static_cast<Classes::AArmorPickup_Body_Medium_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Medium Armor [" + distanceText + L"]", BLACK_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AArmorPickup_Body_Heavy_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AArmorPickup_Body_Heavy_C* pawn = static_cast<Classes::AArmorPickup_Body_Heavy_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Heavy Armor [" + distanceText + L"]", BLACK_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AArmorPickup_Body_Special_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AArmorPickup_Body_Special_C* pawn = static_cast<Classes::AArmorPickup_Body_Special_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"Special Armor [" + distanceText + L"]", BLACK_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AAmmoPickup_223_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AAmmoPickup_223_C* pawn = static_cast<Classes::AAmmoPickup_223_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"AMMO 223 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AAmmoPickup_9_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AAmmoPickup_9_C* pawn = static_cast<Classes::AAmmoPickup_9_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"AMMO 9mm [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AAmmoPickup_45_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AAmmoPickup_45_C* pawn = static_cast<Classes::AAmmoPickup_45_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- std::wstring distanceText = Util::DistanceToString(distance);
- if (distance < 150.0f)
- {
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"AMMO .45 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
- else if (actor->IsA(Classes::AAmmoPickup_308_C::StaticClass()))
- {
- if (menu::bItemEsp)
- {
- Classes::AAmmoPickup_308_C* pawn = static_cast<Classes::AAmmoPickup_308_C*>(actor);
- if (pawn == nullptr)
- continue;
- if (pawn->RootComponent == nullptr)
- continue;
- Classes::FVector pos = pawn->RootComponent->RelativeLocation;
- Classes::FVector2D screenPos;
- Global::m_LocalPlayer->PlayerController->ProjectWorldLocationToScreen(pos, &screenPos);
- if (screenPos.X == 0 && screenPos.Y == 0)
- continue;
- // Get Distance
- float distance = Util::GetDistance(Global::m_LocalPlayer->PlayerController->AcknowledgedPawn->RootComponent->RelativeLocation, pos);
- if (distance < 150.0f)
- {
- std::wstring distanceText = Util::DistanceToString(distance);
- // Draw Distance
- Vec2 size = renderer->getTextExtent(distanceText, FONT_SIZE, FONT_TYPE);
- renderer->drawText(Vec2(screenPos.X - size.x / 2, screenPos.Y), L"AMMO .308 [" + distanceText + L"]", WHITE_COLOR, 0, FONT_SIZE, FONT_TYPE);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement