Upvote Upvoted 3 Downvote Downvoted
viewmodel script
posted in Customization
1
#1
0 Frags +

hey there, i started playing competitive tf2 few months ago, and i dont ususually use viewmodel, but i have seen people have viewmodel on melee, is there like a script or something to only hide the primary and secondary wep? plz tell me below ty

hey there, i started playing competitive tf2 few months ago, and i dont ususually use viewmodel, but i have seen people have viewmodel on melee, is there like a script or something to only hide the primary and secondary wep? plz tell me below ty
2
#2
3 Frags +

bind "MWHEELUP" "slot1; viewmodel_fov 0"
bind "MWHEELDOWN" "slot2; viewmodel_fov 0"
bind "q" "slot3; viewmodel_fov 90"

replace the key binding with whatever you use

bind "MWHEELUP" "slot1; viewmodel_fov 0"
bind "MWHEELDOWN" "slot2; viewmodel_fov 0"
bind "q" "slot3; viewmodel_fov 90"

replace the key binding with whatever you use
3
#3
1 Frags +

also, bindtoggle <key> r_drawviewmodel will give you a key that toggles viewmodels on and off if you want them for different classes.

I might have fucked up there a bit so someone please correct me I set this on my personal config like a year ago and havent looked back since.

also, bindtoggle <key> r_drawviewmodel will give you a key that toggles viewmodels on and off if you want them for different classes.

I might have fucked up there a bit so someone please correct me I set this on my personal config like a year ago and havent looked back since.
4
#4
1 Frags +
jake_also, bindtoggle <key> r_drawviewmodel will give you a key that toggles viewmodels on and off if you want them for different classes.

I might have fucked up there a bit so someone please correct me I set this on my personal config like a year ago and havent looked back since.

I normally see: bind [key] "toggle r_drawviewmodel 0 1"

[quote=jake_]also, bindtoggle <key> r_drawviewmodel will give you a key that toggles viewmodels on and off if you want them for different classes.

I might have fucked up there a bit so someone please correct me I set this on my personal config like a year ago and havent looked back since.[/quote]

I normally see: bind [key] "toggle r_drawviewmodel 0 1"
5
#5
2 Frags +

same thing, different ways to get there

same thing, different ways to get there
6
#6
0 Frags +

What about quickswitching? If i have melee out (viewmodel on) and i quickswitch to primary (viewmodel off) the viewmodel stays on untill i press 1 (which i have bound to slot 1)

What about quickswitching? If i have melee out (viewmodel on) and i quickswitch to primary (viewmodel off) the viewmodel stays on untill i press 1 (which i have bound to slot 1)
7
#7
6 Frags +
DamnEasyWhat about quickswitching? If i have melee out (viewmodel on) and i quickswitch to primary (viewmodel off) the viewmodel stays on untill i press 1 (which i have bound to slot 1)

https://code.google.com/p/broesels-crosshair-switcher/

Broesel's crosshair switcher works with lastinv.

[quote=DamnEasy]What about quickswitching? If i have melee out (viewmodel on) and i quickswitch to primary (viewmodel off) the viewmodel stays on untill i press 1 (which i have bound to slot 1)[/quote]

https://code.google.com/p/broesels-crosshair-switcher/

Broesel's crosshair switcher works with lastinv.
8
#8
5 Frags +
alias wep1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep-3; alias lastwep wep1; keybind1"
alias wep2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep-1; alias lastwep wep2; keybind2"
alias wep3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep-2; alias lastwep wep3; keybind3"
alias wep-1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep2; alias lastwep wep-1; keybind-1"
alias wep-2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep3; alias lastwep wep-2; keybind-2"
alias wep-3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep1; alias lastwep wep-3; keybind-3"
alias keybind1 "alias key1 wep1; alias key2 mousedown; alias key3 mouseup"
alias keybind2 "alias key1 mouseup; alias key2 wep2; alias key3 mousedown"
alias keybind3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep3"
alias keybind-1 "alias key1 wep-1; alias key2 mousedown; alias key3 mouseup"
alias keybind-2 "alias key1 mouseup; alias key2 wep-2; alias key3 mousedown"
alias keybind-3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep-3"
alias mouseup "wep-3"
alias mousedown "wep2"
alias quickswap "lastwep"
alias lastwep "wep2"
alias key1 "wep1"
alias key2 "mousedown"
alias key3 "mouseup"
alias key4 "slot4; extrakey"
alias key5 "slot5; extrakey"
alias extrakey "alias mouseup wep-3; alias mousedown wep1; alias quickswap lastwep; alias lastwep wep3"

