If there are characters, action or dialogue that the DOD don’t approve of then the film-maker has to make changes to accommodate the military’s demands. If they refuse then the Pentagon packs up its toys and goes home. To obtain full cooperation the producers have to sign contracts — Production Assistance Agreements — which lock them into using a military-approved version of the script.
This can lead to arguments when actors and directors ad lib or improvise outside of this approved screenplay.
Неплохо, да? Не зря русские в фильмах с участием военных такие неприятные.