If you are trying to make some kind of 3D markers in DayZ and use the GetGame().GetScreenPos(pos); Method to get the position of the Marker in 2D space the result is perfect except the player is in a scope that zooms in. When the player moves the weapon around, the marker changes the position instead of being stable on one position. There is some kind of multiplication error when having a zoomed view.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
Do something similar like the VanillaPlusPlusMap andsee how it behaves when using a scope (tested with PU scope on SKS)
Event Timeline
Comment Actions
Hello LBmaster.
When manually zooming camera, the FOV is overriden, hence the multiplication errors.
You can try these FOV values to adjust the calculation:
scripts/3_Game/constants.c:
DZPLAYER_CAMERA_FOV_EYEZOOM
DZPLAYER_CAMERA_FOV_IRONSIGHTS
Regards,
Geez