alias wep1com "r_drawviewmodel 0"
alias wep2com "r_drawviewmodel 0"
alias wep3com "r_drawviewmodel 1"

bind Q quickswap
bind 1 key1
bind 2 key2
bind 3 key3
bind 4 key4
bind 5 key5

no idea who made this, but i have used it for a long time and it has always worked.
change these values to either 1 or 0. 0 = viewmodel off and 1 = viewmodel on

alias wep1com "r_drawviewmodel 0"
alias wep2com "r_drawviewmodel 0"
alias wep3com "r_drawviewmodel 1"

p.s this works with both quickswap and normal shit

[quote]alias wep1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep-3; alias lastwep wep1; keybind1"
alias wep2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep-1; alias lastwep wep2; keybind2"
alias wep3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep-2; alias lastwep wep3; keybind3"
alias wep-1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep2; alias lastwep wep-1; keybind-1"
alias wep-2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep3; alias lastwep wep-2; keybind-2"
alias wep-3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep1; alias lastwep wep-3; keybind-3"
alias keybind1 "alias key1 wep1; alias key2 mousedown; alias key3 mouseup"
alias keybind2 "alias key1 mouseup; alias key2 wep2; alias key3 mousedown"
alias keybind3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep3"
alias keybind-1 "alias key1 wep-1; alias key2 mousedown; alias key3 mouseup"
alias keybind-2 "alias key1 mouseup; alias key2 wep-2; alias key3 mousedown"
alias keybind-3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep-3"
alias mouseup "wep-3"
alias mousedown "wep2"
alias quickswap "lastwep"
alias lastwep "wep2"
alias key1 "wep1"
alias key2 "mousedown"
alias key3 "mouseup"
alias key4 "slot4; extrakey"
alias key5 "slot5; extrakey"
alias extrakey "alias mouseup wep-3; alias mousedown wep1; alias quickswap lastwep; alias lastwep wep3"

alias wep1com "r_drawviewmodel 0"
alias wep2com "r_drawviewmodel 0"
alias wep3com "r_drawviewmodel 1"

bind Q quickswap
bind 1 key1
bind 2 key2
bind 3 key3
bind 4 key4
bind 5 key5[/quote]




no idea who made this, but i have used it for a long time and it has always worked.
change these values to either 1 or 0. 0 = viewmodel off and 1 = viewmodel on [quote]alias wep1com "r_drawviewmodel 0"
alias wep2com "r_drawviewmodel 0"
alias wep3com "r_drawviewmodel 1"[/quote]
p.s this works with both quickswap and normal shit
9
#9
1 Frags +

You could also use http://clugu.com/tf2mate/

It has a bunch of options for configs.

You could also use http://clugu.com/tf2mate/

It has a bunch of options for configs.
10
#10
0 Frags +

If you frequently change which slots are active, try this:

bind 1 "slot1; primary; alias currenttog primarytog" 
bind 2 "slot2; secondary; alias currenttog secondarytog"
bind 3 "slot3; melee; alias currenttog meleetog"
bind t currenttog
alias currenttog primarytog
alias primary primaryvis
alias primaryvis "r_drawviewmodel 1; viewmodel_fov 90"
alias primaryhid "r_drawviewmodel 0; viewmodel_fov 0"
alias primarytog primarytoghid
alias primarytogvis "primaryvis; alias primary primaryvis; alias primarytog primarytoghid"
alias primarytoghid "primaryhid; alias primary primaryhid; alias primarytog primarytogvis"
alias secondary secondaryvis
alias secondaryvis "r_drawviewmodel 1; viewmodel_fov 90"
alias secondaryhid "r_drawviewmodel 0; viewmodel_fov 0"
alias secondarytog secondarytoghid
alias secondarytogvis "secondaryvis; alias secondary secondaryvis; alias secondarytog secondarytoghid"
alias secondarytoghid "secondaryhid; alias secondary secondaryhid; alias secondarytog secondarytogvis"
alias melee meleevis
alias meleevis "r_drawviewmodel 1; viewmodel_fov 90"
alias meleehid "r_drawviewmodel 0; viewmodel_fov 0"
alias meleetog meleetoghid
alias meleetogvis "meleevis; alias melee meleevis; alias meleetog meleetoghid"
alias meleetoghid "meleehid; alias melee meleehid; alias meleetog meleetogvis"
If you frequently change which slots are active, try this:
[code]bind 1 "slot1; primary; alias currenttog primarytog"
bind 2 "slot2; secondary; alias currenttog secondarytog"
bind 3 "slot3; melee; alias currenttog meleetog"
bind t currenttog
alias currenttog primarytog
alias primary primaryvis
alias primaryvis "r_drawviewmodel 1; viewmodel_fov 90"
alias primaryhid "r_drawviewmodel 0; viewmodel_fov 0"
alias primarytog primarytoghid
alias primarytogvis "primaryvis; alias primary primaryvis; alias primarytog primarytoghid"
alias primarytoghid "primaryhid; alias primary primaryhid; alias primarytog primarytogvis"
alias secondary secondaryvis
alias secondaryvis "r_drawviewmodel 1; viewmodel_fov 90"
alias secondaryhid "r_drawviewmodel 0; viewmodel_fov 0"
alias secondarytog secondarytoghid
alias secondarytogvis "secondaryvis; alias secondary secondaryvis; alias secondarytog secondarytoghid"
alias secondarytoghid "secondaryhid; alias secondary secondaryhid; alias secondarytog secondarytogvis"
alias melee meleevis
alias meleevis "r_drawviewmodel 1; viewmodel_fov 90"
alias meleehid "r_drawviewmodel 0; viewmodel_fov 0"
alias meleetog meleetoghid
alias meleetogvis "meleevis; alias melee meleevis; alias meleetog meleetoghid"
alias meleetoghid "meleehid; alias melee meleehid; alias meleetog meleetogvis"[/code]
11
#11
0 Frags +

