npc gun shots are not very precise even if you dont move it can be changed so the npc is only aiming at the middle of the ship or that the npc does calculate where the ship is moving to the range of the weapons can be changed in the weapons_equip.ini