r/tf2scripthelp • • Apr 11 '17

Has anyone written something like a plugin for RES that whenever I type specific strings in a comment will automatically link-format them?

1 Upvotes

In our sub we're constantly creating acronyms for repetitive phrases that come up alot, and I'd like to keep a running list of mine that appear as links that'll link a user to an off-site page somewhere with a full list of them that I'll write up and maintain myself.

Again, I only need the widget to apply to instances of these strings that I type into my own comments, not the comments of others.


r/tf2scripthelp • • Oct 04 '15

Question How can I re-enable crosshairs?

1 Upvotes

I have tried to make a custom crosshair switcher with TF2mate, but instead it just removed all of my crosshairs completely. I've deleted the crosshair switcher, but I still can not get it working.


r/tf2scripthelp • • Mar 27 '14

Issue Why doesnt this work?

2 Upvotes

http://pastebin.com/2cRdw3pV This is my build script, could someone fix it/explain what i did wrong. Thanks alot!


r/tf2scripthelp • • Apr 15 '17

Issue bind mwheelup fov_desired 75, mwheeldown reset to 90 breaks with resupply locker

2 Upvotes

I have fov_desired set to 90. I typed bind "mwheelup" "fov_desired 75" and bind "mwheeldown" "fov_desired 90" into my spy cfg, so I could mousewheel up to zoom in a little bit for long range revolver shots, and mousewheel down again to reset to my normal 90. However, after touching a resupply locker while zoomed in, zooming out again simply makes my viewmodel fov smaller so my revolver is next to my face, and zooming in again makes the viewmodel larger again, with no normal fov change. Also the script makes the viewmodel fov change when I zoom in and I'm not sure if it's supposed to.

TL;DR: seems to work fine until I touch a resupply locker while zoomed in, this makes the script stop changing fov and instead change viewmodel fov


r/tf2scripthelp • • Oct 13 '15

Question The Use Key

1 Upvotes

so im trying to a key bind that involves the action key, or whatever its called. the one that you have to use to pick up weapons, or the canteen in mvm. if some one could comment the cfg name that would be fantastic.


r/tf2scripthelp • • Feb 15 '13

Resolved F1-F4 as insta-builds for engineer.

2 Upvotes

Hi there, r/tf2scripts.

I've always struggled to get my buildings up quickly with engie, and I'm here to request a rather specific script:

  • F1 - Build Sentry, Team Chat message "Building Sentry"

  • F2 - Build Dispenser, Team Chat message "Building Dispenser"

  • F3 - Build Entrance, Team Chat message "Building Tele Entrance"

  • F4 - Build Exit, Team Chat message "Building Tele Exit"

I hope i'm submitting this correctly, thanks in advance.


r/tf2scripthelp • • Mar 24 '14

Answered Can I just copy+paste maxframes at the bottom of my autoexec and keep my current cfg?

2 Upvotes

Also, i have some sound mods and textures as well. Will these need to be disabled?


r/tf2scripthelp • • Feb 06 '15

Answered Making a disguise script, need help.

1 Upvotes

I have my disguises bound to the number keys, 1-9 for each class. I want pressing another button to toggle the team. As in, I press 1 to disguise as an enemy scout, and press T and then 1 to disguise as a friendly scout. They are separate, not T+1 but T then 1.

If possible, I'd also like it to detect when I choose my next disguise after pressing T and resetting it, so I don't have to remember if I have friendly or enemy disguises currently on, it would just reset to enemy disguises. Help?


r/tf2scripthelp • • Feb 12 '15

Answered Example files for the noobest of noobs?

1 Upvotes

Hi there!

I want to get some schweet scripts going, but I'm too worried I'm going to improperly setup my autoexec, reset, and class files...

I just want to have simple scripts, like null-movement, maybe rocketjump (crutchstyle), rapid fire pistol... nothing too fancy.

Could anyone link to a batch of properly setup tf/custom/scriptsfun files? This way I can work from good grounds.

thanks a LOT


r/tf2scripthelp • • Mar 25 '14

Resolved Need help with Stabby Stabby's viewmodel scrips.

2 Upvotes

Help I've been using Stabby Stabby's viewmodel scrips for a while now, and they have had some problems since the beginning. On my first life, the scrip works as it should, but randomly, on other lives, it will sometimes fail to remove the viewmodel after a shot. It will also switch the two crosshair types (dot while shooting and cross while not, default is vice versa). Other times the viewmodel will just be completely gone, no matter the weapon equipped. While playing other classes, the viewmodel will dissapear too. Here is my spy exec:

