The paper studies a codimension-4 resonant homoclinic bifurcation with one orbit flip and two inclination flips, where the resonance takes place in the tangent direction of homoclinic orbit. Local active coordinate system is introduced to construct the Poincaré returning map, and also the associated successor functions. We prove the existence of the saddle-node bifurcation, the perioddoubling bifurcation and the homoclinic-doubling bifurcation, and also locate the corresponding 1-periodic orbit, 1-homoclinic orbit, double periodic orbits and some 2 n -homoclinic orbits.