-snip-
AI_[anything (i remember these being insanely glitchy and overused but that's just personal bias)
I'm pretty sure it's hatmod because I did trace(1); and it returned hatmod loops gone crazy. But I don't want to deactivate it because im using the hats for my city. Anyway to get rid of the loop but keep the hat event?
Do you have bot events? If you do, then delete them and check to see if it helped. This happened to me and deleting bot events fixed it.
What settings is your shadows set to?