Начинающий
- Статус
- Оффлайн
- Регистрация
- 17 Ноя 2023
- Сообщения
- 71
- Реакции
- 7
C++:
ida: @scenesystem.dll; "48 8B C4 48 89 50 ? 48 89 48 ? 55 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 89 58 ? 48 89 70"
void __fastcall draw_aggregate_scene_object_array(void* a1, void* a2, c_aggregate_object_array* a3)
{
static auto original = find_original(&draw_aggregate_scene_object_array);
original(a1, a2, a3);
if (!a3->data || !sdk::scene_system || !sdk::scene_system->light_data_queue || !sdk::scene_system->light_data_queue->light_data)
return;
c_color clr = config.visuals.world.nightmode.world.color.get();
if (config.visuals.world.nightmode.enabled && config.visuals.world.nightmode.world.enable)
{
for (int i = 0; i < a3->data->count; i++)
{
int index = (a3->data->index + i) << 5;
// c_color its a color from 0 to 255
*reinterpret_cast<c_color*>(reinterpret_cast<uintptr_t>(sdk::scene_system->light_data_queue->light_data) + index) = clr;
}
}
}
C++:
class c_aggregate_object_data
{
public:
char pad_0000[4]; //0x0000
int count; //0x0004
char pad_0008[40]; //0x0008
int index; //0x0030
}; //Size: 0x0034
class c_aggregate_object_array
{
public:
void* object; //0x0000
c_aggregate_object_data* data; //0x0008
};
C++:
class c_light_data_queue
{
public:
char pad_0000[24]; // 0x0000
void* light_data; // 0x0018
};
// interface: SceneSystem_002 @scenesystem.dll
class c_scene_system
{
public:
char pad_0000[12568]; // 0x0000
c_light_data_queue* light_data_queue; // 0x3118
};
Последнее редактирование: