I've start re-writing my quake mod from the ground up but I've ran into a problem. I made some code to randomize a location and spawn an enemy in that location, tested with the use of a button press for now. That part of it works perfectly, but the problem is, is when it is applied to the scrag/wizard.qc the game freezes for about 10 seconds then dumps me to the console.
For all walking monsters I've been calling walkmonster_start_go(); (that works great). Using that also works for the scrag, but it doesn't function as a flying monster.
So I attempt to use flymonster_start_go(); Which is no different to walkmonster apart that it contains 2 small difference (no droptofloor() and the additional self.flags = self.flags | FL_FLY;). But I get a crash.
Though I have isolated that self.flags = self.flags | FL_FLY; within flymonster_start_go is causing the crash, I don't know why.