I haven't figured out yet how to stop cops from crouchwalking with lua like I wanted to so far, but after digging around I did figure out how to make them use smoke nades and flashbangs before sending their next group right in front of someone spawncamping their spawnpoint, lol (which low key was something I always wanted to make them do cause it always made more sense to me).
Credit to Hoppip's Streamlined Heisting for the base of the "on_enemy_unregistered" hook in groupaistatebase.lua I used to make this.