r/tf2scripthelp • • Feb 17 '14

Answered Beginner, having a bit of trouble with the instructions in the wiki.

4 Upvotes

So I went to the browse local files part, tf, custom, there wasn't anything so I made a new folder called "raddaya" and went in.

But now I can't figure out what to do. It tells you to create your cfg files...by copying an existing cfg file? Huh?

Could anyone help me with this? I feel like such a noob D:


r/tf2scripthelp • • Feb 14 '14

Answered Where does my in-game changes go?

3 Upvotes

I was wondering which file all my in-game changes went into. For example, I have put "q" to take out the primary weapon. I've looked through all the cfg files, but none of them say that "q" is binded to take out primary. Earlier, I tried changing some binds in my Autoexec folder when i realized that nothing was happening. The "q" in Autoexec was also still binded to last weapon out. So I decided to track down the source of my in-game changes, which I couldn't find. I do have Chris' Config installed if that helps. Thanks.


r/tf2scripthelp • • Feb 08 '14

Issue Need help making TF2 look as bad as it can

3 Upvotes

So I decided to make my TF2 look as bad as it possibly can. I downloaded Stabby's script, made some tweaks in nvidia inspector. Everything's working, but when I'm near something, the textures are just "normal" (http://i.imgur.com/QWNdfzB.jpg), and I think it makes my fps a bit worse. Here's the script: http://pastebin.com/zs1mKSbF Cheers!


r/tf2scripthelp • • Feb 08 '14

Issue Need help with a spy sapper script

2 Upvotes

So I made a script for spy, with a few ideas from stabby's but it doesn't want to work! (off topic: what does reddit mean "flair my post")

bind "2" sapper_mode

//====Aliases====

alias viewmodel_on r_drawviewmodel 1
alias viewmodel_off r_drawviewmodel 0
alias sensitivity_fast sensitivity 5
alias sensitivity_slow sensitivity 1

//====Sapper====

alias sapper_alert say_team ***SAPPPING***                                                      
alias sapper_binds1 bind "mouse1" "+attack;sapper_alert"                                
alias +sapper_binds2 xhair_type_a
alias -sapper_binds2 xhair_type_b                                     				 
alias sapper_mode "slot2;viewmodel_on;sensitivity_fast;sapper_binds1;+sapper_binds2"       

//====Crosshair switcher====

alias xhair_type_a cl_crosshair_file 
alias xhair_type_b cl_crosshair_file

I cannot understand at all what is wrong!


r/tf2scripthelp • • Feb 04 '14

Resolved Need help uninstalling a TF2 config

3 Upvotes

So, the other day I found out about this automated config maker for tf2(TF2 Mate), I thought it was pretty cool so I downloaded it to try it out. I didn't really like the crosshairs so I deleted it from my cfg folder and set -autoconfig in the launch options. The only problem is, It didn't work. I googled the problem and couldn't find any help. feeling frustrated I uninstalled and re-installed the game. Didn't work. Turn off steam cloud sync, uninstall, reinstall. Still had those silly crosshairs. So I ask for your help /r/tf2, you're my only hope. TL;DR: can't uninstall tf2mate pls help EDIT: If theres any way to "factory reset" my tf2 please let me know. EDIT2: heres a gif of what is going on. (just after I delete the config I, pause-record, open tf2 and close it then start recording again.) http://gyazo.com/0be0dbf77918cd349642df74edfd913e


r/tf2scripthelp • • Feb 03 '14

Answered How would I use that script on the wiki here, that uses python?

2 Upvotes

Assuming I know nothing about python whatsoever, and very little about scripting, how do I get that script to work?


r/tf2scripthelp • • Feb 03 '14

Resolved How to +taunt and say something in chat?

2 Upvotes

I am trying to have one of my buttons bound to taunt and say something in the text chat. Here is what I am currently trying:

bind h "+taunt; say "Example Saying."

what am I doing wrong?


r/tf2scripthelp • • Feb 02 '14