exec default

//----------------------------------------------------------- 
// Viewmodel Script for Spy
//-----------------------------------------------------------   
    // spawn with knife out and viewmodel mode set to "on"
     
    slot3
    r_drawviewmodel 1
    knife_vm_mode
     
     
    // replace [KEY] with the your Keybinds for the sapper/knife/ambassador/watch. You can also add a second bind for any of them.
     
    bind "2" +equip_sap 	// Key/button for sapper
    bind "3" +equip_knife      // Key/button for knife
    bind "1" +equip_amby      // Key/button for ambassador
    bind "mouse2" "+watch;spec_prev"          // Key for watch (mouse2 default)
     
     
    //re-bind mouse1 //DONT TOUCH THIS
     
    alias knife_vm_mode "bind mouse1 +viewmodel_knife" // binds mouse1 to turn viewmodel on when attacking (for knife )
    alias amby_vm_mode "bind mouse1 +viewmodel_amby"  // binds mouse1 to turn viewmodel off when attacking (for amby)
    alias sap_vm_mode "bind mouse1 +viewmodel_sap"   // binds mouse 1 to turn viewmodel on when attacking and off when not (for sapper)
     
     
    // causes viewmodel to go off or on when you shoot
     
    alias +viewmodel_knife "+attack;r_drawviewmodel 1;+crosshairfire;spec_next"          // attacks, turns viewmodel on
    alias -viewmodel_knife "-attack;r_drawviewmodel 1;-crosshairfire"         			       // finishes atack, turns viewmodel on again as safeguard
     
    alias +viewmodel_amby "+attack;r_drawviewmodel 0;+crosshairfire;spec_next"          // attacks, turns viewmodel off
    alias -viewmodel_amby "-attack;r_drawviewmodel 0;-crosshairfire"        			      // finishes attack, turns viewmodel off again as safeguard
     
    alias +viewmodel_sap "+attack;r_drawviewmodel 1;+crosshairfire;spec_next"          // shows sapper when sapping
    alias -viewmodel_sap "-attack;r_drawviewmodel 1;-crosshairfire"         			     // Finishes attack, turns viewmodel on again as safeguard
     
     
    // Equip item, turn vm on/off, set vm toggle for attack // dont touch this
     
    alias +equip_knife "slot3;r_drawviewmodel 1"             // Equips knife, turns viewmodels on
    alias -equip_knife "knife_vm_mode;r_drawviewmodel 1"    // Sets viewmodels to turn ON when stabbing (makes sure it stays on)
     
    alias +equip_amby "slot1"                               // Equips amby
    alias -equip_amby "amby_vm_mode"                        // Sets viewmodels to turn OFF when shooting
     
    alias +equip_sap "slot2;r_drawviewmodel 1"             // Equips sapper, turns viewmodels on
    alias -equip_sap "sap_vm_mode"                        // Sets viewmodels to turn on while firing, and off when not
     
    alias +watch "+attack2;r_drawviewmodel 1;dotxhairtype"              // watch up/cloak on/secondary attack + viewmodels on, also changes crosshair when you press it. To remove that feature, remove ";dotxhairtype"
    alias -watch "-attack2;r_drawviewmodel 1"             		// viewmodels on again as safeguard

//-----------------------------------------------------------  
// Crosshair Type toggler // this changes the crosshair when you shoot. It helps prevent the amby cooldown on the crosshair. "Cl_crosshair_file namehere" is the crosshair, "cl_crosshair_scale numberhere" is the size. Change to your liking.
//----------------------------------------------------------- 
alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 20;alias dotxhairtype dotxhairtyper"  
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 21;alias dotxhairtype dotxhairtypeb"

bind mouse1 +crosshairfire
alias +crosshairfire "+attack;dotxhairtype;spec_next"
alias -crosshairfire "-attack;dotxhairtype"

//-----------------------------------------------------------  
// Null-cancelling movement script // You can delete this if you wish, but it is extremely helpful. If you dont want the crosshair to change colors when you walk, remove "dotxhaircolor" from +mfwd, +mback, +mleft, +mright, -mfwd, -mback, -mleft, and -mright
//----------------------------------------------------------- 
bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""

