The Sub-Machine Gun, also spelled as the Sub Machine Gun, is an object that appears in Shadow the Hedgehog. A G.U.N.-exclusive machine gun, it is a gun-type weapon usable to both enemies and the player.
The Sub-Machine Gun is a black gun with a red dot on the front sight. Like other weapons in the game, the Sub-Machine Gun is massive in comparison to Shadow.
In gameplay, the Sub-Machine Guns can only be found in certain Stages. They can be wielded by enemies aligned with GUN, such as Big Foot-type foes and Gun Beetles, who will use them against the player.
Sub-Machine Guns can be dropped by defeated enemies that wield them or released from breakable Containers. Touching them will make the playable character pick them up automatically and pressing // (whether on the ground or in mid-air) fires them. Holding down // makes them fire continuously shots as well. As a gun, the Sub-Machine Gun can shoot enemies from a distance (targets within range will be automatically targeted). By comparison to other weapons, the Sub-Machine Gun has a short range and low damage output. A Sub-Machine Gun has a total of twenty shots and once those run out, it becomes useless. However, it can be reloaded with another twenty shots by picking up another Sub-Machine Gun.
- The Sub-Machine Gun is modeled after the Heckler & Koch MP5, judging from the select fire markings and the overall design of the gun.
- When equipped by Shadow in the opening movie of Shadow the Hedgehog, the gun is somehow cocked akin to a pump-action firearm, which is not applicable to any factory original sub-machine gun ever made.
- When Shadow loads a magazine into the gun in the opening movie, it appears to use the controls of an AR-15 platform, which is incorrect for the MP5 and reminiscent of the SIG MPX, a gun similar to the MP5.