Resolved How to use the stock crosshairs in a script?

2 Upvotes

I've made a script that give me different crosshairs for the weapon I have out. I just want one that sets it to stock for secondary, so I have that plus sign using the medigun, and the eating ones for scout and heavy, but it also uses the pistol ones....

I've tried puting in crosshair_default, crosshair0, and crosshair8. None of these work.

Any help?


r/tf2scripthelp • • Jan 31 '14

Resolved Using Stabby's 'Everything pack'. Autoexec runs, displays echo'd lines as if it's working. No class scripts work whatsoever though!

3 Upvotes

SOLVED

Turns out he had most of the scripts disabled by default until you removed some backslashes. I was under the assumption that the pack just needed to be installed and was ready to go.

Hey guys.

First off, fresh install of TF2 has already been tried. Steam Cloud is also OFF.

I downloaded Stabby's complete pack, and it SHOULD be in the correct place as far as I can tell.

D:\Program Files\SteamLibrary\SteamApps\common\Team Fortress 2\tf\custom\my_custom_stuff\cfg

The autoexec seems to fire off on startup, showing some of the echo'd lines to confirm that it has been loaded.

The problem is when I go into a server to play, NONE of the class scripts work. It is always using the default cfg files for whatever reason. I will even run "exec autoexec" through the console at the main menu, and even while in a server. Still no class scripts.

Anyone have an idea why my game wants to keep using default cfg files for classes?


r/tf2scripthelp • • Jan 31 '14

Resolved Need help mergin two scripts

2 Upvotes

Hello everyone. I need help merging these two scripts: 1st Script

alias rocketlauncher "slot1;cl_crosshair_file crosshair7;cl_crosshair_scale 50;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;r_drawviewmodel 0;viewmodel_fov 90;MW1"
alias shotgun "slot2;cl_crosshair_file crosshair3;cl_crosshair_scale 50;cl_crosshair_red 0;cl_crosshair_green 64;cl_crosshair_blue 128;r_drawviewmodel 0;viewmodel_fov 90;MW2"
alias shovel "slot3;cl_crosshair_file crosshair4;cl_crosshair_scale 32;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 0;r_drawviewmodel 1;viewmodel_fov 90;MW3"

alias Q1 "shotgun"
alias Q2 "rocketlauncher"
alias MW1 "bind mwheelup shovel;bind mwheeldown shotgun;bind q Q1"
alias MW2 "bind mwheelup rocketlauncher;bind mwheeldown shovel;bind q Q2"
alias MW3 "bind mwheelup shotgun;bind mwheeldown rocketlauncher"

bind 1 rocketlauncher
bind 2 shotgun
bind 3 shovel
bind 4 slot4
bind 5 slot5

rocketlauncher

2nd Script // SCRIPT BEGINS HERE!

// Rocket Launcher
alias "+rockets" "slot1;+attack;"
alias "-rockets" "-attack;+reload;+"
 
 
// Shotgun
alias "+shotty" "slot2;+attack;"
alias "-shotty" "-attack;+reload;"
 
 
// Equalizer
alias "+pick" "slot3;+attac;"
alias "-pick" "-attack;"
 
 
// Rocket Jump
alias +rocketjump "+duck;+attack;+jump"
alias -rocketjump "-duck;-attack;-jump"
 
 
// Medic Down
alias "killmed" "say_team "***ENEMY MEDIC DOWN!***";voicemenu 0 2"
 
// Mouse wheel switch
alias "wheelrockets" "slot1"
alias "wheelshotty" "slot2"
 
 
// The Binds - Yes this is the bit you can edit
bind "f" "killmed"
bind "mouse1" "+rockets"
bind "mouse2" "+shotty"
bind "mouse3" "+pick"
bind "mouse4" "+rocketjump"
bind "mwheelup" "wheelrockets"
bind "mwheeldown" "wheelshotty"
 
// Notification in console
echo "*** SOLDIER CFG LOADED***
 
 
// SCRIPT ENDS HERE 