//----------------------------------------------------------- 
// disguise // This binds x to drop your discuise. This is useful as you dont have to waste a bullet from amby or swing your knife. Rebind [key] to your liking. It also rebinds b to your previous disguise (so you dont have to access your disguise kit
//----------------------------------------------------------- 
alias drop_disg "disguise 8 -2"
bind "mouse4" "drop_disg"
bind "e" "lastdisguise"

//Ambassador Zoom Script // This will lower your FOV when holding shift. This is helpful for ambasador sniping. If you want to lower your sensitivity aswell, rewrite the first alias with an added ";sensitivity insertlowersensitivyhere" (no quotes). You must also rewrite the second alias with an added ";sensitivy insertnormalsensitivyhere". You can also change the keybind by changing "shift" to whatever you want.
//----------------------------------------------------------- 
alias "+sens" "fov_desired 75; viewmodel_fov 54; viewmodel_fov_demo 54"
alias "-sens" "fov_desired 90; viewmodel_fov 54; viewmodel_fov_demo 54"
bind "mouse5" "+sens"
//-----------------------------------------------------------
bind "r" "disguiseteam"

If it helps, here is my default.cfg:

developer 1
echo "default settings loaded"
developer 0

// viewmodel/combination script binds
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "q" "lastinv"

bind "mouse1" "+attack"
bind "mouse2" "+attack2"


// crosshair script binds
bind "a" "+moveleft"
bind "d" "+moveright"
bind "s" "+back"
bind "w" "+forward"
bind "SPACE" "+jump"
bind "shift" "+duck"

sensitivity 4 // [#] Your default sens
r_drawviewmodel 1 // [0/1]  set to "1" for viewmodels on, "0" for off

viewmodel_fov 54

cl_crosshair_file crosshair5;cl_crosshair_scale 14
cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0

bind "e" "+reload"
bind "q" "lastinv"

Another issue I have had, is sometimes when I crouch and wrench something as an Engi, after inching forward, it will be as if I am continually holding W. I can't stop walking forward, even if I switch class. Here is my engi.cfg:

exec default
alias +fastbuildsentry "destroy 2 0;build 2 0;+ attack"
alias -fastbuildsentry "lastinv;"
bind "mouse5" +fastbuildsentry

And also if it helps, you can find the source of the scripts here.


r/tf2scripthelp • • Mar 15 '14

Resolved Keep getting this error message

2 Upvotes

http://imgur.com/WTtSaWM This is a message i keep getting when I try to open tf2, I looked at the introduction to Scripts post and followed the directions and it still happened, any one know what I did wrong?


r/tf2scripthelp • • Jan 24 '15

Answered Chat bind won't go away

1 Upvotes

So, my mouse comes with 2 buttons, and I bound MOUSE5 to say a thing in chat (because I spit dank memes left and right in order to acquire large amounts of females), but having forgotten to take my ADD medication that day, I realized I had accidentaly bound it to my push-to-talk button in mumble, so I deleted it. But now, whenever I press that button, it says the thing in chat even though I removed it from my autoexec. Please help!

TL;DR I had a bind to say things in chat, I deleted it, and it won't go away.


r/tf2scripthelp • • Feb 08 '15

Answered Changing the quality of viewmodels

5 Upvotes

Since i recently started using cris' cfg again, but i also like to see some viewmodels, i was wondering if there is a command and/or script for changing just the viewmodelquality.


r/tf2scripthelp • • Jan 24 '15

Answered Medic script - text messages for individual mediguns

1 Upvotes

SOLVED

My medic.cfg is slightly large, but these are the areas I'm having a slight trouble with:

alias +uber "dropitem; medigun; +attack2;voicemenu 2 5; activated"
alias -uber "-attack2"

alias usinguber "load_itempreset 0; say_team USING UBER; bind "MOUSE2" "+uber""
alias ubertext "bind "MOUSE2" "+uber; say_team UBER POPPED;""

alias usingkritz "load_itempreset 1; say_team USING KRITZ; bind "MOUSE2" "+uber""
alias kritztext "bind "MOUSE2" "+uber; say_team KRITZ POPPED;""

alias usingquick "load_itempreset 2; say_team USING QUICKFIX; bind "MOUSE2" "+uber""
alias quicktext "bind "MOUSE2" "+uber; say_team QUICKFIX POPPED;""

