r/Tf2Scripts • u/IExistifNot • Sep 17 '21
Question Scripts not working?
So I'm new to scripting and I wanted to try my hand at it, only to find none of the stuff I made worked. Does anyone know what's going on?
Here's my scripts:
autoexec.cfg
//Toggles whether e calls for healing or Uber
bind e call
alias call Call_For_Medic
alias Call_For_Medic "voicemenu 0 0"
alias Call_For_Ubercharge "voicemenu 1 6"
bind shift +toggleState
alias +toggleState "alias call Call_For_Ubercharge"
alias -toggleState "alias call Call_For_Medic"
//-------
//Yells spy
bind t spy
alias spy "voicemenu 1 1"
//-------
//Non violence mode
bind [ +gibs
alias +gibs "-sillygibs; exec hiddenview"
alias -gibs "+sillygibs; exec visibleview"
visibleview.cfg
bind 1 "slot1; r_drawviewmodel 1; cl_crosshair_file crosshair1"
bind 2 "slot2; r_drawviewmodel 1; cl_crosshair_file crosshair2"
bind 3 "slot3: r_drawviewmodel 1; cl_crosshair_file crosshair3"
hiddenview.cfg
bind 1 "slot1; r_drawviewmodel 0; cl_crosshair_file crosshair1"
bind 2 "slot2; r_drawviewmodel 0; cl_crosshair_file crosshair2"
bind 3 "slot3: r_drawviewmodel 1; cl_crosshair_file crosshair3"
spy, sniper, scout, medic, demoman, and heavyweapons.cfg
soldier.cfg
alias +rocketjump "+jump;+duck;wait;+attack"
alias -rocketjump "-jump;-attack;wait;wait;wait;-duck"
bind mouse3 "+rocketjump
pyro.cfg
bind ] +pyrocombo
alias +pyrocombo "slot1;+attack;wait 32;slot2"
alias -pyrocombo "-attack;slot1"
engineer.cfg
bind r quickSentry
alias quickSentry sentry
alias sentry "destroy 2 0; build 2 0; +attack"
A lot of this was taken or inspired from the TF2 wiki or other people's scripts, so I have no idea what's going on- I put them in steamapps/common/Team Fortress 2/tf/custom/scripts/config, in case if that was the problem.
3
Upvotes
View all comments
Show parent comment
2
u/Stack_Man Sep 17 '21
You don't need to convert your scripts to
.vpk, just place them in\Team Fortress 2\tf\cfgAlso, to prevent class-specific scripts from bleeding over, make a
default.cfgfile, and add default binds to it. For example, you overwrite r which is "+reload" by default (used by eureka effect, vaccinator) and mouse3 which is "+attack3" (mvm medic shield).Then add
exec defaultas the very first line of every class's .cfg file.And one last thing, if you use masterconfig, add autoexec.cfg and every class .cfg to
\Team Fortress 2\tf\cfg\userinstead. Leave the other .cfg's intf\cfg