This week has been frustrating.
I have put in the cockpit, but it's not going smoothly.
I added the cockpit him and all it's resources and it displayed in the wrong place. So after a lot of digging around in my code, I went back to il2modder and loaded in the F4. Marked the location of the cockpit. Then loaded in the cockpit.
It was in the wrong place ( and rotated slightly out of plane). Not my code. I threw a few fucks into the air and added a cockpit position variable to the game, worked out where it should be and set the variable.
Now I had the problem that the aircraft mesh was being drawn as well as the cockpit. So I went back to il2modder and worked out which bits of the aircraft need to be hidden when in the cockpit and added support for that.
Tested that and the correct parts of the plane disappear nicely, along with the cockpit..... WTF!
Was trying to fix that when some thoughtless woman brought her two young children onto a commuter train and let them run riot.
Why do they do it?
It's more expensive to use the commuter trains, it's more crowded on a commuter train, they have all day to inflict there badly behaved brats on the world, why do they do it in my coding time?
Luckily I didn't have a gun.