Osiris
Osiris copied to clipboard
Change FOV
hook
clientMode.hookAt(18, OverrideView);
OverrideView
static void __stdcall OverrideView(CViewSetup* pSetup)
{
pSetup->fov = config.Visuals.FOV;
hooks.clientMode.callOriginal<void, CViewSetup*>(18, pSetup);
}
CViewSetup
class CViewSetup
{
public:
int x, x_old;
int y, y_old;
int width, width_old;
int height, height_old;
bool m_bOrtho;
float m_OrthoLeft;
float m_OrthoTop;
float m_OrthoRight;
float m_OrthoBottom;
bool m_bCustomViewMatrix;
matrix3x4_t m_matCustomViewMatrix;
char pad_0x68[0x48];
float fov;
float fovViewmodel;
Vector origin;
Vector angles;
float zNear;
float zFar;
float zNearViewmodel;
float zFarViewmodel;
float m_flAspectRatio;
float m_flNearBlurDepth;
float m_flNearFocusDepth;
float m_flFarFocusDepth;
float m_flFarBlurDepth;
float m_flNearBlurRadius;
float m_flFarBlurRadius;
int m_nDoFQuality;
int m_nMotionBlurMode;
float m_flShutterTime;
Vector m_vShutterOpenPosition;
Vector m_shutterOpenAngles;
Vector m_vShutterClosePosition;
Vector m_shutterCloseAngles;
float m_flOffCenterTop;
float m_flOffCenterBottom;
float m_flOffCenterLeft;
float m_flOffCenterRight;
int m_EdgeBlur;
};
Added.