What I have generally found is that when you try to make one piece of gear do two separate tasks, it does neither well.
I use a shooting mat and have a separate rifle case or I carry the rifle in an Eberlestock pack.
There are a ton of options for shooting mats some cheap, some good. Some are...