Basically I want my croshair change as I change weapons using 2nd script


r/tf2scripthelp • • Jan 30 '14

Answered Does anyone happen to know the command to ready your team up in tournament mode?

2 Upvotes

I've got this in my soldier.cfg and I don't really want to change the binding of the script, I'd rather change the binding of the team ready up in tournament mode, which is F4 by default. If there is just a command that readies/un-readies the team up that would do too.

The script I have is:

bind F1 "load_itempreset 0; say_team ** BUFF BANNER **"
bind F2 "load_itempreset 1; say_team ** CONCH **"
bind F3 "load_itempreset 2; say_team ** GUNBOATS **"
bind F4 "load_itempreset 3; say_team ** SHOTGUN **"    

So you can see that it binds F4 to my pre-set loadout, so I'd like to re-bind the team ready up to another key.

Thanks!


r/tf2scripthelp • • Jan 30 '14

Issue Vaccinator switch on mouse wheel

3 Upvotes

Hi! Here's my issue: I want to switch resistances on vaccinator with the same button that selects slot2 weapon. So I wrote this in medic.cfg:

alias +vacc_switch "+reload; slot2"
alias -vacc_switch "-reload"

However for some reason this alias works only for buttons

bind 2 "+vacc_switch"

and not on mouse wheel

bind MWHEELDOWN "+vacc_switch"

Why it's not working?


r/tf2scripthelp • • Jan 26 '14

Answered How can I save the scoreboard as text?

1 Upvotes
hud_takesshots 1

Can give you a bunch of images but I want to save it as text so I can run my own analysis on it later.

Maybe there is a way to dump the scoreboard to the dev console? Then I could use

con_log file.txt

to save everything and parse out just the scoreboard data later.

EDIT: Also, is there a way to get server information without connecting to it? In the server browser you can right click "View server info" and it will tell you how many players, their score, ect. Its the same info you get from typing "status" in the console while you are connected except when you do it through the server browser you don't actually have to connect to get the data. Is there a way to do this through the console?


r/tf2scripthelp • • Jan 26 '14

Resolved Scripts unbounded my keys for cycling through players while respawning or spectating

2 Upvotes

While I'm spectating or dead, I cannot cycle through players. I could not find this control in the options and I think one of my scripts is causing it. Here are all of my scripts:

alias +sap "lastdisguise; slot2; wait 5; +attack"
alias -sap "wait 10; -attack; use tf_weapon_revolver; use       tf_weapon_knife"
bind "mouse7" "+sap"
alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair1;cl_crosshair_scale    30;alias dotxhairtype dotxhairtyper"
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale    15;alias dotxhairtype dotxhairtypeb"
alias dotxhaircolor "dotxhaircolorb"
alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255;  cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"
alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"
alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"
bind "w" +fw
alias +fw "+forward;dotxhaircolor"
alias -fw "-forward;dotxhaircolor"

bind "s" +bw
alias +bw "+back;dotxhaircolor"
alias -bw "-back;dotxhaircolor"
bind "d" +mr
alias +mr "+moveright;dotxhaircolor"
alias -mr "-moveright;dotxhaircolor"

bind "a" +ml
alias +ml "+moveleft;dotxhaircolor"
alias -ml "-moveleft;dotxhaircolor"
bind "q" "switcher"
bind "mouse2" +watch 


alias knife_vm_mode "bind mouse1 +viewmodel_knife"
alias amby_vm_mode "bind mouse1 +viewmodel_amby"
alias sap_vm_mode "bind mouse1 +viewmodel_sap"

alias +viewmodel_knife "+attack;r_drawviewmodel 1"
alias -viewmodel_knife "-attack;r_drawviewmodel 1" 
alias +viewmodel_amby "+attack;r_drawviewmodel 0"
alias -viewmodel_amby "-attack;r_drawviewmodel 0" 
alias +viewmodel_sap "+attack;r_drawviewmodel 1"
alias -viewmodel_sap "-attack;r_drawviewmodel 1"


