Implications of the solar flare gamma-ray limb-brightening observations for particle acceleration and the flare magnetic environment. II - Numerical results for a class of loop models