/del

coder of the year
Участник
Статус
Оффлайн
Регистрация
13 Мар 2019
Сообщения
885
Реакции[?]
266
Поинты[?]
4K
Код:
C++:
#include "..\hooks.hpp"

using IsPlayingTimeDemo_t = bool( __thiscall* )( void * );

bool __stdcall hooks::hooked_timedemo( ) {
    static auto original_fn = engine_hook->get_func_address< IsPlayingTimeDemo_t >( 83 );

    static auto interpolated_server_entities = reinterpret_cast< void * >( util::pattern_scan( "client_panorama.dll", "55 8B EC 83 EC 1C 8B 0D ? ? ? ? 53" ) );

    static ConVar* interp = g_csgo.m_cvar( )->FindVar( "cl_interpolate" );
    if ( interp->GetInt( ) == 0 && abs( ( int )( ( int* )_ReturnAddress( ) ) - ( int )interpolated_server_entities ) < 400 && g_ctx.m_local && g_ctx.m_local->is_alive( ) )
        return true;

    return original_fn( g_csgo.m_engine( ) );
}
Ошибки:
E0020 идентификатор "_ReturnAddress" не определен
Ошибка C3861 _ReturnAddress: идентификатор не найден

Помогите мнэ)
 
НАЧНИ ПРОГРАММИРОВАТЬ ПРЯМО СЕЙЧАС
Участник
Статус
Оффлайн
Регистрация
19 Июн 2017
Сообщения
608
Реакции[?]
924
Поинты[?]
4K
Код:
C++:
#include "..\hooks.hpp"

using IsPlayingTimeDemo_t = bool( __thiscall* )( void * );

bool __stdcall hooks::hooked_timedemo( ) {
    static auto original_fn = engine_hook->get_func_address< IsPlayingTimeDemo_t >( 83 );

    static auto interpolated_server_entities = reinterpret_cast< void * >( util::pattern_scan( "client_panorama.dll", "55 8B EC 83 EC 1C 8B 0D ? ? ? ? 53" ) );

    static ConVar* interp = g_csgo.m_cvar( )->FindVar( "cl_interpolate" );
    if ( interp->GetInt( ) == 0 && abs( ( int )( ( int* )_ReturnAddress( ) ) - ( int )interpolated_server_entities ) < 400 && g_ctx.m_local && g_ctx.m_local->is_alive( ) )
        return true;

    return original_fn( g_csgo.m_engine( ) );
}
Ошибки:
E0020 идентификатор "_ReturnAddress" не определен
Ошибка C3861 _ReturnAddress: идентификатор не найден

Помогите мнэ)
Код:
#include "..\hooks.hpp"

using IsPlayingTimeDemo_t = bool( __thiscall* )( void * );

bool __stdcall hooks::hooked_timedemo( ) {
    static auto original_fn = engine_hook->get_func_address< IsPlayingTimeDemo_t >( 83 );

    #if 0
    static auto interpolated_server_entities = reinterpret_cast< void * >( util::pattern_scan( "client_panorama.dll", "55 8B EC 83 EC 1C 8B 0D ? ? ? ? 53" ) );

    static ConVar* interp = g_csgo.m_cvar( )->FindVar( "cl_interpolate" );
    if ( interp->GetInt( ) == 0 && abs( ( int )( ( int* )_ReturnAddress( ) ) - ( int )interpolated_server_entities ) < 400 && g_ctx.m_local && g_ctx.m_local->is_alive( ) )
        return true;
    #endif
    return original_fn( g_csgo.m_engine( ) );
}
этот код и так ничего полезного не делает
 
coder of the year
Участник
Статус
Оффлайн
Регистрация
13 Мар 2019
Сообщения
885
Реакции[?]
266
Поинты[?]
4K
Код:
#include "..\hooks.hpp"

using IsPlayingTimeDemo_t = bool( __thiscall* )( void * );

bool __stdcall hooks::hooked_timedemo( ) {
    static auto original_fn = engine_hook->get_func_address< IsPlayingTimeDemo_t >( 83 );

    #if 0
    static auto interpolated_server_entities = reinterpret_cast< void * >( util::pattern_scan( "client_panorama.dll", "55 8B EC 83 EC 1C 8B 0D ? ? ? ? 53" ) );

    static ConVar* interp = g_csgo.m_cvar( )->FindVar( "cl_interpolate" );
    if ( interp->GetInt( ) == 0 && abs( ( int )( ( int* )_ReturnAddress( ) ) - ( int )interpolated_server_entities ) < 400 && g_ctx.m_local && g_ctx.m_local->is_alive( ) )
        return true;
    #endif
    return original_fn( g_csgo.m_engine( ) );
}
этот код и так ничего полезного не делает
thank you)
 
Похожие темы
Сверху Снизу