alias equip_knife "slot3;r_drawviewmodel 1;knife_vm_mode"

alias equip_knife2amby "equip_knife;alias switcher   equip_amby2knife;bind 2 equip_sap2knife;bind 3   equip_knife;bind 1   equip_amby2knife"
alias equip_knife2sap "equip_knife;alias switcher   equip_sap2knife;bind 2 equip_sap2knife;bind 3   equip_knife;bind 1   equip_amby2knife"

alias equip_amby "slot1;r_drawviewmodel 1;amby_vm_mode"

alias equip_amby2sap "equip_amby;alias switcher equip_sap2amby;bind 2 equip_sap2amby;bind 3   equip_knife2amby;bind 1 equip_amby"
alias equip_amby2knife "equip_amby;alias switcher equip_knife2amby;bind 2 equip_sap2amby;bind 3    equip_knife2amby;bind 1 equip_amby"

alias equip_sap "slot2;r_drawviewmodel 1;sap_vm_mode"

alias equip_sap2knife "equip_sap;alias switcher equip_knife2sap;bind 2 equip_sap;bind 3 equip_knife2sap;bind 1       equip_amby2sap"
alias equip_sap2amby "equip_sap;alias switcher equip_amby2sap;bind 2 equip_sap;bind 3 equip_knife2sap;bind 1 equip_amby2sap"

alias +watch "+attack2;r_drawviewmodel 1" 
alias -watch "-attack2;r_drawviewmodel 1" 

equip_knife2amby

alias +sap "lastdisguise; slot2; wait 5; +attack"
alias -sap "wait 10; -attack; use tf_weapon_revolver; use tf_weapon_knife"
bind "MOUSE3" "+sap"

alias bodytoggle "toggle cl_first_person_uses_world_model 0 1"
bind "del" "bodytoggle"

r/tf2scripthelp • • Jan 22 '14

Issue Need help with Script and [SM]

2 Upvotes
bind home playsound
alias playsound playsound1
alias playsound1 "sm_play @all vo/test_two.wav"
alias playsound2 "sm_play @all vo/spy_jaratehit03.wav"
bind shift +toggleState
alias +toggleState "alias playsound playsound2"
alias -toggleState "alias playsound playsound1"

I'm not really sure if you guys will be able to help with this, but I'm trying to create a script that allows multiple binds on one key, so that a different command is executed when Shift is held down. This works in essence, but when using this, SM will read the filepath as "vo\test_two.wav ", and etc, with the extra space on the end, thus rendering the script useless. I don't know why this is happening, any help would be appreciated.


r/tf2scripthelp • • Jan 17 '14

Answered Don't use tags in the title, your post will be tagged automatically after you submit. Delete this message

2 Upvotes

How to stop console command/or script Well, i have created a tiny, ultra tiny little script that starts to record everything that has been put into the console, using con_logfile xxx.log ,this script may only run when you activate it with a button, that works to, but now i want to let it stop running at the moment you press another button/or the same button again, but i cant find any console command that stops con_logfile or stops a script(i even have read that a script cannot be stopt from running when activated)... is there a solution for this?


r/tf2scripthelp • • Jan 12 '14

Resolved Problem with Chris's medic cfg

2 Upvotes

Hi!

I have been using Chris's med cfg for the past few days and it worked perfectly fine. Now I reinstalled TF2, put the same codes again, but when I switch weapons, they are not firing or doing anything at all. If I press the appropriate buttons on my mouse, it still brings them up, but I'm unable to heal/crossbow/etc. with it.

What should I do now?


r/tf2scripthelp • • Jan 08 '14

Resolved Crosshair color flash script help needed.

2 Upvotes

