Gunner/Experimental Gunsmith

The experimental gunsmith is obsessed with creating the ultimate firearm, and is willing to take risks to work the kinks out of his design.
The experimental gunsmith is an archetype of the gunner class.
== Experimental Firearm (Ex) ==
At 1st level, an experimental gunsmith begins play with an experimental firearm. This acts as the gunner’s gunsmith ability, but the firearm the experimental gunsmith begins with has one innovation (see below). Further, the experimental gunsmith is treated as having the Gunsmithing feat, but only in regard to his beginning firearm (or the construction of a replacement firearm of the same design, if the original is lost). In addition, the experimental gunsmith uses his Intelligence modifier in place of his Wisdom modifier for any Gunner class feature that uses Wisdom. At 5th level and higher, the experimental gunsmith may upgrade his firearm beyond the trainee firearms he starts with.
This ability otherwise works like the standard gunner’s gunsmith and gunsmithing abilities and replaces those abilities.
== Innovations (Ex) ==
An experimental gunsmith starts play with one innovation he can make to his experimental firearms, selected from the list below. This innovation is a radical change to the typical design of a firearm, and comes with both additional benefits and noteworthy drawbacks. The experimental gunsmith can maintain only one experimental firearm modified with one or more innovations, as it requires constant adjustments and much of his time is spent maintaining the weapon. The experimental gunsmith can create other firearms using a single innovation he knows (or add one innovation to an existing firearm), though such weapons become unreliable over time. The misfire value of such weapons increases by 1 for each week after its creation, although the experimental gunsmith can return the misfire rate to normal by spending 1 day maintaining the weapon and spending 50 gil in raw materials. For the purposes of crafting such firearms, each innovation is treated as the masterwork weapon quality (with a value of 300 gil).
At 4th level, and every four levels after that (8th, 12th, 16th and 20th level), the experimental gunsmith learns one additional innovation from the list below. These represent constant and increasingly skilled tinkering with a single firearm in his possession, and when the experimental gunsmith gains an innovation, he may immediately apply it to his experimental firearm. Once an innovation has been selected, it cannot be changed.
Expanded Capacity: The experimental gunsmith increases his firearm’s capacity by one (generally by adding another barrel, depending on the weapon’s design). He also increases its weight by 50%. Because of the complexity of increasing its capacity, his weapon is more prone to misfire, and its misfire value increases by 1 (this is in addition to any misfire increase if the weapon is made with the Gunsmithing feat).
Expanded Chamber: The experimental gunsmith’s firearm has a much larger than normal chamber for black powder, allowing him to use 2 doses of powder with each shot. The weapon grants a +1 circumstance bonus on damage rolls. However, when the weapon misfires, it causes a flashburn. This is the same as the weapon exploding (dealing damage from a corner of the experimental gunsmith’s square), except the weapon is not automatically destroyed. If a broken weapon misfires, it is destroyed as normal.
Explosive Ammunition: As a move action, the experimental gunsmith may charge his next attack with explosive energy. If the attack hits, it does its normal damage and additional damage equal to its minimum possible damage to all adjacent creatures and objects. A successful Reflex save (DC 10 + half of the gunner’s level + his Intelligence modifier) reduces this damage to half.
Grapple Launcher: The experimental gunsmith’s firearm includes a special set of rails that allows him to slide a grappling hook over the barrel and fire it as a full-round action. The grappling hook anchors into anything he successfully hits with an attack roll, and the DC of the Strength check required to pull the grappling hook loose is equal to his attack roll to lodge it in place. A Disable Device check can remove it with a +5 bonus on the check, and a creature struck by the hook can escape it with a combat maneuver check or Escape Artist check with a +5 bonus on the check. The firearm is powerful enough to fire a hook trailing up to 100 feet of rope, but throws off the balance of the experimental gunsmith’s firearm, reducing its range increment by 50%.
Proficiency Enhancer: The experimental gunsmith installs a device that allows his weapon to follow his mental commands, letting him strike his enemies more surely. Now, for attack rolls, the experimental gunsmith can use his Intelligence modifier in place of his Dexterity modifier for ranged weapons. This innovation can be selected up to two times. The second time, the experimental gunsmith can add his Intelligence modifier to the damage dealt by his experimental firearm.
Recoilless: The experimental gunsmith’s firearm includes a series of gears, springs, and pistons designed to reduce its recoil and thus improve accuracy. The range increment of the weapon increases by 10 feet. However, the system is fragile, and easily damaged. Anytime the weapon misfires, this system becomes broken and does not function until the experimental gunsmith spends 1 hour repairing it.
Vial Launcher: The experimental gunsmith adds a special tube onto his firearm that can hold 1 vial of alchemical material, such as alchemist’s fire, a tanglefoot bag, or a thunderstone. A special trigger allows him to channel the force of black powder into this tube to launch the vial as a ranged attack with half the range increment of his firearm. The experimental gunsmith can take this action in place of any single ranged attack, and may use the same attack bonus that he can apply to the firearm. If the alchemical substance has a save DC, it becomes 10 + half of the gunner’s level + his Intelligence modifier when he launches the vial from his firearm. This increase only applies to the initial saving throw. If additional saving throws are called for, they are resolved as normal. Reloading the tube is a time-consuming process and requires two full-round actions. If the weapon misfires while loaded with an alchemical substance, it detonates with the experimental gunsmith (and the firearm) as the target.
This ability replaces gun training.