PaiCA neat idea but seems a little complicated / too much work to use in my opinion. Its much more convenient to use yttrium's competetive viewmodels. In there you can choose if you want to hide shotgun for soldiee but keep banners visible, as they use the same weapon slot. Or you can just use "bind "r" incrementvar r_drawviewmodel 0 1 1" f.ex to hide all viewmodels and turn them back on with 1 button.
Yeah, I didn't know what I was doing with this script and I made it like two years ago (btw it took it took so long to write out) when I had this thought. It's more of something that you would set at the start of a life and then just leave on.