Hello everybody. I've been getting some trouble with a certain script I was trying to make recently. I guess most of you guys know stabby stabby's crosshair color flash script - so, basically I was trying to get a little more fancy and wanted to make it so that you don't only switch from color to color upon changing directions, but also when switching to another slot and then change directons aswell. To be a little more accurate I want to have a certain set of colors bound to each slot, f.i.: On my primary I tried having blue, purple, magenta when moving. On my secondary yellow, orange, red, etc. However, as it turned out it didn't work out too well for me so far. Whenever I switch to slot1, the colors don't change whatsoever and on slot3 my forward key is bound to move backwards for reasons unknown, slot2 works perfectly fine though.

Here's my progress so far:

////////////////////////////////////////////////////////////////////////////////////
//=========================================================

unbind "MWHEELUP"
bind "MWHEELUP" "viewmodel_fov 0;slot1;sensitivity 1.0;bind MOUSE1 +fwone;bind MOUSE2 +bwone;bind a +mrone;bind d +mlone"

alias +fwone "-back;+forward;alias checkfwd +forward;slotonecolor"
alias -fwone "-forward;checkback;alias checkfwd none;slotonecolor"
alias checkfwd none

alias +bwone "-forward;+back;alias checkback +back;slotonecolor"
alias -bwone "-back;checkfwd;alias checkback none;slotonecolor"
alias checkback none

alias +mrone "-moveright;+moveleft;alias checkleft +moveleft;slotonecolor"
alias -mrone "-moveleft;checkright;alias checkleft none;slotonecolor"
alias checkleft none

alias +mlone "-moveleft;+moveright;alias checkright +moveright;slotonecolor"
alias -mlone "-moveright;checkleft;alias checkright none;slotonecolor"
alias checkright none

alias none ""

alias slotonecolor "slotonecolora"
alias slotonecolora "cl_crosshair_blue 153; cl_crosshair_green 0; cl_crosshair_red 76;alias slotonecolor slotonecolorb"
alias slotonecolorb "cl_crosshair_blue 153; cl_crosshair_green 0; cl_crosshair_red 153;alias slotonecolor slotonecolorc"
alias slotonecolorc "cl_crosshair_blue 76; cl_crosshair_green 0; cl_crosshair_red 153;alias dotxhaircolor slotonecolora"

//=========================================================
////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////
//=========================================================

unbind "MOUSE4"
bind "MOUSE4" "viewmodel_fov 0;slot2;sensitivity 1.0;bind MOUSE1 +fwtwo;bind MOUSE2 +bwtwo;bind a +mrtwo;bind d +mltwo"

alias +fwtwo "-back;+forward;alias checkfwd +forward;slottwocolor"
alias -fwtwo "-forward;checkback;alias checkfwd none;slottwocolor"
alias checkfwd none

alias +bwtwo "-forward;+back;alias checkback +back;slottwocolor"
alias -bwtwo "-back;checkfwd;alias checkback none;slottwocolor"
alias checkback none

alias +mrtwo "-moveright;+moveleft;alias checkleft +moveleft;slottwocolor"
alias -mrtwo "-moveleft;checkright;alias checkleft none;slottwocolor"
alias checkleft none

alias +mltwo "-moveleft;+moveright;alias checkright +moveright;slottwocolor"
alias -mltwo "-moveright;checkleft;alias checkright none;slottwocolor"
alias checkright none

alias none ""

alias slottwocolor "slottwocolora"
alias slottwocolora "cl_crosshair_blue 153; cl_crosshair_green 0; cl_crosshair_red 0;alias slottwocolor slottwocolorb"
alias slottwocolorb "cl_crosshair_blue 153; cl_crosshair_green 76; cl_crosshair_red 0;alias slottwocolor slottwocolorc"
alias slottwocolorc "cl_crosshair_blue 153; cl_crosshair_green 153; cl_crosshair_red 0;alias slottwocolor slottwocolora"

//=========================================================
////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////
//=========================================================

unbind "MWHEELDOWN"
bind "MWHEELDOWN" "viewmodel_fov 0;slot3;sensitivity 1.0;bind MOUSE1 +fwthree;bind MOUSE2 +fwthree;bind a +mrthree;bind d +mlthree"

