This site reminds me of https://noclip.website/ which lets you explore the maps of other games in 3D.
Edit: Apparently every dynamic enemy on the map has a hand coded state machine https://github.com/magcius/noclip.website/blob/19f83f77c3e77...
https://github.com/magcius/noclip.website/tree/master/src/So...
Same goes for every other game.