diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
| commit | fb2b56fd3c26d37ef198fe6dbf651104656f8a34 (patch) | |
| tree | a945e6ca2ca0691656634644998b29b5619672eb /internal_rewrite/proxies.cpp | |
| parent | 559a0f5669f537e21f3d39780e6e3d77591ff8c1 (diff) | |
fd
Diffstat (limited to 'internal_rewrite/proxies.cpp')
| -rw-r--r-- | internal_rewrite/proxies.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/internal_rewrite/proxies.cpp b/internal_rewrite/proxies.cpp index 11a12e3..4f70215 100644 --- a/internal_rewrite/proxies.cpp +++ b/internal_rewrite/proxies.cpp @@ -107,13 +107,15 @@ 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 ) {
- //printf( "val: %f (%d)\n", proxy_data_const->m_pRecvProp );
- //printf( "prop name: %s\n", proxy_data_const->m_pRecvProp->GetName( ) );
+ //float prev_simtime = ent->m_flSimulationTime( );
- if( !proxy_data_const->m_Value.m_Int ) {
- //return;
- }
- }
+ old_fn( proxy_data_const, entity, output );
- old_fn( proxy_data_const, entity, output );
+ //float simtime = ent->m_flSimulationTime( );
+
+ //if( std::abs( simtime - prev_simtime ) < TICK_INTERVAL( ) )
+ // simtime = prev_simtime;
+ }
+ else
+ old_fn( proxy_data_const, entity, output );
}
\ No newline at end of file |
