I don't remember 100% but you'll need to look at the AI files for that setting as the ability to do it is part of the game mechanics, it's controlled through an entity/def setting (iirc) through a key/value pairing, the higher the number the more likely the AI is to take cover (or visa-versa). This is of course assuming that what you saw isn't a scripted animation, watch out for those.