Transform namespace updated & freecam removed
This commit is contained in:
@@ -31,11 +31,11 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset,
|
||||
if (!it || cam == nullptr)
|
||||
return;
|
||||
|
||||
app::Transform* _transform = Transform::Get(it);
|
||||
app::Transform* _transform = Transform::GetTransform(it);
|
||||
if (_transform == nullptr)
|
||||
return;
|
||||
|
||||
app::Vector3 pos = Transform::Position(_transform);
|
||||
app::Vector3 pos = Transform::GetPosition(_transform);
|
||||
|
||||
app::Vector3 footpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + footOffset, pos.z}, NULL);
|
||||
app::Vector3 headpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + headOffset, pos.z}, NULL);
|
||||
|
||||
@@ -174,10 +174,10 @@ void Misc::SpawnPrefab(const char* prefabName) {
|
||||
if (localPlayer) {
|
||||
app::Quaternion rotation = app::Quaternion_get_identity(NULL);
|
||||
|
||||
app::Transform* playerTransform = Transform::Get(localPlayer);
|
||||
app::Transform* playerTransform = Transform::GetTransform(localPlayer);
|
||||
if (playerTransform == nullptr) return;
|
||||
|
||||
app::Vector3 playerPos = Transform::Position(playerTransform);
|
||||
app::Vector3 playerPos = Transform::GetPosition(playerTransform);
|
||||
|
||||
if (app::BoltNetwork_Instantiate_6) {
|
||||
app::GameObject* go = (app::GameObject*)app::BoltNetwork_Instantiate_6(p, playerPos, rotation, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user