#viewmodel script
1 messages · Page 1 of 1 (latest)
*also why is my
viewmodel resetting every
time i switch classes*
You'll need to bind those keys to the commands that change fov. I could just link you to a webpage explaining all of scripting, but if you know exactly what you want the keys to do, I could whip something up.
Not sure about this. Could you .zip your cfg folder and send it here?
if you could help that would be great, id want one of the keys to move my gun further away from the screen “increasing more each time you press it until it resets prty much”. one that just removes the viewmodel entirely. and if possible one that moves the viewmodel more upwards or down. if you’re able to cook that up would be swagger, but if not send me the script explaining thingy and ill try to do it 
seemed to have fixed itself after a couple of games somehow haha
bind <key> "incrementvar viewmodel_fov <min> <max> <increment>"
(min and max should be between 0 and 180, increment i'd pick something like 5 or 10)
bindToggle <key> r_drawviewmodel 0 1
I'm not sure it's possible to move it "more up or down" using scripting. But this'll swap between minimized and normal viewmodels:
bindToggle <key> tf_use_min_viewmodels 0 1
@civic pumice
Here's the link to the key names: https://wiki.teamfortress.com/wiki/Scripting#List_of_key_names
thank youuu