Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

Change FOV

Open CovERUshKA opened this issue 7 years ago • 1 comments

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;
};

CovERUshKA avatar May 23 '19 12:05 CovERUshKA

Added.

danielkrupinski avatar Jun 05 '19 10:06 danielkrupinski