I also think that the rifle can “set the frame” for the character or scenario.
E.g. that the character is the kind of person who owns guns.
It does not go off or get used, but the viewer will use that as input to make a judgement about the character.