• MONEY за подписку! Ничего делать не надо совсем, всего-то подписаться на тг одмена и нажать кнопку "Принять участие" в розыгрыше: https://t.me/govthing/7650

Гайд How to change world color after game update

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
17 Ноя 2023
Сообщения
71
Реакции
7
C++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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
};

1758742970784.png
 
Последнее редактирование:
Это чертава легенда не спала сутками, чтобы халопам дать пушечку
 
C++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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
};

Посмотреть вложение 316490
credits?
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
C++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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
};

Посмотреть вложение 316490
Подскажи пожалуйста
sdk::scene_system->light_data_queue->light_data
Это из памяти достать класс надо, или что это вообще
 
Назад
Сверху Снизу