else if(f_item_distance<50) { // Secondary weapon. [....] } else { // Primary weapon. [....] } break;