Team Colored Skins Problem

So I’ve been try to create the team colored skins for a model in TF2. Since I can’t use itemtest since it’s a non hat, I’ve been having to create the .qc manually. I’ve been running into a problem with the skins though. They show up as existing when the model is opened int HLMV but the colors won’t switch in HLMV or TF2. Here are some examples:

And a copy of my .qc:

I’ve been trying to get this to work for days no with no luck. Any suggestions would be appreciated.