diff options
| author | navewindre <boneyaard@gmail.com> | 2018-12-03 22:03:34 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-12-03 22:03:41 +0100 |
| commit | 716be28826ac61491944490373402c39123a1d75 (patch) | |
| tree | 60614ff806843ccfde19c95bd28a8a25a230a54f /cheat/internal_rewrite/extra.cpp | |
| parent | 4047e9083ef1731847bcd75f361f2d611fe5e401 (diff) | |
boris is cool
Diffstat (limited to 'cheat/internal_rewrite/extra.cpp')
| -rw-r--r-- | cheat/internal_rewrite/extra.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cheat/internal_rewrite/extra.cpp b/cheat/internal_rewrite/extra.cpp index 6882f21..e95a840 100644 --- a/cheat/internal_rewrite/extra.cpp +++ b/cheat/internal_rewrite/extra.cpp @@ -83,12 +83,14 @@ namespace features }
void c_extra::add_latency( INetChannel* channel ) {
+ // todo @boris:
+ // replace this with sharklazer's method
+
if ( g_ctx.m_local && g_ctx.m_local->is_valid( ) ) {
auto nci = g_csgo.m_engine( )->GetNetChannelInfo( );
float in_latency = nci->GetLatency( 0 );
- //arbitrary number much
float latency = 0.15f - ( in_latency + g_csgo.m_globals->m_frametime ) - TICK_INTERVAL( );
if( g_settings.misc.net_fakelag && latency > 0.f ) {
|
