i found this but how
The simple SDK for internal R6S hack.
Entity class at the moment has only 2 functions
Code:
Vector3& Entity::GetPosition();
Vector3& Entity::GetHeadPosition();
Example of usage with my renderer:
Code:
#include "Engine/GameManager.h"
#include "Engine/GameRenderer.h"
auto pGameManager = Engine::GameManager::GetInstance();
auto pCamera = Engine::GameRenderer::GetInstance()->GetCamera();
for (uint64_t i = 0; i < pGameManager->GetEntities().GetSize(); i++)
{
Engine::Entity* pEntity = pGameManager->GetEntities()[i];
Engine::Vector3 screenPosition = pCamera->WorldToScreen(pEntity->GetPosition());
float distance = pCamera->GetViewTranslation().Distance(pEntity->GetPosition());
if (screenPosition.z >= 1.0f)
{
DrawText(m_pFont,
TextFormat(META_STRING("Entity [%.0f m]"), distance),
ImVec2(screenPosition.x, screenPosition.y), 16.0f, 0xFF047BF9, true);
}
}
Note: Camera.cpp uses ImGui to get display size.
Code:
ImGuiIO& io = ImGui::GetIO();
return *(new Vector3(
(io.DisplaySize.x / 2) * (1 + x / GetViewFovX() / z),
(io.DisplaySize.y / 2) * (1 - y / GetViewFovY() / z),
z));
i dont know how to run this help
Entity class at the moment has only 2 functions
Code:
Vector3& Entity::GetPosition();
Vector3& Entity::GetHeadPosition();
Example of usage with my renderer:
Code:
#include "Engine/GameManager.h"
#include "Engine/GameRenderer.h"
auto pGameManager = Engine::GameManager::GetInstance();
auto pCamera = Engine::GameRenderer::GetInstance()->GetCamera();
for (uint64_t i = 0; i < pGameManager->GetEntities().GetSize(); i++)
{
Engine::Entity* pEntity = pGameManager->GetEntities()[i];
Engine::Vector3 screenPosition = pCamera->WorldToScreen(pEntity->GetPosition());
float distance = pCamera->GetViewTranslation().Distance(pEntity->GetPosition());
if (screenPosition.z >= 1.0f)
{
DrawText(m_pFont,
TextFormat(META_STRING("Entity [%.0f m]"), distance),
ImVec2(screenPosition.x, screenPosition.y), 16.0f, 0xFF047BF9, true);
}
}
Note: Camera.cpp uses ImGui to get display size.
Code:
ImGuiIO& io = ImGui::GetIO();
return *(new Vector3(
(io.DisplaySize.x / 2) * (1 + x / GetViewFovX() / z),
(io.DisplaySize.y / 2) * (1 - y / GetViewFovY() / z),
z));
i dont know how to run this help

