Can you Masked Outline Material? [Toon Shading]

I make Outline material that use vertex offset to make the second skeleton mesh draw outline
the problem is it draw the vertex and ignore the opacity masked of the main model
so there are wrong thick line on the blank masked
anyway to get the outline material had masked working on and still work as outline?