The Rifle is primarily used for defense against raiders, but can also be used for removing indoor threats. It is also required for a military event where the player is asked to dispose of it. The Rifle does not require the ammunition to work. As of the DLC update, it makes a reloading when clicked on and if the player brings it in an expedition, the character that goes in a expedition will have less chance to be captured by raiders.
Events involving the rifle EditRaiders! (Requirements: Rifle, Axe, Poison)
Summary: Raiders come to the shelter and order the family to surrender. The rifle can be used to hold off the raiders without trouble. Using the Rifle will give the player an Axe if he/she doesn't already have one, much like how using the Axe gives the player a Rifle (needs confirmation).
Military gun event (Requirements: Rifle)
Summary: The military comes onto the radio and asks all current survivors to dispose of their firearms. Using the Rifle will increase the chance to get the military rescue ending..
Summary: The family is about to go outside into the wasteland when a growling is heard in the shadows. Using the Rifle scares away/takes down Pancake and he is never mentioned again.
Whenever there are rats, bunny-beasts or roaches in the shelter, using the rifle will successfully take them down but there's a chance that the rifle will break if the player chooses to use it.
Messy Shelter (Requirements: Luck)
In this DLC event, if there's no rifle, there may be one stocked in the fallout shelter.