Exclusive Details

A deputy opened fire on a man outside the WWE's training center in Orlando -- seriously injuring the guy ... who has a history of bizarre incidents at the WWE.

An Orange County Sheriff's deputy confronted Armando Montalvo at the WWE Performance Center on Monday afternoon. The situation reportedly turned violent, and that's when the deputy fired.

According to docs, obtained by TMZ, the wrestling org. got a restraining order against Montalvo earlier this month after a string of violent run-ins at the facility. Earlier this summer, the WWE says Montalvo spread his feces and urine on the building. He even posted video of himself mixing the human waste and reduced fat milk in a bucket.

Play video content YouTube.com

On multiple occasions ... he allegedly showed up in a wrestling outfit, banged on windows, and threatened to kick everyone's ass because they wouldn't hire him. One of the times he was swinging a large chain, and police had to subdue him at gunpoint.

Just 5 days ago, Montalvo posted a video of himself outside the building saying he was going to go ask for a job. He said, "What's the worst they can say?"

Montalvo had to have surgery after Monday's shooting.