Here is the tech
Q Menu
Search Attachment name
Right |Click the Attachment in the spawn menu
Copy to clip board
EXAMPLE acwatt_mifl_fas2_m24_hg_82
It will say what gun it goes for somewhere in the Item String In the Example Case its the M24 (Remington m24 sws)
Hope This Helps