A Hollywood caricature of martial arts might be useless. But my understanding of some martial arts is that they emphasize keeping a cool head, awareness of surroundings, deescalation and evasion over violent confrontation. Being even somewhat competent in those skills could prove valuable in an active shooter situation.
Exactly. The hardest part about martial arts in my opinion is the state of mind necessary to react to a situation appropriately.