Set the Wave to use the "cockpit" model - which I'm adding as a mod currently.
Have it try to set the cockpit when a ship is initialised rather than on construction so that it works when the ship is changed by buying/selling or through scripts.
Fix a bunch of line endings.