Hey MBot,
As one of the programmers from Falcon 4.0: Allied Force I congratulate you. This stuff isn't easy, which is why nobody yet managed to beat or even match F4's dynamic campaign. The basic reason for that is the core of F4 is a database and the playable F16 is simply a client of the database. Many other titles place the flyable as the core (can you image selling to management, hey what our gamers want is a database! lol).
I don't have the DCS F-5, since I came here interested in the Spitfire so I can't try your code at this time. Maybe in the new year I'll spend some money and try it out, though in the meantime I will enjoy reading the scripts :)
Good job.