Your chance to hit with ranged weapons is determined by perception and not by dexterity.