corrected heat hitbox function