I should state that with ranged weapons you HAVE to look at where you are firing.

The game has a bad tendency to tell you that you have a shot when you don't...

If you shoot through an ally body, for example, it will miss. If you hit an object... you will miss.

Even IF it tells you that you can hit.