the hud system acts upon an entirley different hook, hud.add can substitute addHook for this, but you'll never be able to get rid of the hook through other code.
instead, have the code try to make a variable and set it to something in the target, and in the hud hook, if player.mo has that, then...