diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-04 19:10:21 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-04 19:10:21 +0200 |
| commit | cf4d2ec1a220d70bcfb6490a1a4e23dc8d90886b (patch) | |
| tree | 1912481d1e12f45c50105484f3bbc1f69b285557 /internal_rewrite/proxies.cpp | |
| parent | 39f70b7b843d926eeb534ac1de25cc38b13c493d (diff) | |
gay
Diffstat (limited to 'internal_rewrite/proxies.cpp')
| -rw-r--r-- | internal_rewrite/proxies.cpp | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/internal_rewrite/proxies.cpp b/internal_rewrite/proxies.cpp index d214751..a42bf87 100644 --- a/internal_rewrite/proxies.cpp +++ b/internal_rewrite/proxies.cpp @@ -105,36 +105,12 @@ void __cdecl hooks::last_shot_proxy_fn( const CRecvProxyData* proxy_data_const, void __cdecl hooks::simtime_proxy_fn( const CRecvProxyData* proxy_data_const, void* entity, void* output ) {
auto old_fn = simtime_proxy.get_old_function( );
- /*auto ent = ( c_base_player* )( entity );
+ 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 ) {
- auto time = proxy_data_const->m_Value.m_Int;
- auto id = proxy_data_const->m_ObjectID;
- auto ptr = proxy_data_const->m_pRecvProp;
- auto element = proxy_data_const->m_iElement;
-
- auto name = proxy_data_const->m_pRecvProp->GetName( );
-
- //static float last_time[ 65 ]{ };
-
- /*printf( "PROXY[ %d ]:\n"
- "\tname: %s\n"
- //"\tdelta: %f\n"
- "\tm_Int: %d\n"
- "\ttime: %f\n"
- "\tid: %d\n"
- "\tptr: %08x\n"
- "\telement: %d\n",
- ent->ce( )->GetIndex( ),
- name,
- //time - last_time[ ent->ce( )->GetIndex( ) ],
- time,
- ent->m_flSimulationTime( ),
- id,
- ptr,
- element );
-
- //last_time[ ent->ce( )->GetIndex( ) ] = ent->m_flSimulationTime( );
- }*/
+ if( !proxy_data_const->m_Value.m_Int ) {
+ return;
+ }
+ }
old_fn( proxy_data_const, entity, output );
}
\ No newline at end of file |
