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 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 • • 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 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 • • Dec 19 '13

Answered exec commands in autoexec.cfg?

3 Upvotes

I know you have to use scripts and mods to get the best graphics, so I got a cfg and it says to put it in my autoexec. It's fairly big and commented so it'll take up more space in my autoexec than I'd like. Will putting the code in hqgraphics.cfg and then putting

exec hqgraphics

in my autoexec work?

tl;dr: Will exec commands work if placed in the autoexec.cfg?


r/tf2scripthelp • • Dec 18 '13

Answered How would I replace the mouse wheel's actions?

3 Upvotes

I want to have the mousewheel still act like default, but I want it to do something like, 'echo primary' when I hit the primary, or 'echo secondary' when I hit secondary, etc. Is it the mousewheel I'm actually going to replace, or the slot1, slot2 commands?

I'm not brand new to scripting, but I haven't tried replacing this much of the default actions.

An example or two would be awesome. For the sake of this question, the action I want to attach to the weapons is 'alias bananas'.


r/tf2scripthelp • • Dec 16 '13

Resolved Trouble with multiple commands for Heavy script

3 Upvotes

I was writing a script for heavy that makes it so that when I press "f" he will switch to his sandvich and immediately eat it. This is the command I have right now:

bind "f" "slot2; wait; +attack; wait; -attack"

The problem is then when I test it he just switches to his sandvich and does nothing. It isn't until I press "f" once more than does he finally eat it.

I've tried to put the command directly into the console but it still doesn't work so I'm pretty sure that it isn't my class cfg.

Does anyone know what I'm doing wrong?


r/tf2scripthelp • • Nov 01 '13

Answered Help with weapon conversion mod.

3 Upvotes

I want to make a tf2 mod that completely changes the stats of all of the weapons in the game. I mean, I would choose what changes and everything.

Does anybody know how to do this or can link me a tutorial on how to do it? Thanks in advance.


r/tf2scripthelp • • Oct 25 '13

Resolved Can't get spy/engineer scripts to function

3 Upvotes

Hello, I recently have been getting back into TF2 and used to have some fairly basic scripts for some classes, mostly Engineer and Spy. My spy scripts were somewhat simple, just binding "T" to drop disguise and a zoom script. My engineer was not very advanced either, having building set to specific keys and destroying turrets, as well as a sentry jump and pickup script.

Since returning to TF2, I noticed most of the scripts don't work. None of the spy scripts are working, but for some reason my build bind and build dispenser bind still do. What's strange is my old destroy turret bind "T" now destroys teleporter exit.

I've tried putting the binds back into the /Steam/SteamApps/<username>/Team Fortress 2/tf/cfg autoexec as well as the autoexec in the common folder. I've also tried making a "myconfigs" folder under the /custom folder, but nothing seems to work.


r/tf2scripthelp • • Oct 16 '13

Resolved Need help with Broesel's crosshair switcher

3 Upvotes

My viewmodels are still on. Here's the crosshair settings:

// use the aliases like this: size; color; type; viewmodel FOV or viewmodel off // _______________________________________________________________________________ // |SIZES: tiny [18] |COLORS: red | mint |TYPES: cross_with_dot | // |¯¯¯¯¯¯ smallest [20] |¯¯¯¯¯¯¯ green | lime |¯¯¯¯¯¯ half_cross_with_dot | // | small [24] | blue | skyblue | ring | // | medium [28] | yellow | black | ex | // | big [32] | cyan | grey | dot | // | biggest [36] | pink | white | open_cross | // | huge [40] | orange | | cross | // | invisible [00] | purple | | default | // ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

alias default_primary_crosshair "tiny; lime; dot; viewmodel off" alias default_secondary_crosshair "tiny; pink; dot; viewmodel off" alias default_melee_crosshair "tiny; cyan; dot; 90"

//SCOUT alias scout_primary "default_primary_crosshair" alias scout_secondary "default_secondary_crosshair" alias scout_melee "default_melee_crosshair"

//SOLDIER alias soldier_primary "default_primary_crosshair" alias soldier_secondary "default_secondary_crosshair" alias soldier_melee "default_melee_crosshair"

