How about the pilot having an option in the loadout to carry an automatic rifle or a mortar instead of the gun.
He could carry the rifle but the caveat is that he has to land the plane intact and lose the ability to take up bombs, rockets, and extra guns loadouts.