Shouldn't positioning the gun based on the camera's fov & aspect ratio work for all resolutions?
Well, I used to use something like this before:
VECTOR pos;
vec_set(&pos, vector(16, 0, 8));
vec_rotate(&pos, &camera->pan);
vec_add(&pos, &camera->x);
vec_set(&weapon->x, &pos);
But this won't work correctly, it will give same results as in pictures above, and I don't really know how to position weapon based on camera's fov and aspect ratio. Any ideas are welcome.
Greets.