No, I'm dont use Mshookfunction + hook_lib, i have used them individually.Delete that mshookfunc, your compiler confused what to use if u put both
No, speed this field offset, im use hook for field Offset.Firstly, the tester uses patching, which is different than hooking (what you are doing here). Have you tried patching them inside lgl menu to verify if those offsets work?
Secondly, your hooks are confusing. Is Speed a void function? In that case, you are returning a value which is wrong. Is it an update function? Is the field ever really used? Well no one knows because your code is not clear :)
No, speed this field offset, im use hook for field Offset.
// WeaponScr
[Address(RVA = "0x744594", Offset = "0x744594", VA = "0x744594")]
private void Update()
[FieldOffset(Offset = "0x18")]
public int ShootTime;
void (*old_Speed)(void *instance);
void Speed(void *instance) {
if(instance != NULL && <bool>){
*(int *) ((uint64_t) instance + 0x18) = 0;
}
old_speed(instance);
}
he uses just such ones, I checked this offset in the tester, and everything worked fine.C++:void (*old_Speed)(void *instance); void Speed(void *instance) { if(instance != NULL && <bool>){ *(int *) ((uint64_t) instance + 0x18) = 0; } old_speed(instance); }
Use this, if it still doesn't work, then find another field or method because the game does not use it
C++:void (*old_Speed)(void *instance); void Speed(void *instance) { if(instance != NULL && <bool>){ *(int *) ((uint64_t) instance + 0x18) = 0; } old_speed(instance); }
Use this, if it still doesn't work, then find another field or method because the game does not use it
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