Detective Lieutenant John McClane's (Bruce Willis) main sidearm throughout the film is a SIG-Sauer P220R (nowadays, this model is simply known as the standard P220). During the confrontation with Mai Linh (Maggie Q) in the power plant, she takes the P220 and holds it on Matthew Farrell (Justin Long). After McClane hits her with an SUV, she loses the gun and it is never seen again; McClane later takes a Beretta Px4 Storm from Russo (Yorgo Constantine), which becomes his weapon for the rest of the movie.
Beretta Px4 Storm
The terrorist Russo (Yorgo Constantine) in the film is seen carrying a Beretta Px4 Storm in several scenes, both with and without a sound suppressor. After killing him, John McClane (Bruce Willis) takes it and uses it in the second half of the film. During the final confrontation with Thomas Gabriel (Timothy Olyphant), McClane drops the pistol after being shot by Emerson (Edoardo Costa), and it is then used by Matthew Farrell (Justin Long) to kill Emerson (Edoardo Costa).
Beretta 92FS
One of the terrorists is seen using a Beretta 92FS to gun down the hackers in the semi-truck, including Casper (Andrew Friedman). An interesting note, the particular Beretta used in the film was the same prop gun used by Bruce Willis in Die Hard 2 and Die Hard with a Vengeance. Call it a "cameo" role, if you will. This is also the first film in the Die Hard series in which McClaine does not use one of these pistols as his own sidearm.
Beretta 92SB
A patrolman in Washington D.C. is seen briefly holding a Beretta 92SB, noted by its rounded trigger guard and ambidextrous decocking safety.
Thomas Gabriel (Timothy Olyphant) uses a stainless steel Jericho 941 as his sidearm, which he holds on Lucy McClane (Mary Elizabeth Winstead) in the final confrontation and uses to shoot Matthew Farrell (Justin Long) in the leg. Later, he sticks the muzzle of the Jericho into John McClane's (Bruce Willis) gunshot wound, so McClane simply forces him to pull the trigger, causing him to shoot through his pre-existing wound and into Gabriel.
Glock 22
FBI agents, including Director Bowman (Cliff Curtis) and some of the Washington D.C. patrolmen are seen using 3rd Generation Glock 22 pistols. They are noted as such by their muzzle diameters and by the fact the FBI actually carries Glock 22s in real life. John McClane (Bruce Willis) at one point takes a Glock 22 off of one of a terrorist disguised as an FBI agent and uses it to kill him.
Heckler & Koch P2000SK
Mai Lihn (Maggie Q) uses a suppressed Heckler & Koch P2000SK when she and some of the terrorists infiltrate the power plant.
Heckler & Koch USP Tactical
During the scene at the power plant, McClane (Bruce Willis) runs into a terrorist who is armed with a Heckler & Koch USP Tactical fitted with a KAC suppressor. McClane fires his SIG-Sauer P220R and the terrorist fires the USP Tactical simultaneously over each other's heads before knocking each other's guns away. McClane eventually gets a Glock 22 out of the terrorist's holster and uses it to kill him.
SIG-Sauer P226R
One of the terrorists at the power plant is seen using a SIG-Sauer P226R fitted with a suppressor. When the terrorist is shoved into the elevator shaft by Matthew Farrell (Justin Long), his gun falls into the SUV lodged in the shaft. Mai Lihn (Maggie Q) tries to use the gun to kill John McClane (Bruce Willis), but the car falls to the bottom of the shaft before she can fire off a shot.
Many of the terrorists are seen using Heckler & Koch UMP-45s throughout the film. They are all fitted with C-More red-dot sights, Surefire M900A vertical grip/flashlight combinations, and flash hiders. McClane (Bruce Willis) commandeers one after the shootout at Matthew Farrell's (Justin Long) apartment, but never uses it.
Heckler & Koch MP5A2 Navy
A few of the FBI agents in Washington D.C. are seen carring Heckler & Koch MP5A2 Navy submachine guns.
Emerson (Edoardo Costa) uses a Heckler & Koch MP7A1 to wound John McClane (Bruce Willis) moments before the rescue of his daughter Lucy (Mary Elizabeth Winstead) during the final confrontation. Later, Lucy knocks the MP7A1 out of Emerson's hands and tries to kick it to McClane, but Thomas Gabriel (Timothy Olyphant) intercepts the weapon before it reaches McClane.
Rifles
Heckler & Koch G36C
Another weapon used by the terrorists are Heckler & Koch G36Cs. Like the UMPs, they have C-More sights and SureFire tactical flashlights mounted on them.
M4A1 Carbine
M4A1 Carbines are used by the FBI agents being fitted with Rear BUIS, an M68 Aimpoint Red Dot Sight, AN/PEQ-2 lasers, a Vertical Fore Grip, and a TLR-1 weapon light. The security guards at the Woodlawn facility have the same setup except that they have a Surefire M900A light/fore grip instead.
Mark 12 Mod 0 SPR
The rifle used by Rand (Cyril Raffaelli), first in the shootout at Matt Farell's (Justin Long) apartment, and later during chase scene in Washington D.C., is the Mark 12 Mod 0 SPR (Special Purpose Rifle). This is a little-known AR-15 derivative developed by Crane and is used by U.S. SOCOM personnel in Iraq, Afghanistan, and other hot-spots globally. The Mod 0 uses a PRI carbon fiber handguard where the Mod 1 uses a Knight Armament free-floating aluminum handguard. The weapons in the film are fitted with a Leupold Mark 4 CQ/T Rifle Scope, suppressors, brass catchers, Surefire M900 weaponlight foregrips, as well as AN/PEQ-2 IR designators and are fired on automatic (which suggests that the terrorists simply took the upper receivers/barrels and slapped them on full-auto lowers).
M16A2
Nation Guardsmen are seen with M16A2s slung over their back while in Washington D.C. They appear to be resin props.
SIG SG-552
A terrorist is briefly seen handling a pair of SIG SG-552 rifles when Gabriel's (Timothy Olyphant) men load up.
Heavy Weapons
GAU-22/A Gatling 25mm
At one point in the film, John McClane (Bruce Willis) is forced to face a Lockheed Martin F-35B jet (noted from the F-35A model by its short takeoff and vertical landing (STOVL) system similar to a Harrier jet). This jet is erroneously outfitted with a pair of GAU-22/A Gatling 25mm guns (a four-barrel version of the older GAU-12/U) under the fuselage when the actual F-35B is only outfitted with a single external gunpod; it's hard to find information on where this is mounted, so it's possible the filmmakers simply assumed the F-35 used twin external pods like some versions of the Harrier. The guns devastate the semi-truck McClane is driving but the pilot recklessly hovers the craft around a demolished cluster of overpasses and eventually crashes when debris falls in the engine.