summaryrefslogtreecommitdiff
path: root/internal_rewrite/get_viewmodel_fov.cpp
blob: 050399ccb8072a9297e0e35aa5bc68fa0a5c8f0a (plain)
1
2
3
4
5
6
7
8
#include "hooks.hpp"
#include "settings.hpp"

float __fastcall hooks::get_viewmodel_fov( void* ecx, void* edx ) {
	static auto get_viewmodel_fov_o = g_csgo.m_clientmode->get_old_function< decltype( &hooks::get_viewmodel_fov ) >( 35 );

	return get_viewmodel_fov_o( ecx, nullptr ) + float( g_settings.misc.viewmodel_fov );
}