Исходник Cs2 external nightmode modulation

Участник
Статус
Оффлайн
Регистрация
6 Апр 2021
Сообщения
343
Реакции[?]
216
Поинты[?]
122K
Код:
 DWORD64 addr;
    DWORD64 addr2;
    if ( !_proc_manager.read_memory<DWORD64>( local_player.player_pawn.address + offsets::pawn::camera_services, addr ) ) {
#ifdef read_data_dbg
        print_with_data_scoped( "ccs_player_pawn::camera_services -> error -> no memory" );
#endif // read_data_dbg
        return;
    }

    if ( !_proc_manager.read_memory<DWORD64>( addr + 0x1F4, addr2 ) ) {
#ifdef read_data_dbg
        print_with_data_scoped( "ccs_player_pawn::processing_value -> error -> no memory" );
#endif // read_data_dbg
        return;
    }
#endif
    float min_exps = 0.15;
    float max_exps = 0.15;
    int exps = 1;

    if ( !_proc_manager.write_memory<int>( addr2 + 0xD05, exps ) ) {
        printf( "err" );
    } else {
        printf( "wrote" );
    }

    if ( !_proc_manager.write_memory<float>( addr2 + offsets::post_processing::min_exposure, min_exps ) ) {
        printf( "err2" );
    } else {
        printf( "wrote2" );
    }

    if ( !_proc_manager.write_memory<float>( addr2 + offsets::post_processing::max_exposure, max_exps ) ) {
        printf( "err3" );
    } else {
        printf( "wrote4" );
    }
 
Новичок
Статус
Оффлайн
Регистрация
24 Окт 2023
Сообщения
1
Реакции[?]
0
Поинты[?]
0
not working...

something wrong here?

Код:
DWORD64 PlayerPawn::nightmode(uintptr_t pawn_address)
{

    

    DWORD64 addr;
    DWORD64 addr2;

    mem.read<DWORD64>(pawn_address + Offset::camera.m_pCameraServices, addr);
    mem.read<DWORD64>(addr + Offset::camera.m_hActivePostProcessingVolume, addr2);



    float min_exps = 0.15;
    float max_exps = 0.15;
    int exps = 1;


    mem.write<int>(addr2 + 0xD05, exps);

    mem.write<float>(addr2 + Offset::camera.m_flMinExposure, min_exps);
    mem.write<float>(addr2 + Offset::camera.m_flMaxExposure, max_exps);



    return true;


}
in debug i do getting a right offsets value but its not changing to nightmode in game...
 
Начинающий
Статус
Оффлайн
Регистрация
26 Мар 2023
Сообщения
71
Реакции[?]
10
Поинты[?]
9K
"Cs2 external nightmode modulation"
not working...

something wrong here?

Код:
DWORD64 PlayerPawn::nightmode(uintptr_t pawn_address)
{

  

    DWORD64 addr;
    DWORD64 addr2;

    mem.read<DWORD64>(pawn_address + Offset::camera.m_pCameraServices, addr);
    mem.read<DWORD64>(addr + Offset::camera.m_hActivePostProcessingVolume, addr2);



    float min_exps = 0.15;
    float max_exps = 0.15;
    int exps = 1;


    mem.write<int>(addr2 + 0xD05, exps);

    mem.write<float>(addr2 + Offset::camera.m_flMinExposure, min_exps);
    mem.write<float>(addr2 + Offset::camera.m_flMaxExposure, max_exps);



    return true;


}
in debug i do getting a right offsets value but its not changing to nightmode in game...
 
Keine panik!
Эксперт
Статус
Оффлайн
Регистрация
29 Апр 2020
Сообщения
812
Реакции[?]
417
Поинты[?]
49K
Сверху Снизу