• Я зарабатываю 100 000 RUB / месяц на этом сайте!

    А знаешь как? Я всего-лишь публикую (создаю темы), а админ мне платит. Трачу деньги на мороженое, робуксы и сервера в Minecraft. А ещё на паль из Китая. 

    Хочешь так же? Пиши и узнавай условия: https://t.me/alex_redact
    Реклама: https://t.me/yougame_official

/del

coder of the year
Участник
Участник
Статус
Оффлайн
Регистрация
13 Мар 2019
Сообщения
891
Реакции
266
Код:
C++:
Expand Collapse Copy
#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: идентификатор не найден

Помогите мнэ)
 
Код:
C++:
Expand Collapse Copy
#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: идентификатор не найден

Помогите мнэ)
Код:
Expand Collapse Copy
#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( ) );
}
этот код и так ничего полезного не делает
 
Код:
Expand Collapse Copy
#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)
 
Назад
Сверху Снизу