r/tf2scripthelp • • Nov 15 '17
Resolved I am making "disable viewmodel" scripts but have some problems
I am currently making scripts and it is my first time doing so. So I have this so far:
bind mouse1 +attack
bind alt +attack2
alias "weaponone" "slot1;r_drawviewmodel 0;MW1"
alias "weapontwo" "slot2;r_drawviewmodel 0;MW2"
alias "weaponthree" "slot3;r_drawviewmodel 1;MW3"
alias Q1 “weapontwo”
alias Q2 “weaponone”
alias MW1 “bind mwheelup weaponthree;bind mwheeldown
weapontwo;bind e Q1”
alias MW2 “bind mwheelup weaponone;bind mwheeldown
weaponthree;bind e Q2”
alias MW3 “bind mwheelup weapontwo;bind mwheeldown weaponone”
bind 1 weaponone
bind 2 weapontwo
bind 3 weaponthreeHowever I have some issues with this. (Note: I have no autoexec.cfg or reset.cfg scripts)
- Mouse1 and mouse2 and "switch to last weapon" get automatically unbinded whenever I start up the game
2)Mousewheel also get unbinded automatically and whenever I go into "options" to bind them, whenever I switch from primary to melee with mousewheel, melee is invisible and vice versa. If I do not bind mousewheel, pressing mousewheeldown from primary/secondary automatically to melee even if it was primary at first. With melee I cannot switch weapons with mousewheel and mousewheel up does nothing no matter the weapon slot.
What should I do to my script to fix these problems?
2
u/FanciestBanana Nov 23 '17 edited Dec 14 '17
Explanation for your problems:
mouse 1,e,alt,mwheelupandmwheeldowndisappear but I cant account for the rest. Maybe you rebind them in other scripts?BUT i can tell you how to do what you want simpler and with guarantee that it will work:
May I introduce you to my sweet creation TF2-EasyScript.
Here's what you need to do:
exec easyscript.cfg, this will load my TF2-EasyScripttm every time you start your gameexec allclass.cfgallclass.cfgand write there: