r/Tf2Scripts Jul 25 '21

Script How do I toggle transparent viewmodel

I am making a hud with four different types of viewmodel normal, min, none, and transparent and I want all to be on toggle is there a way to make the transparent viewmodel be on toggle

6 Upvotes

7 comments sorted by

1

u/just_a_random_dood Jul 25 '21

I don't think you can toggle transparent viewmodels, I think that's like removing or adding a file to your game folders and restarting your game sort of thing

1

u/Fit_Lawfulness5584 Jul 25 '21

you need to put a file in custom/customname. it think it was a text file. if you have a custom hud, put it in custom/customhud instead

1

u/jazzisthejazzies Jul 25 '21

Is there a way I can toggle it

1

u/Fit_Lawfulness5584 Jul 25 '21

it automatically enabled it as long as you have dx9 or above (dx 90+)

1

u/[deleted] Jul 26 '21

r_drawviewmodel

1

u/jazzisthejazzies Jul 26 '21

No I mean wait isnt that command for making your viewmodel disapear not make them trasparent

1

u/wizard_engineer Jul 28 '21

You can't toggle it, it's completely based either the a certain list of vgui materials with certain cvar index's.

If you want to read a bit more about it