Just when I thought compmod was almost done... today I 'accidently' figured out how to make global scripts work. So for example, now I can attach an event handler to the companion which detects when they are low on health, too far from the player, maybe get into the car with the player, etc... All sorts of possibilities... I will have to experiment and see what works. If I had the patience, I could write my own custom AI... but I am not that patient.
Anyway, I am making a document with most of the things I have learned over the last 8 weeks, which I hope to post a link to soon. Mostly my "Developer Notes" cover tricks and work arounds I have already posted to these forums, but it also covers ID Tech 5 scripting which I haven't seen much discussion of anywhere. Might be useful for some people.