- Status
- Offline
- Joined
- Nov 12, 2019
- Messages
- 2
- Reaction score
- 1
go to the EndScene hook and write there:
Then go to your config.h and write 3 floats there.
Then in the same hook
write this:
Then we prescribe it all in the menu:
C++:
static auto mat_ambient_light_r = g_CVar->FindVar("mat_ambient_light_r");
static auto mat_ambient_light_g = g_CVar->FindVar("mat_ambient_light_g");
static auto mat_ambient_light_b = g_CVar->FindVar("mat_ambient_light_b");
Then go to your config.h and write 3 floats there.
C++:
Settings::Visual::r
Settings::Visual::g
Settings::Visual::b
Then in the same hook
write this:
C++:
mat_ambient_light_r->SetValue(Settings::Visual::r);
mat_ambient_light_g->SetValue(Settings::Visual::g);
mat_ambient_light_b->SetValue(Settings::Visual::b);
Then we prescribe it all in the menu:
C++:
Components.SliderFloat("R", Settings::Visual::r, 0.f, 10.f);
Components.SliderFloat("G", Settings::Visual::g, 0.f, 10.f);
Components.SliderFloat("B", Settings::Visual::b, 0.f, 10.f);
You cant view this link please login.
You cant view this link please login.