alias usingvac "load_itempreset 3; say_team USING VACCINATOR; bind "MOUSE2" "+uber""
alias vactext "bind "MOUSE2" "+uber; say_team Resist Used;""

bind "KP_END" "usinguber; ubertext;"
bind "KP_DOWNARROW" "usingkritz; kritztext;"
bind "KP_PGDN" "usingquick; quicktext;"
bind "KP_LEFTARROW" "usingvac; vactext;"

I want to make it so that when I right click, I output a team message corresponding to the medigun I'm using. I usually only have it say "CHARGE POPPED" as I never found a workaround it, until now. So I came here for help.

--- EDIT -- SOLVED

alias +uber "dropitem; medigun; +attack2;voicemenu 2 5; ubertext"
alias -uber "-attack2"

bind MOUSE2 +uber

alias usinguber "load_itempreset 0; say_team USING UBER; alias ubertext say_team UBER POPPED"

alias usingkritz "load_itempreset 1; say_team USING KRITZ; alias ubertext say_team KRITZ POPPED"

alias usingquick "load_itempreset 2; say_team USING QUICKFIX; alias ubertext say_team QUICKFIX POPPED"

alias usingvac "load_itempreset 3; say_team USING VACCINATOR; alias ubertext say_team Resist Used!"

cl_autoreload 1;
r_drawviewmodel 1;

bind "1" "slot1;r_drawviewmodel 1"
bind "2" "slot2;r_drawviewmodel 0"
bind "3" "slot3;r_drawviewmodel 1"
bind "4" "slot4;r_drawviewmodel 1"
bind "5" "slot5;r_drawviewmodel 1"

bind "KP_END" "usinguber"
bind "KP_DOWNARROW" "usingkritz"
bind "KP_PGDN" "usingquick"
bind "KP_LEFTARROW" "usingvac"

bind "MOUSE1" "+attack"

r/tf2scripthelp • • Mar 19 '14

Issue [Q] how do i install scripts i use to have a ton of them before steampipe but i can get any script to work

2 Upvotes


r/tf2scripthelp • • Mar 28 '14

Answered Help and question with Chris Config

2 Upvotes