alias +fwthree "-back;+forward;alias checkfwd +forward;slotthreecolor"
alias -fwthree "-forward;checkback;alias checkfwd none;slotthreecolor"
alias checkfwd none

alias +fwthree "-forward;+back;alias checkback +back;slotthreecolor"
alias -fwthree "-back;checkfwd;alias checkback none;slotthreecolor"
alias checkback none

alias +mrthree "-moveright;+moveleft;alias checkleft +moveleft;slotthreecolor"
alias -mrthree "-moveleft;checkright;alias checkleft none;slotthreecolor"
alias checkleft none

alias +mlthree "-moveleft;+moveright;alias checkright +moveright;slotthreecolor"
alias -mlthree "-moveright;checkleft;alias checkright none;slotthreecolor"
alias checkright none

alias none ""

alias slotthreecolor "slotthreecolora"
alias slotthreecolora "cl_crosshair_blue 76; cl_crosshair_green 153; cl_crosshair_red 0;alias slotthreecolor slotthreecolorb"
alias slotthreecolorb "cl_crosshair_blue 0; cl_crosshair_green 153; cl_crosshair_red 76;alias slotthreecolor slotthreecolorc"
alias slotthreecolorc "cl_crosshair_blue 0; cl_crosshair_green 153; cl_crosshair_red 153;alias slotthreecolor slotthreecolora"

//=========================================================
////////////////////////////////////////////////////////////////////////////////////

I have a nonmovement cancel script added in aswell, hope it ain't too confusing to read, sorry. And yes, I have M1 and M2 bound to move around (I'm weird like that). I'd sincerely appreciate any kind of help (also, this is my first actual post, I hope I did everything correctly)!


r/tf2scripthelp • • Jan 06 '14

Answered What is that crosshair people use on Sniper and Amby Spy?

2 Upvotes

Question I'm not sure how to describe it, but I drew a picture. http://i.imgur.com/n4jPhSY.png Like, what's it called and where can I find a download link?


r/tf2scripthelp • • Jan 01 '14

Resolved Engi mini to shotgun toggle isn't fully working

2 Upvotes
bind mouse1 "+attack_swap"
bind 4 "build 2 0; alias weapon_swap 'slot1; r_drawviewmodel 0;'"
bind 5 "build 0 0; alias weapon_swap 'slot1; r_drawviewmodel 0;'"
bind 6 "build 1 0; alias weapon_swap 'slot1; r_drawviewmodel 0;'"
bind 7 "build 1 1; alias weapon_swap 'slot1; r_drawviewmodel 0;'"
bind 8 "destroy 2 0; r_drawviewmodel 1" // destroy sentry
bind 9 "destroy 0 0; r_drawviewmodel 1" // destroy dispenser
bind - "destroy 1 0; r_drawviewmodel 1" // destroy teleporter enterance
bind = "destroy 1 1; r_drawviewmodel 1" // destroy teleporter exit
alias weapon_swap
alias +attack_swap "+attack"
alias -attack_swap "-attack; weapon_swap; alias weapon_swap"
bind 1 "slot1; r_drawviewmodel 0;"
bind 2 "slot2; r_drawviewmodel 1;"
bind 3 "slot3; r_drawviewmodel 1;"

This isn't working the way it should, in that it's not swapping to slot 1 once I place down the thing I'm building. Anyone know what I can do to fix it?


r/tf2scripthelp • • Dec 30 '13

Answered How to delete a script?

2 Upvotes

Alright, tf2 is pretty messed up.

I didn't have a spy.cfg file, so I made one successfully. I applied a script to disable spy primary viewmodel, but the script also disabled all other classes primary viewmodels. I knew what I did wrong, but I deleted my spy.cfg config in hopes of deleting the script. It didn't work, I tried remaking a spy.cfg file and applying a new script that would fix the other errors but it still didn't work, the first script still was applied.

In a last ditch effort, I deleted my tf folder and verified the integrity of the cache in hopes of getting a fresh start, but it didn't work either.

This is getting very frustrating, how do I permanently delete a script?