void (*old_timeScale) (float value);
void get_timeScale(float value) {
if (mod) {
old_timeScale(2000.00f);
return;
}
old_timeScale(value);
}
how do i use the offset? as a pointer or as the actual mshookIf You are using lgl then
Code:void (*old_timeScale) (float value); void get_timeScale(float value) { if (mod) { old_timeScale(2000.00f); return; } old_timeScale(value); }
Just usehow do i use the offset? as a pointer or as the actual mshook
HOOK_LIB("lib", "offset", get_timeScale, old_timeSclae);
Sorry idk how to make threads thereThis should be in the modding questions and discussios