Modifications to automatics

- A lot of redundant and spaghetti code, but it's the only way I managed
to get it working within a reasonable timeframe
- Should fix #1214
Merge pull request #1254 from dylanstrategie/Gunz

Modifications to automatics