Начинающий
Начинающий
- Статус
- Оффлайн
- Регистрация
- 31 Июл 2025
- Сообщения
- 6
- Реакции
- 0
Hello,
I don't know what I'm doing wrong here. I'm trying to implement world modulation and did a little research, then found this:
48 8B C4 4C 89 40 ? 48 89 50 ? 55 53 41 57 @ scenesystem.dll
i searched a bit and found this:
Code:
Code:
I hope someone can help me! Thank you for any response.
Thank you!
I don't know what I'm doing wrong here. I'm trying to implement world modulation and did a little research, then found this:
48 8B C4 4C 89 40 ? 48 89 50 ? 55 53 41 57 @ scenesystem.dll
i searched a bit and found this:
Code:
- void __fastcall hooks::DrawAggregateSceneObject(void* a1, int a2, CBaseSceneData* a3, int a4, int a5, void* a6, void* a7)
- {
- auto og = hooks::m_aggregate_scene_object.GetOriginal();
- int type = get_model_type(a3->material->GetName());
- Color_t color{};
- switch (type) {
- case MODEL_SUN:
- color = cfg_get(ColorPickerVar_t, g_cfg.colSunColor * 255).colValue;
- break;
- case MODEL_EFFECTS:
- color = cfg_get(ColorPickerVar_t, g_cfg.colCloudColor * 255).colValue;
- break;
- case MODEL_OTHER:
- color = cfg_get(ColorPickerVar_t, g_cfg.colWorldColor * 255).colValue;
- break;
- }
- for (int i = 0; i < a4; ++i)
- {
- auto scene = &a3;
[*] if (scene) {
[*] scene->r = color.r;
[*] scene->g = color.g;
[*] scene->b = color.b;
[*] scene->a = 255;
[*] }
[*] }
[*]
[*]
[*] og(a1, a2, a3, a4, a5, a6, a7);
[*]}
Code:
- class CSceneObject
- {
- public:
- char pad_0000[184]; //0x0000
- uint8_t r; //0x00B8
- uint8_t g; //0x00B9
- uint8_t b; //0x00BA
- uint8_t a; //0x00BB
- char pad_00BC[196]; //0x00BC
- }; //Size: 0x0180
- class CBaseSceneData
- {
- public:
- char pad_0000[24]; //0x0000
- CSceneObject* sceneObject; //0x0018
- CMaterial2* material; //0x0020
- CMaterial2* material2; //0x0028
- char pad_0030[16]; //0x0030
- uint8_t r; //0x0040
- uint8_t g; //0x0041
- uint8_t b; //0x0042
- uint8_t a; //0x0043
- char pad_0044[36]; //0x0044
- }; //Size: 0x0068
I hope someone can help me! Thank you for any response.
Thank you!