they removed ren_minimap_viewport from the game
we used the minimap viewport to find out the players fov.
Other ways to find players fov:
- size of a background tile
- whenever a square is seen, use its side length to calculate fov.
I have to correct myself. fov still works. what doesn't work is getting arena size anymore.
also getting camera position doesn't work anymore
The background lines' opacity decreases with increased FoV. Just check for that to get FoV in a portable manner.
yeah, the current method uses the opacity of the lines.
Getting the camera position is currently the problem
Why? Can't you just get your triangle from the minimap?
nope, since the triangle is player position. Camera position changes based on movement + when using predator tank.
working on a PoC that uses the games memory.