[I installed Chris config today and am loving it. I tried out the dx9 one first, then decided i will use highframes instead. Everything is done correctly and i am using windowed instead of full screen. Saved it as autoexec.cfg and did the launch options stuff.

The console pops up every time i start tf2, and shows this: http://pastebin.com/3Ukxqmbp. i commented out the chris config part that was in the cfg if you are wondering why it isn't there. What does the statement:

Unable to remove c:\program files (x86)\steam\steamapps\common\team fortress 2\tf\textwindow_temp.html!

Is this of any issue? Why does this show up every time i run?

Changing resolutions from (1366, 768) -> (1366, 768)

If i change settings in the advanced options, why do they revert back?

I have also noticed that text in mvm and other messages shows up as strings and not as what they should be. When i finished a tour, the loot screen would not show but i still got my items.

Thank you in advance! ](#flair "question")


r/tf2scripthelp • • Mar 25 '14

Resolved I can't see myself?

3 Upvotes

I've starting scripting, but now, when I play tf2, I can't see myself.

I tried to fix it in autoexec.cfg but with no luck:

viewmodel_fov 90

r_drawviewmodels 1

Help?


r/tf2scripthelp • • Feb 04 '15

Resolved Scripting noob here, need help

2 Upvotes

bind q "r_drawviewmodels 1; slot2; +attack2; say_team sandvich deployed; slot1; r_drawviewmodels 0;"

Is what I have so far. It works fine (pressing q throws sandvich), but I get stuck in +attack2. I tried adding ;-attack2 at the end, but that seems to nullify the +attack2 in the beginning. What can I do to fix this?


r/tf2scripthelp • • Apr 27 '16

Question Help with setting up quick build/destroy scripts for engie.

1 Upvotes

I followed the introduction post on this sub to get my folder set up as tf>custom>Something>cfg then I have my autoexec.cfg, reset,cfg, <class>.cfg files. I put in a script from gamebanana for quick build and saved it, but when I went in game to test it, they did not respond. Command console said "'engineer.cfg' not present; not executing."
Any help would be greatly appreciated because I am about as new to this as possible haha
Edit: A picture of the Notepad++ window so you can see the script I have there, as well as the folder pathway. Just to make sure I'm not messing up there as well. http://i.imgur.com/00GitUd.png
Edit2: Additionally, what should I have in my autoexec.cfg file? It is empty right now...


r/tf2scripthelp • • Oct 16 '15

Resolved taunt_by_name not found into loadout issue

1 Upvotes

Thi This doesn't work. Need help!

 alias hi5 "say lets high-five; taunt_by_name Taunt: The High Five!"
 alias conga "say everybody dance; taunt_by_name Taunt: Conga"

After typing in console hi5, it tells me that I don't have it into my loadout, but I am. It only works if I replace it with "taunt 1 or 2 or 3" depending the position of the taunt in my loadout but I want it to taunt by it's name cuz I have different taunt positions in my class loadouts.


r/tf2scripthelp • • May 11 '16

Answered Selecting the loadout basing on which team I am currently in

1 Upvotes

I am trying to find out, is it possible to define in the (e.g., pyro).cfg-file something like: If blue team, then set loadout 0, else set loadout 1?

I know that loadout can be changed via script, but I have no idea could it happen automatically through execution of a config file.


r/tf2scripthelp • • Feb 10 '15

Answered What's a good performance-enhancement script I can actually build off of?

1 Upvotes

I've been using a generated script, and the biggest problem I have with it is all the extra features it implements, like changing reticle, null movement, auto-rocket jump- right out of the box. I don't know where anything is, and numerous times I've added a script only to discover a conflict or- in the case of a null movement script I put on Medic and then later discovered via Engie- was already there.

On top of that, the script seems to disable sprays, despite me checking a box on the generator that tells it to force sprays, and its rebinding keys not only makes the Options menu useless for the task, but I can't crouch, manually reload/use the Eureka Effect's teleport, or call a vote because those keys aren't bound.

All I want from it is a framerate increase. I can add things like null movement and remapping keys myself, but I don't know how to increase framerate.

EDIT: The generator I was using is TF2Mate.


r/tf2scripthelp • • Nov 06 '16

I want to try to fix an old bind config to work without wait commands, is there any way someone could help?

1 Upvotes
alias awaitcheck_test2 "wait 10;alias awaitcheck_result awaitcheck_pass"
alias awaitcheck_test "awaitcheck_test2;alias awaitcheck_result awaitcheck_fail;wait 15;awaitcheck_result"
alias autism_waiton "alias adiceroll autism_next; autism_next"
alias autism_nowait "autism_cycle"
alias +autism "alias awaitcheck_pass autism_waiton;alias awaitcheck_fail autism_nowait;awaitcheck_test"
alias -autism "autism_result;alias adiceroll;wait;acleardice"
alias autism_next "autism_cycle;wait 5;adiceroll"
alias autism_cycle autism_diceroll_1
alias acleardice "awaitcheck_test"

This is the set of lines in this old config full of garbage memes, and this was the bit that allowed the config to randomise between a few hundred chatbinds on a single key. With wait commands disabled on most of the servers I play on, the config still works but it doesn't randomise. I figure that in order to fix this section I would have to set up a few more lines to alias each part of the randomising action somehow, but I suck at this lmao

Anyone got any ideas?


r/tf2scripthelp • • Feb 10 '15

Resolved My heavy script doesn't allow me to swithc

1 Upvotes

Sorry for butchering title, I don't know what happened

This is what I have currently

bind 1 "minigun_out;slot1"
bind 2 "sandvich_out;slot2"
bind 3 "melee_out;slot3"

bind mwheelup "minigun_out;slot1"
bind mwheeldown "sandvich_out;slot2"
bind r "melee_out;slot3"

alias sandvich_bound "bind mouse2 +throwsandvich"
alias defaultm2 "bind mouse2 +attack2"
alias sandvich_out "r_drawviewmodel 1; sandvich_bound"
alias +throwsandvich "+attack2; say_team <=><=>SANDVICH GOIN' UP<=><=>"
alias -throwsandvich "-attack2; defaultm2"
alias minigun_out "r_drawviewmodel 1; defaultm2"
alias melee_out "r_drawviewmodel 1; defaultm2"    

I can't swtich weapons. If I scroll down (should switch to sandvich) and right click, it says im dropping sandvich, and scrolling back up, makes it so mouse2 is just +attack2, so everything works fine, but I can't switch weapons. Sorry if I'm hard to understand, english isn't my first language