Comments (22)
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.
Hello,
Can you please post a video showing this issue?
I can't seem to replicate it on my end
from cyth.
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.
Here's the video of the boxes rendered in the wrong areas: https://www.youtube.com/watch?v=08i1xmCqg4I
from cyth.
Does replacing esp::draw_bounding_box
with esp::draw_3d_box
fix the issue?
from cyth.
Nope, https://www.youtube.com/watch?v=eGgDOz4fWII. I do like the 3D boxes though.
from cyth.
Looks like an issue with the view matrix.
Can you post the server IP?
from cyth.
92.60.12.133:27015 or 92.60.12.133:10000 . Zombie.Zone ZS Server 1 & 2
from cyth.
Edit: Still having issue on that zs server. I'm out of ideas.
from cyth.
I've ran into this now aswell, its a server addon type thing it seems
from cyth.
can confirm it's a view matrix issue, player locations are correct for my aimbot
from cyth.
Can you check if cam.Start3D fixes the issues?
from cyth.
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.
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.
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.
See if this works:
cam.Start3D(LocalPlayer():EyePos(), LocalPlayer():EyeAngles(), ...)
auto& matrix = globals::engine->get_view_matrix()
// ESP rendering
cam.End3D()
from cyth.
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.
Sorry, I mistakenly closed this issue. Opening it again
If the issue is resolved on @HOTD's end, they may close it
from cyth.
just tested on the servers he had trouble with before. everything looks good to me
from cyth.
@FocuzJS you got a discord that i can message you on?
from cyth.
@xbread post yours i'll add you
from cyth.
Seems to work. Closing.
from cyth.
Related Issues (15)
- Lots of errors HOT 5
- You got Steam?
- nice job!
- Issue making somewhat advanced lua calls HOT 8
- Signatures outdated HOT 4
- Having trouble passing tables into functions HOT 23
- Safe to call functions that set stuff? HOT 13
- Player:ScreenFade Breaking visuals HOT 1
- Weapon ESP HOT 4
- Can you help me get this compiled HOT 6
- discord? HOT 1
- A lot off errors HOT 1
- Players in vehicles show incorrect world position of boxes for that player HOT 3
- Unresolved external symbols... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyth.