Following the adoption of the M16 rifle , carbine variants were also adopted for close quarters operations .
It was based on the M16 rifle .