This may sound extremely picky, but is there a script that allows you to toggle different viewmodel sets? For example, t is the toggle key, and by pressing it, your set switches from
slot1: hidden, slot2: visible, slot3: hidden, to becoming
slot1: visible, slot2: hidden, slot3: visible.

This may sound extremely picky, but is there a script that allows you to toggle different viewmodel sets? For example, t is the toggle key, and by pressing it, your set switches from
slot1: hidden, slot2: visible, slot3: hidden, to becoming
slot1: visible, slot2: hidden, slot3: visible.
12
#12
0 Frags +
MoistMelonsThis may sound extremely picky, but is there a script that allows you to toggle different viewmodel sets? For example, t is the toggle key, and by pressing it, your set switches from
slot1: hidden, slot2: visible, slot3: hidden, to becoming
slot1: visible, slot2: hidden, slot3: visible.

The script above switches whatever the current slot is.

[quote=MoistMelons]This may sound extremely picky, but is there a script that allows you to toggle different viewmodel sets? For example, t is the toggle key, and by pressing it, your set switches from
slot1: hidden, slot2: visible, slot3: hidden, to becoming
slot1: visible, slot2: hidden, slot3: visible.[/quote]
The script above switches whatever the current slot is.
13
#13
0 Frags +

Like, a script that binds "t" to a toggle, and it will toggle between

"slot1; bind q weapon2; r_drawviewmodel 0; viewmodel_fov 0"
"slot2; bind q weapon1; r_drawviewmodel 0; viewmodel_fov 0"
"slot3; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 80"

and

"slot1; bind q weapon2; r_drawviewmodel 1; viewmodel_fov 90"
"slot2; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 90"
"slot3; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 80"

so to get the second set of commands, "t" is to be pressed and to go back to the first one, "t" again.
I know nothing about scripting :(

Like, a script that binds "t" to a toggle, and it will toggle between

"slot1; bind q weapon2; r_drawviewmodel 0; viewmodel_fov 0"
"slot2; bind q weapon1; r_drawviewmodel 0; viewmodel_fov 0"
"slot3; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 80"

and

"slot1; bind q weapon2; r_drawviewmodel 1; viewmodel_fov 90"
"slot2; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 90"
"slot3; bind q weapon1; r_drawviewmodel 1; viewmodel_fov 80"

so to get the second set of commands, "t" is to be pressed and to go back to the first one, "t" again.
I know nothing about scripting :(
14
#14
-1 Frags +

Bind x "viewmodel_fov 0"
Bind c "viewmodel_fov 100"
Iunno i use it and it works

Bind x "viewmodel_fov 0"
Bind c "viewmodel_fov 100"
Iunno i use it and it works
15
#15
0 Frags +

#13
I made this quite some time ago, it broke for some reason that I was unable to identify so I haven't used it ever since, but it should theoretically still work.
Here pressing 9 on my numpad would switch between having viewmodels on/off for specific weapons.

// Resetting all configs
alias "resetcfg" "unbind "shift";bind "mouse1" "+attack";bind "mouse2" "+attack2";bind "mwheelup" "invprev";bind "mwheeldown" "invnext";unbind "mouse4";unbind "mouse5;bind "C" "voice_menu_3";unbind "V";-forward"

resetcfg

// Viewmodel aliases
alias view "viewmodel_fov 110; r_drawviewmodel 0"
bind "KP_PGUP" toggle
alias toggle "enable"

alias enable "alias toggle disable; r_drawviewmodel 0;alias view "viewmodel_fov 110;r_drawviewmodel 0""
alias disable "alias toggle enable; r_drawviewmodel 1;alias view "viewmodel_fov 110;r_drawviewmodel 1""

alias off "viewmodel_fov 110; r_drawviewmodel 0"
alias on "viewmodel_fov 110; r_drawviewmodel 1"

// Scattergun
alias "+scatter" "slot1;+attack;view"
alias "-scatter" "-attack"

// Pistol
alias "+pistol" "slot2;+attack;view"
alias "-pistol" "-attack"

// Bat
alias "+bat" "slot3;+attack;on"
alias "-bat" "-attack"

// BINDINGS
bind "mouse1" "+scatter"
bind "mouse2" "+pistol"
bind "mouse4" "+bat"

#13
I made this quite some time ago, it broke for some reason that I was unable to identify so I haven't used it ever since, but it should theoretically still work.
Here pressing 9 on my numpad would switch between having viewmodels on/off for specific weapons.

// Resetting all configs
alias "resetcfg" "unbind "shift";bind "mouse1" "+attack";bind "mouse2" "+attack2";bind "mwheelup" "invprev";bind "mwheeldown" "invnext";unbind "mouse4";unbind "mouse5;bind "C" "voice_menu_3";unbind "V";-forward"

resetcfg

// Viewmodel aliases
alias view "viewmodel_fov 110; r_drawviewmodel 0"
bind "KP_PGUP" toggle
alias toggle "enable"

alias enable "alias toggle disable; r_drawviewmodel 0;alias view "viewmodel_fov 110;r_drawviewmodel 0""
alias disable "alias toggle enable; r_drawviewmodel 1;alias view "viewmodel_fov 110;r_drawviewmodel 1""

alias off "viewmodel_fov 110; r_drawviewmodel 0"
alias on "viewmodel_fov 110; r_drawviewmodel 1"

// Scattergun
alias "+scatter" "slot1;+attack;view"
alias "-scatter" "-attack"

// Pistol
alias "+pistol" "slot2;+attack;view"
alias "-pistol" "-attack"

// Bat
alias "+bat" "slot3;+attack;on"
alias "-bat" "-attack"

// BINDINGS
bind "mouse1" "+scatter"
bind "mouse2" "+pistol"
bind "mouse4" "+bat"
16
#16
0 Frags +

bind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe

bind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe
17
#17
0 Frags +

I did bind r "toggle r_drawviewmodel" and put autoreload on.

I did bind r "toggle r_drawviewmodel" and put autoreload on.
18
#18
-4 Frags +
forgetsbind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe

that doesn't work with scroll wheel or q, so it's not very practical.

[quote=forgets]bind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe[/quote]

that doesn't work with scroll wheel or q, so it's not very practical.
19
#19
-4 Frags +
Deathyforgetsbind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe

that doesn't work with scroll wheel or q, so it's not very practical.

Who actually uses either of those though?

[quote=Deathy][quote=forgets]bind 1 "slot1; r_drawviewmodel 0; viewmodel_fov 100"
bind 2 "slot2; r_drawviewmodel 0; viewmodel_fov 100"
bind 3 "slot3; r_drawviewmodel 1; viewmodel_fov 100"

this should work i believe[/quote]

that doesn't work with scroll wheel or q, so it's not very practical.[/quote]
Who actually uses either of those though?
20
#20
0 Frags +
mage24365Deathythat doesn't work with scroll wheel or q, so it's not very practical.Who actually uses either of those though?

QQ

[quote=mage24365][quote=Deathy]
that doesn't work with scroll wheel or q, so it's not very practical.[/quote]
Who actually uses either of those though?[/quote]
QQ
21
#21
0 Frags +

bind r "toggle r_drawviewmodel 1 0; toggle viewmodel_fov 90 0"

works perfect here

bind r "toggle r_drawviewmodel 1 0; toggle viewmodel_fov 90 0"

works perfect here
22
#22
-1 Frags +

BlackLightAttack made this script that also changes crosshairs

[url=https://www.youtube.com/watch?v=YUJyUqUa7A8]BlackLightAttack made this script that also changes crosshairs[/url]
Please sign in through STEAM to post a comment.