I'm making a weapon that requires creating an AIPlayer and having that AIPlayer attack players. This isn't necessarily the hardest thing in the world, I've written some AI code that does the job it's supposed to, but obviously it would be more efficient to just re-use Bot_Hole functionality because most people already have Bot_Hole installed and not to mention that the AI for Bot_Hole would probably be much better than whatever arbitrary code that I produce.
The problem is that Bot_Hole has so many checks and information dependent on the existence of a hole brick that it's becoming borderline impossible to re-use Bot_Hole functionality. I'm willing to copy Bot_Hole functions and remove these checks and try to write in arbitrary information where it's missing. Has anyone actually done this successfully before, or would know how to pull it off/what to look for? Any insight on this would be appreciated.