Trying to make Toon Shader Material on UE4

I’m going to try implementing some of the ideas from this thread; in case anyone in this thread is interested, I posted an article in Rendering on a post-process outline (vary thickness with distance) and a hack to make facial shadows reddish instead of gray, here:

Note that my shader is acting on everything that does NOT use custom depth, same as Epic’s Stylized demo, instead of everything WITH custom depth, which seems to be the rule here. So invert it.