-
Автор темы
- #1
Код:
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" );
}