With Game Mode, you’ll have to copy most of the existing functions (see screenshot below) + Event Graph over to your new Game Mode. Apart from that, you’ll have to do a blueprint search to find all instances where these functions are being called from other classes, and then replace that with a call to your new game mode functions.
That should be enough to get the AI working on a different project. But let me know if you run into any issues.