Hi all,
I made a bool hook for a player's reaction, which is simply true or false, but couldn't get it to work unless it's written like this:
But the problem is that it is reversed. Meaning that if I toggle the swtich ON it gets deactivated and if I toggle the switch OFF it gets activated. Any other way I write it, for example: NoReaction = false; and return true; or any other combination of true and false then it doesn't work at all. Why is it doing the opposite of what it's supposed to? Many thanks to any help!
I made a bool hook for a player's reaction, which is simply true or false, but couldn't get it to work unless it's written like this:
C++:
bool feature1, feature2, featureHookToggle, NoReaction = true;
int sliderValue = 1, level = 0;
void *instanceBtn;
bool (*old_noreaction)(void *instance);
bool noreaction(void *instance) {
if (instance != NULL && NoReaction) {
return true;
}
return old_noreaction(instance);
}