back in the day i used to use a cfg that when you changed class and spawned the viewmodels would be on till you press a key and then they would disappear for the rest of the game till you change class again
how do i achieve that?
i got this cfg from donovin that makes that but it still turns the viewmodels on after changing weapon until you press another key and then they disappear again and i just want them on for a second after respawning
i took a look at the cfg and couldnt find anything that makes that
can anyone help or point me in the right direction ?
https://www.mediafire.com/file/h9fl74kirde7dyz/11.28.22.rar/file%E2%80%9D
back in the day i used to use a cfg that when you changed class and spawned the viewmodels would be on till you press a key and then they would disappear for the rest of the game till you change class again
how do i achieve that?
i got this cfg from donovin that makes that but it still turns the viewmodels on after changing weapon until you press another key and then they disappear again and i just want them on for a second after respawning
i took a look at the cfg and couldnt find anything that makes that
can anyone help or point me in the right direction ?
https://www.mediafire.com/file/h9fl74kirde7dyz/11.28.22.rar/file%E2%80%9D
If you're the type of person that likes hidden viewmodels without parameters I'd recommend just using a toggle so you only have to use one key to turn it on and off again like a flip switch.
bind "KEY" "toggle r_drawviewmodel 0 1"
If you are still after the result as described in your original post, you will have to make use of class configs:
note: if you use mastercomfig, any config file that is automatically triggered by a condition such as autoexec or class configs will need to be put in the overrides folder which is located in the following directory: tf/cfg/overrides
I) make a cfg file called reset
II) Within the reset.cfg > put: r_drawviewmodel 1
III) make a cfg file for each class
IV) within each class config:
a) put: exec reset
b) next line(s): bind "KEY" "r_drawviewmodel 0"
Alternatively, "bind "KEY" "r_drawviewmodel 0"" can be placed in your autoexec, of course change KEY to whatever button you'd like to replace it with. You can check the TF2 Wiki for the aliases of viable keys. Hope that helps.
If you're the type of person that likes hidden viewmodels without parameters I'd recommend just using a toggle so you only have to use one key to turn it on and off again like a flip switch.
[i]bind "KEY" "toggle r_drawviewmodel 0 1"[/i]
If you are still after the result as described in your original post, you will have to make use of class configs:
[u]note:[/u] if you use mastercomfig, any config file that is automatically triggered by a condition such as autoexec or class configs will need to be put in the overrides folder which is located in the following directory: tf/cfg/overrides
I) make a cfg file called reset
II) Within the reset.cfg > put:[i] r_drawviewmodel 1 [/i]
III) make a cfg file for each class
IV) within each class config:
a) put: exec reset
b) next line(s): [i]bind "KEY" "r_drawviewmodel 0" [/i]
Alternatively, "[i]bind "KEY" "r_drawviewmodel 0"[/i]" can be placed in your autoexec, of course change KEY to whatever button you'd like to replace it with. You can check the TF2 Wiki for the[url=https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names] aliases of viable keys[/url]. Hope that helps.
will this work everytime I die and leave the spawn ?
or just when i change class ?
cant remember well but I think it worked everytime i died and respawned
will this work everytime I die and leave the spawn ?
or just when i change class ?
cant remember well but I think it worked everytime i died and respawned
mousiopewill this work everytime I die and leave the spawn ?
or just when i change class ?
cant remember well but I think it worked everytime i died and respawned
Class configs only get executed when you successfully change class. Respawning or queuing a class change while having death on class switch outside of spawn disabled does not trigger it.
[quote=mousiope]will this work everytime I die and leave the spawn ?
or just when i change class ?
cant remember well but I think it worked everytime i died and respawned[/quote]
Class configs only get executed when you successfully change class. Respawning or queuing a class change while having death on class switch outside of spawn disabled does not trigger it.