diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-18 20:06:19 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-18 20:06:19 +0100 |
| commit | ee88bdeca83ebf6aff4b2bebf2c1f93eb2bf9541 (patch) | |
| tree | ce352cb7c1f10780c4a1584c7dbd3483d4179d36 /internal_rewrite/proxies.cpp | |
| parent | cbb78808aa8d30055afbabf72f61183ba9015935 (diff) | |
d
Diffstat (limited to 'internal_rewrite/proxies.cpp')
| -rw-r--r-- | internal_rewrite/proxies.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/internal_rewrite/proxies.cpp b/internal_rewrite/proxies.cpp index cb4a872..9ec6a48 100644 --- a/internal_rewrite/proxies.cpp +++ b/internal_rewrite/proxies.cpp @@ -107,15 +107,12 @@ void __cdecl hooks::simtime_proxy_fn( const CRecvProxyData* proxy_data_const, vo auto ent = ( c_base_player* )( entity );
if( ent && ent->is_valid( ) && ent->has_valid_anim( ) && ( ent->m_iTeamNum( ) != g_ctx.m_local->m_iTeamNum( ) || g_settings.rage.friendlies( ) ) && ent != g_ctx.m_local ) {
- //float prev_simtime = ent->m_flSimulationTime( );
-
- old_fn( proxy_data_const, entity, output );
-
- //float simtime = ent->m_flSimulationTime( );
+ if( !proxy_data_const->m_Value.m_Int ) {
+ return;
+ }
- //if( std::abs( simtime - prev_simtime ) < TICK_INTERVAL( ) )
- // simtime = prev_simtime;
+ //aaaaaaaaaaaaa
}
- else
- old_fn( proxy_data_const, entity, output );
+
+ old_fn( proxy_data_const, entity, output );
}
\ No newline at end of file |
