It doesn't do anything
Apparently it's supposed to be like:
Safety's off - sentry hits everything in it's way to land a shot on it's target
In reality sentry still fires thru friendlies just fine in both modes
I went as far as trying to gun down marine zombies with their IDs on by turning off the safety and using manual mode(when it was still a thing) and failed