egp3DTracker does not function properly for EGP screens
Ally-for-Hire opened this issue · 0 comments
Please note: This issue tracker is for bug reports
If your issue isn't a bug report, or if you are unsure whether it's a bug, please go to our discord channel instead at https://discord.gg/H8UKY3Y
If you are confident your issue is a bug, please fill in as much information as you can below.
Describe the bug
EGP 3d trackers on screens do not display in the correct location. I tested this with others e2s as well as one I made specifically for the test.
To Reproduce
Make an e2 with both an EGP hud and screen input
Make a 3D tracker for both elements
Parent both 3D trackers to the same entity
Position the 3D tracker in the same position for both
Example Code:
@name EGP 3D Tracking Tester
@inputs [EGPHud EGPScreen]:wirelink TargetPos:vector
if(first())
{
EGPHud:egpClear()
EGPHud:egp3DTracker(1, vec())
EGPHud:egpParent(1, entity())
EGPHud:egpCircleOutline(2, vec2(), vec2(20))
EGPHud:egpParent(2, 1)
EGPScreen:egpClear()
EGPScreen:egp3DTracker(1, vec())
EGPScreen:egpParent(1, entity())
EGPScreen:egpCircleOutline(2, vec2(), vec2(20))
EGPScreen:egpParent(2, 1)
}
EGPHud:egpPos(1, vec(600, 0, 0))
EGPScreen:egpPos(1, vec(600, 0, 0))
interval(100)
Expected behavior
The 3D tracker should be in the same location as the one on the HUD, instead it behaves very strangely
Screenshots
https://snipboard.io/pon096.jpg
https://snipboard.io/bLrmsu.jpg
https://snipboard.io/KGxcQL.jpg