summaryrefslogtreecommitdiff
path: root/internal_rewrite/hooks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/hooks.cpp')
-rw-r--r--internal_rewrite/hooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal_rewrite/hooks.cpp b/internal_rewrite/hooks.cpp
index 3d21d2a..a02537a 100644
--- a/internal_rewrite/hooks.cpp
+++ b/internal_rewrite/hooks.cpp
@@ -5,6 +5,7 @@
hooks::c_netvar_proxy hooks::lby_proxy;
hooks::c_netvar_proxy hooks::last_shot_proxy;
+hooks::c_netvar_proxy hooks::simtime_proxy;
bool hooks::commit( factory::c_csgo* instance ) {
while ( !( instance->m_hwnd = FindWindowA( xors( "Valve001" ), 0 ) ) )
@@ -17,6 +18,7 @@ bool hooks::commit( factory::c_csgo* instance ) {
lby_proxy.init( g_netvars.get_prop( fnv( "DT_CSPlayer" ), fnv( "m_flLowerBodyYawTarget" ) ), &lby_proxy_fn );
last_shot_proxy.init( g_netvars.get_prop( fnv( "DT_WeaponCSBaseGun" ), fnv( "m_fLastShotTime" ) ), &last_shot_proxy_fn );
+ simtime_proxy.init( g_netvars.get_prop( fnv( "DT_BaseEntity" ), fnv( "m_flSimulationTime" ) ), &simtime_proxy_fn );
// god i'm thriving the d
auto* d = &memory::detours;