float sliderValue = 1,
void (*orig_Update) (void* instance);
void Update(void* instance) {
if (sliderValue > 1) {
*(float*)((uint64_t)instance + 0xC0) = sliderValue;
*(float*)((uint64_t)instance + 0xBC) = sliderValue;
}
return orig_Update(instance);
}
case 1:
sliderValue = value;
break;
C++:float sliderValue = 1, void (*orig_Update) (void* instance); void Update(void* instance) { if (sliderValue > 1) { *(float*)((uint64_t)instance + 0xC0) = sliderValue; *(float*)((uint64_t)instance + 0xBC) = sliderValue; } return orig_Update(instance); } case 1: sliderValue = value; break;
No, make it uint32_tThank you very much. I'm thinking of cheating this game with 32BIT, is uint64 okay?
No, make it uint32_t
You dontBro i don't use hooks. What about making slider without hook then?
You can use slider with patching is that what you mean, check the lgl template theres exampleBro i don't use hooks. What about making slider without hook then?
You can use Slider in Patching, but you must Have all Hex value for the slider Value. I mean if your sliderValue is 0, you will restore the mods, if 1 you patch with 1Hex code. If you don't know how to make hex code,You can use slider with patching is that what you mean, check the lgl template theres example
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies