Karlsquell
Account Details
SteamID64 76561198006367534
SteamID3 [U:1:46101806]
SteamID32 STEAM_0:0:23050903
Country Germany
Signed Up January 21, 2013
Last Posted November 2, 2013 at 9:02 AM
Posts 33 (0 per day)
Game Settings
In-game Sensitivity 4.5
Windows Sensitivity max
Raw Input 0 
DPI
800
Resolution
1680x1050
Refresh Rate
 
Hardware Peripherals
Mouse Trust GM-4600
Keyboard Logitech G11
Mousepad hama
Headphones Sennheiser 151
Monitor Samsung
1 2 3
#7 Viewmodels: switch between 2 configs with one key? in Q/A Help

I have now Idea how, but it works! Thanks!
Here are the scripts I ended up using, in case somebody wants to know :)
-----------------------------------------------------------------------------
Paste this into you autoexec.cfg :
unbind "KEY"
bind "KEY" view
alias viewon "exec viewmodall; alias view viewoff"
alias viewoff "exec viewmodmelee; alias view viewon"
viewoff
-----------------------------------------------------------------------------
create a new .cfg file named viewmodall.cfg and paste this:
r_drawviewmodel 1
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 1"
alias wep2com "r_drawviewmodel 1"
alias wep3com "r_drawviewmodel 1"
//BACKUP
bind MWHEELUP mouseup
bind MWHEELDOWN mousedown
bind Q quickswap
bind 1 key1
bind 2 key2
bind 3 key3
bind 4 key4
bind 5 key5
---------------------------------------------------------------------------------
create a new .cfg file named viewmodmelee.cfg and paste the stuff from above again,
but change:

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

to

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

and you are done :)
--------------------------------------------------------------------------------
There is only one small problem: If you press the key to toggle the viewmodel stuff, the last used weapon or quickswitch will be changed to you secondary!
However, that should be easy to fix, since it is a problem with the stuff in the viewmodmelee.cfg and in the viewmodall.cfg. Could someone please help me fixing this?

posted about 11 years ago
#3 Viewmodels: switch between 2 configs with one key? in Q/A Help
Mangachuyou would probably have to have two different binds that have two different configs like
bind k "exec viewon"
bind l "exec viewoff"
really the only way that i know of

Wow thanks for the fast reply!
I thought of that possibility, however it would be better if there is a way to do this with one key :/

posted about 11 years ago
#1 Viewmodels: switch between 2 configs with one key? in Q/A Help

Hello!
I know there is a command to toggle viewmodels and I know the viewmodelscripts that hide the viewmodels exept for melee weapons.
However, I want to combine both! I want to toggle with a key between showing all viewmodels and only showing the melee ones.
I thought the easiest way to do that is something like this:
bind "Key" "incrementvar exec viewmodmelee.cfg viewmodall.cfg 1"
This should toggle between executing the configs.
However, this does not work.
Is there any way to switch between two configs with a key press or is there any other way to toggle the viewmodels as I want to do it.
Apologies for the awful english!

posted about 11 years ago
1 2 3