diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
| commit | 7ccb819f867493f8ec202ea3b39c94c198c64584 (patch) | |
| tree | 94622e61af0ff359e3d6689cf274d74f60b2492a /tf2/get_viewmodel_fov.cpp | |
| parent | 564d979b79e8a5aaa5014eba0ecd36c61575934f (diff) | |
first
Diffstat (limited to 'tf2/get_viewmodel_fov.cpp')
| -rw-r--r-- | tf2/get_viewmodel_fov.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tf2/get_viewmodel_fov.cpp b/tf2/get_viewmodel_fov.cpp new file mode 100644 index 0000000..96c4a1e --- /dev/null +++ b/tf2/get_viewmodel_fov.cpp @@ -0,0 +1,8 @@ +#include "hooks.h"
+#include "settings.h"
+
+float __fastcall hooks::get_viewmodel_fov( void* ecx, void* edx ) {
+ static auto get_viewmodel_fov_o = cl.m_clientmode->get_old_function< decltype( &hooks::get_viewmodel_fov ) >( 32 );
+
+ return get_viewmodel_fov_o( ecx, nullptr ) + float( g_settings.misc.viewmodel_fov );
+}
|
