Giter VIP home page Giter VIP logo

Comments (22)

FocuzJS avatar FocuzJS commented on August 28, 2024 1

yes it works for me aswell. Start3D has defaults defined so passing it tables is not necessary. I was able to get this working with few simple lines wrapped around get_view_matrix since i suspected it was the only issue.
my fix thanks to your tip:

    auto glua = globals::lua->create_interface(lua::type::client);

    if (glua) {
        glua->PushSpecial(lua::special::glob);
        glua->GetField(-1, "cam");
        glua->GetField(-1, "Start3D");
        glua->Call(0, 1);
        glua->Pop();
    }
    auto& matrix = globals::engine->get_view_matrix();
    if (glua) {
        glua->GetField(-1, "End3D");
        glua->Call(0, 1);
        glua->Pop(3);
    }

and then render esp normally so in my case, i don't have multiple lua contexts open at once! thanks for the quick responses.

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Hello,

Can you please post a video showing this issue?
I can't seem to replicate it on my end

from cyth.

HOTD avatar HOTD commented on August 28, 2024

Sorry for the late reply, haven't been playing gmod a lot. The ESP seems to acting strange with or without the escape menu, seems to be rendering in the wrong positions (trying to find my screenshots of this) or not rendering at all. When you open the escape menu it fixes it (https://i.imgur.com/q3aFP4G.png).

Here's a video: https://www.youtube.com/watch?v=FnJxVdYeVRw

from cyth.

HOTD avatar HOTD commented on August 28, 2024

Here's the video of the boxes rendered in the wrong areas: https://www.youtube.com/watch?v=08i1xmCqg4I

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Does replacing esp::draw_bounding_box with esp::draw_3d_box fix the issue?

from cyth.

HOTD avatar HOTD commented on August 28, 2024

Nope, https://www.youtube.com/watch?v=eGgDOz4fWII. I do like the 3D boxes though.

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Looks like an issue with the view matrix.
Can you post the server IP?

from cyth.

HOTD avatar HOTD commented on August 28, 2024

92.60.12.133:27015 or 92.60.12.133:10000 . Zombie.Zone ZS Server 1 & 2

from cyth.

HOTD avatar HOTD commented on August 28, 2024

Edit: Still having issue on that zs server. I'm out of ideas.

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

I've ran into this now aswell, its a server addon type thing it seems

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

can confirm it's a view matrix issue, player locations are correct for my aimbot

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Can you check if cam.Start3D fixes the issues?

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

I was thinking of getting the view matrix another way, and seeing if https://wiki.garrysmod.com/page/Entity/GetWorldTransformMatrix is a different vmatrix than globals::engine->get_view_matrix()

how would cam.Start3D help, it's lua aswell right?

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

GetWorldTransformMatrix isn't the view matrix rather the rgfl_CoordinateFrame

If I'm not mistaken cam.Start3D seems as if it calls CViewRender::SetupMain3DView (Which re-calculates the view matrix and caches it)

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

cam.Start3D says it expects cam.End3D to be called. Should this be called directly after since im guessing the cache will be updated or on an event hook?
and how often do you think this call should be made, once per run or as part of get_view_matrix?

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

See if this works:

cam.Start3D(LocalPlayer():EyePos(), LocalPlayer():EyeAngles(), ...)
auto& matrix = globals::engine->get_view_matrix()

// ESP rendering

cam.End3D()

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Using cam.Start3D does indeed solve the issue

Source

if (auto glua = Lua::get())
{
	auto& [x, y] = ImGui::GetIO().DisplaySize;

	glua->push_special(Lua::special::glob);
	glua->get_field(-1, "LocalPlayer");
	glua->call(0, 1);

	glua->get_field(-1, "EyePos");
	glua->push(-2);
	glua->call(1, 1);

	glua->get_field(-2, "EyeAngles");
	glua->push(-3);
	glua->call(1, 1);

	glua->get_field(-4, "cam");
	glua->get_field(-1, "Start3D");
	glua->push(-4);
	glua->push(-4);
	glua->push_nil();
	glua->push_number(0.);
	glua->push_number(0.);
	glua->push_number(x);
	glua->push_number(y);
	glua->push_nil();
	glua->push_nil();
	glua->call(9, 0);

	glua->pop(5);

	// Rendering / ESP here

	glua->push_special(Lua::special::glob);
	glua->get_field(-1, "cam");
	glua->get_field(-1, "End3D");
	glua->call(0, 0);
	glua->pop(2);
}

from cyth.

M-Tass avatar M-Tass commented on August 28, 2024

Sorry, I mistakenly closed this issue. Opening it again
If the issue is resolved on @HOTD's end, they may close it

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

hl2_2018-07-08_09-48-39
just tested on the servers he had trouble with before. everything looks good to me

from cyth.

xbread avatar xbread commented on August 28, 2024

@FocuzJS you got a discord that i can message you on?

from cyth.

FocuzJS avatar FocuzJS commented on August 28, 2024

@xbread post yours i'll add you

from cyth.

HOTD avatar HOTD commented on August 28, 2024

Seems to work. Closing.

from cyth.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.