This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
static float (*Player_getArmorValue_real)();
float Player_getArmorValue_hook() {
if (god_mode==1) return 20.0f;
return 0.0f
}
That code works perfectly, but vanilla armor wont work.
static float (*Player_getArmorValue_real)();
float Player_getArmorValue_hook() {
if (god_mode==1) return 20.0f;
return Player_getArmorValue_real();
}
That code crashes on return... Whats i going wrong?
(Sorry for my bad english)