Smart Rifle (5e Equipment)
From D&D Wiki
Martial Ranged Weapons
A smart rifle is a highly advanced selective-fire military rifle. In addition to mechanical improvements characteristic of a theoretical "advanced combat rifle" which has double the long-range hit probability of a modern assault rifle, it fires compact caseless ammunition and it utilizes a computerized AI targeting system, making hitting even a difficult target a snap. You gain the following benefits when attacking with a smart rifle:
In addition to combat utilities, a smart rifle incorporates sophisticated diagnostics which provide creatures with advantage on ability checks to maintain or repair it.