//PYRO alias pyro_primary "default_primary_crosshair" alias pyro_secondary "default_secondary_crosshair" alias pyro_melee "default_melee_crosshair"

//DEMOMAN alias demoman_primary "default_primary_crosshair" alias demoman_secondary "default_secondary_crosshair" alias demoman_melee "default_melee_crosshair"

//HEAVY alias heavy_primary "tiny; pink; dot; 90" alias heavy_secondary "tiny; green; dot; 90" alias heavy_melee "default_melee_crosshair"

//ENGINEER alias engineer_primary "medium; green; default; 84" alias engineer_secondary "small; white; dot; 84" alias engineer_melee "default_melee_crosshair"

//MEDIC alias medic_primary "default_secondary_crosshair" alias medic_secondary "default_primary_crosshair" alias medic_melee "default_melee_crosshair"

//SNIPER alias sniper_primary "default_secondary_crosshair" alias sniper_secondary "default_primary_crosshair" alias sniper_melee "default_melee_crosshair"

//SPY alias spy_primary "medium; green; cross; 84" alias spy_secondary "small; white; dot; 84" alias spy_melee "small; white; dot; 84"


r/tf2scripthelp • • Sep 05 '13

Answered Changing sensitivity based on weapons?

3 Upvotes

I'd like to keep my sensitivity at 4 for my knife but get it lower for my revolver. Is this possible?


r/tf2scripthelp • • Aug 29 '13

Resolved Heavy Minigun spinup viewmodel script help

3 Upvotes

So I have this script on my Heavy:

alias 1weapon "weapon1; r_drawviewmodel 1" alias +mgun "r_drawviewmodel 1; +attack" alias -mgun "r_drawviewmodel 0; -attack" bind mouse1 "+mgun"

alias +mgun2 "r_drawviewmodel 1; +attack2" alias -mgun2 "r_drawviewmodel 0; -attack2" bind mouse2 "+mgun2

which makes the viewmodel for the Minigun not show when its up and visible when its down. I hold down mouse 2 and then 1 to shoot, pressing them both at the same time. So when I unpress and then press mouse 1 again the viewmodel vanishes again. Is there a fix for this or do I just have to deal?


r/tf2scripthelp • • Aug 29 '13

Resolved First time scripting and having problems with '+modify' commands.

3 Upvotes

I'm new to scripting, but not coding, so I'm very confused as to what tf2 is doing right now. I'm trying to make four basic binds that change if I have shift pressed or not.

alias "Call_For_Medic" "Voicemenu 0 0"
alias "Call_For_Ubercharge" "Voicemenu 1 6"
alias "-toggleState" "alias call Call_For_Medic"
alias "+toggleState" "alias call Call_For_Ubercharge"
bind "e" "call"

alias "Good_Job" "Voicemenu 2 7"
alias "Thank_You" "Voicemenu 0 1"
alias "-togglestate" "alias good Good_Job"
alias "+toggelstate" "alias good Thank_You"
bind "q" "good"

alias "kill_me" "kill"
alias "explode_me" "explode"
alias "-togglestate" "alias die kill_me"
alias "+togglestate" "alias die explode_me"
bind "p" "die"

alias "Yes" "Voicemenu 0 6"
alias "No" "Voicemenu 0 7"
alias "-togglestate" "alias yes_no No"
alias "+togglestate" "alias yes_no Yes"
bind "n" "yes_no"

bind "shift" "+toggleState"

Despite all of them being the exact same format, only the 'yes_no' command works. All others give "unknown command: good" or the like. This is really confusing to me because if the yes_no is working, why aren't the others?

Also, I currently have this in my autoexec.cfg in tf\cfg (I have it backed up elsewhere). Is that ok to put it there?


r/tf2scripthelp • • Aug 21 '13

Answered I'm new to this. I was checking out HifiBoombox's post about writing any script, and he mentioned an "autoexec". What is that and where can I find it?

3 Upvotes

Also, where do I put these scripts?


r/tf2scripthelp • • Jul 29 '13

Answered Disable fire from flamethrower?

3 Upvotes

