#include #include namespace HUDMenuUtils { static float (*CameraWorldToCam)[4][4] = nullptr; static const NiRect* CameraPort = nullptr; bool WorldPtToScreenPt3(const NiPoint3& aWorldPt, NiPoint3& aScreenPt) { return NiCamera::WorldPtToScreenPt3(reinterpret_cast(CameraWorldToCam), CameraPort, &aWorldPt, &aScreenPt.x, &aScreenPt.y, &aScreenPt.z, 1e-5f); } } // namespace HUDMenuUtils static TiltedPhoques::Initializer s_Init( []() { POINTER_SKYRIMSE(float[4][4], s_matrix, 406126); POINTER_SKYRIMSE(NiRect, s_port, 406160); HUDMenuUtils::CameraWorldToCam = s_matrix.Get(); HUDMenuUtils::CameraPort = s_port.Get(); });