Cobras played a significant role in the USMC military invasion of the unnamed Middle Eastern country in Call of Duty 4: Modern Warfare. The first sighting is in The Bog where Lt. Vasquez
calls support from two Cobras to attack a building full of enemies. The most significant role is in "Shock and Awe" where they fire at infantry and armor. And the last sighting in Call of Duty 4: Modern Warfare is also in "Shock and Awe" when the nuke goes off.
When a helicopter is called in during a multiplayer session, the Marines and SAS will get Cobras. OpFor and Spetsnaz will get the Mi-24 "Hind" helicopter.
The AH-1 Cobra is seen in the artwork of the Battle of Berlin, attacking Russian tanks. A Cobra is also seen being destroyed by a SAM Turret firing on it in the Tango Down trailer. It was also seen in one of Yuri's flashbacks flying very fast through the area.
A Cobra can be seen at the end of the Special Ops mission Hit and Run.
The AH-1W Super Cobra was originally to be used in a single-player mission for Call of Duty 4: Modern Warfare known only as "Cobra Pilot". The player was to provide air support from the helicopter. The mission was cut from the final version of the game, due to its similarity to "Death from Above". The only proof that it ever existed are a file called "compass_map_pilotcobra.iwi" and a file that came with the mod tools called "cobrapilot.str".
Another file, "cobrapilot_controller_layout.iwi," shows that the player would've been able to use Sidewinder missiles, Hellfire missiles, unguided rockets, a 20mm chain gun and flares.
Had that level been put in the final version of the game it would be the first time in the Call of Duty series the player could pilot a helicopter. This wouldn't happen until 'Call of Duty: Black Ops.
There is also some console commands that could change the way Hellfire missiles act. However, even though they are technically present in the game, they come to no use as the "Cora Pilot" mission was cut.
In " The Bog", if the player uses the "noclip" cheat and flies up to the AH-1s, the enemies, still firing at at the player, will also unintentionally 'blow up' the Cobras in a silently large explosion, forcing the player to start over again.