(I'm not sure if this is the best place to ask this question but I figured it's worth a shot. If there's a better place let me know)

So I'm looking for an answer as to how to disable fire coming from your own flamethrower. Through searches, the closest I got was disabling the fire effect on burning enemies. I'm not sure if it's a skin I need to install, or a variable I have to edit, or what.

Example of what I'm trying to do (you may need to skip ahead in the VOD to see an in-game example).

Thanks ahead of time.


r/tf2scripthelp • • Jul 25 '13

Answered Medic "Uber used" script help.

3 Upvotes

I recently installed this script.

alias +uber "say_team Charge Deployed; +attack2"

alias -uber "-attack2"

bind MOUSE2 +uber

How would I change this to not be on all classes (eg: When I demoknight and I pop my shield = "uber used" into team chat.


r/tf2scripthelp • • Jul 05 '13

Resolved I installed TF2mate and it messed up my bindings. I need a few commands.

3 Upvotes

Like I said in the title, TF2mate messed up my binds. I already restored them, but I need the commands for opening the loadout and for the previous and next weapon. I already tried to search it but I didn't found nothing. Does someone know them?


r/tf2scripthelp • • Jul 01 '13

Answered Engineer Build Script - Resetting cfg

3 Upvotes

Hey, I'm trying to make a script that meets the following criteria

"1" = Build sentry/Destroy Sentry

"2" = Build Dispenser/Destroy Dispenser

"3" = Build Entrance/Destroy Entrance

"4" = Build Exit/Destroy Exit

If the building is set up, then pressing the number key will destroy that building.

What I have so far, is this:

bind 1 "build 2; destroy 2"
bind 2 "build 0; destroy 0"
bind 3 "build 1; destroy 1"
bind 4 "build 3; destroy 3"

Will this work? I don't want this to affect other classes, so I think I need a reset cfg. Which I'm not sure how to do. I have an all-class config where if I press "Q" it goes to the previous weapon (skipping disguise kit & PDA) and pressing "E" goes to the next weapon (skipping disguise kit and PDA).

I also have a cfg for spy where pressing a number key disguises me (So pressing 1 disguises me as a Scout).

It's important that the building cfg does not conflict with my current cfgs.

So, what I'm looking for is some help on making sure these binds do not conflict with my current binds, and do not carryover onto other classes. Also to make sure my script works correctly. Also, would I be able to bind number keys to voice commands on other classes using the same method?

My current cfg: http://pastebin.com/pzQ6wNQw

My Spy config (If needed): http://pastebin.com/gV9Va5SA

Thanks in advance! :)


r/tf2scripthelp • • May 20 '13

Resolved Help, I done goofed while messing with scripts now I can't fix my fail!

3 Upvotes

I set a script to make me say "Uber used" when I press mouse2 as medic, but now everytime I press Mouse2 with any class it says that. Really annoying when I'm airblasting/playing spy! I deleted the text and it didn't work, I deleted the cfg file and it still says that... help!


r/tf2scripthelp • • Apr 22 '13

Answered A question about alias.

3 Upvotes

I want to make some derpy scripts,and i need to know,after typing alias "play" "" (for example) this,as most of you know makes the play command not work,and you can solve it by removing that line from your autoexec.cfg, but would alias "play" "play" make the command work again?
If not,any way of making it work again without having to edit autoexec,for automated scripts? Thanks in advance!


r/tf2scripthelp • • Apr 04 '13

Answered Custom sound levels?

3 Upvotes

Forgive me if this is a stupid question, but is it possible to alter the volume of in-game sound effects, and if so, is it considered cheating? As you know, some sounds - spies uncloaking, medics calling, stickies being set, sentry guns, etc - are very helpful, and if made louder could give you a huge advantage. Does anyone use "sound scripts"?


r/tf2scripthelp • • Mar 16 '13

Resolved Toggle attack and attack2 - messing up and I'm not sure why

3 Upvotes

Hey there, /r/tf2scripthelp! I've got another scripting question for y'all - this time it's a bit simpler than my Vaccinator one, or at least I think it is...


The goal of the script:

Shift + Mouse1 toggles primary attack with the minigun.
Shift + Mouse2 toggles secondary attack with the minigun.
Shift + Mouse3 throws your sandvich and says "Take the Sandvich!" in team chat.

When I execute the script, it works fine - but after I do Shift+Mouse3, even once, my +attack and +attack2 toggles don't work any more - they just do their respective functions until I release the keys. I've looked through my aliases, and I really hope I'm just missing something basic...


My heavyweapons.cfg can be found here.


Relevant code:

`	// Shift`

`		alias "+shiftmod_heavy" "+shift_esdfr; +shift_spycall; +shift_ubercall_heavy; +shift_add; +shift_misc; +shift_heavy_specific"`    

`		alias "-shiftmod_heavy" "-shift_esdfr; -shift_spycall; -shift_ubercall_heavy; -shift_add; -shift_misc; -shift_heavy_specific" `
	
`		alias "+shift_heavy_specific" "bind mouse1 minigun_fire_toggle; bind mouse2 minigun_spin_toggle; bind mouse3 +sandvich_throw"`

`		alias "-shift_heavy_specific" "bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 +melee_heavy"`
	

`			alias "minigun_fire_toggle" "minigun_fire_on"`

`			alias "minigun_fire_on" "slot1_heavy; +attack; bind mouse2 +attack2; bind mwheeldown slot2_heavy_firetoggle_on; bind mouse3 
slot3_heavy_firetoggle_on; alias minigun_fire_toggle minigun_fire_off"`

`			alias "minigun_fire_off" "slot1_heavy; -attack; alias minigun_fire_toggle minigun_fire_off"`

`			alias "slot2_heavy_firetoggle_on" "slot2_heavy; -attack; bind mwheeldown slot2_heavy; bind mouse3 +melee_heavy; alias minigun_fire_toggle minigun_fire_off"`

`			alias "slot3_heavy_firetoggle_on" "+melee_heavy; bind mouse3 +melee_heavy; bind mwheeldown slot2_heavy; alias minigun_fire_toggle minigun_fire_off"`

`			alias "minigun_spin_toggle" "minigun_spin_on"`

`			alias "minigun_spin_on" "slot1_heavy; bind mouse1 +attack; +attack2; bind mwheeldown slot2_heavy_spintoggle_on; bind mouse3 slot3_heavy_spintoggle_on; alias minigun_spin_toggle minigun_spin_off"`

`			alias "minigun_spin_off" "slot1_heavy; -attack2; alias minigun_spin_toggle minigun_spin_off"`

`			alias "slot2_heavy_spintoggle_on" "slot2_heavy; -attack2; bind mwheeldown slot2_heavy; bind mouse3 +melee_heavy; alias minigun_spin_toggle minigun_spin_off"`

`			alias "slot3_heavy_spintoggle_on" "+melee_heavy; bind mouse3 +melee_heavy; bind mwheeldown slot2_heavy; alias minigun_spin_togle minigun_spin_off"`


`			alias "+sandvich_throw" "slot2_heavy; +attack2; say_team Take the Sandvich!"`

`			alias "-sandvich_throw" "slot1_heavy; -attack2; bind mouse1 minigun_fire_toggle; bind mouse2 minigun_spin_toggle"`

Alternately, the same code can be found in lines 50 through 70 of the Gist.


(The logic behind the aliases such as slot2_heavy_spintoggle_on is so that I can switch to other weapons to cancel the toggle.)


A TL;DR - +attack/2 toggle aliases work fine until I use the +sandvichthrow alias, bound to Shift+Mouse3, and I'm not sure why it's happening.

Any tips? Ideas? Thanks!


Edit: Sorry about the rough code, I don't know how to put text on a new line without a pagebreak, and I haven't found it either...


r/tf2scripthelp • • Mar 09 '13

Answered and than what?

3 Upvotes

well i've read some of your info at wiki.. intersting stuff, good job. but some of the stuff i didnt clearly understand..

for example: toggle is not so cleared. so ive writen

toggle viewmodel_fov 54 57 59 65 71 98

now what?

bind x toggle viewmodel_fov 54 57 59 65 71 98

?? thats the right way to use it?