This is perfect, just what I was looking for!
Unfortunately I'm having a problem getting it to work. As soon as I enter the custom code into the config.cpp, my server is not able to run my mission. It's stuck on "Setting Up" and "Creating" without actually playing it. I've been looking at the rtp logs but I can't find anything out of the norm except for this suspicious looking thing:
"19:50:54 [XEH]: One or more children of class CAManBase do not support Extended Event Handlers. Fall back to loop."
Not sure if it's even related but that's all I could see.
Is this a known issue, or am I being an idiot?