r/tf2scripthelp • • Feb 10 '20

Resolved 'medic.cfg' not present; not executing

2 Upvotes

I have a medic cfg that only changes 1 command from my normal config:

bind "MOUSE2" "+attack2;say_team -==UBER Used==-" whereas my normal cfg is just +attack2

but every time I switch, it comes up in the console with what is in the title. I have the config saved in:

C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\custom\myscripts and it is with its accompanying .txt file both of which are called "medic.cfg"

Is there anything that i'm doing wrong?


r/tf2scripthelp • • Feb 08 '20

Answered Are there any in-game commands that would make flame particles less obstructing of vision, or would I need a mod?

2 Upvotes


r/tf2scripthelp • • Dec 11 '19

Answered Help with medic Ubercharge broadcast script

2 Upvotes

Ok so currently I have a medic script that tells my team I used ubercharge In the team chat whenever I press mouse2 that looks like this:
alias "popMediG" "say_team > POPPED UBERCHARGE (MEDI GUN)"

alias "popKritz" "say_team > POPPED UBERCHARGE (KRITZKRIEG)"

alias "popQuick" "say_team > POPPED UBERCHARGE (QUICK-FIX)"

alias "popVacci" "say_team > POPPED UBERCHARGE (VACCINATOR)"

alias "pop" "popMediG"

alias "+uber" "spec_prev; maskVoice; +attack2; pop"

alias "-uber" "maskVoice; -attack2"

bind "MOUSE2" +uber

but right now it's only able to say the first message. I don't want my team to think I popped stock uber when I'm actually using the vaccinator. Is there a way for me to be able to press a button in-game that switches which message it broadcasts when I use Uber?


r/tf2scripthelp • • Oct 31 '19

Answered how do you have weapon specific viewmodels

2 Upvotes

like you have your secondary viewmodels off but you want to have viewmodels on for like the jarate


r/tf2scripthelp • • Aug 06 '19

Resolved Ran into a snag trying to setup multiple random killsounds.

2 Upvotes

I wanted to have multiple killsounds and followed this guide ( https://steamcommunity.com/sharedfiles/filedetails/?id=528571728 ) perfectly, but only my first killsound plays whenever I get a kill. I know that all of them work because the other killsounds will play correctly when the command "play ui/killsound_percussion#" is typed into the console, but still only the first one will actually play after kills. If anyone could please give some insight on my problem, it would be greatly appreciated.

Here is the text for games_sound_weapons.txt...

"Player.KillSoundPercussion"

{

"channel"		"CHAN_STATIC"

"volume"		"1"

"soundlevel"  	"SNDLVL_NONE"	

"pitch"			"PITCH_NORM"
"rndwave"

{

	"wave"	")ui/killsound_percussion.wav"

	"wave"	")ui/killsound_percussion2.wav"

	"wave"	")ui/killsound_percussion3.wav"

	"wave"	")ui/killsound_percussion4.wav"

	"wave"	")ui/killsound_percussion5.wav"

	"wave"	")ui/killsound_percussion6.wav"

	"wave"	")ui/killsound_percussion7.wav"

	"wave"	")ui/killsound_percussion8.wav"

	"wave"	")ui/killsound_percussion9.wav"

	"wave"	")ui/killsound_percussion10.wav"

	"wave"	")ui/killsound_percussion11.wav"

	"wave"	")ui/killsound_percussion12.wav"

	"wave"	")ui/killsound_percussion13.wav"

}

}


r/tf2scripthelp • • Jun 24 '19

Answered (Image in post) How do I bind a key to close the taunt menu? I can't find it anywhere.

2 Upvotes

This is what I need, I think by default it's q but i'm using q for something else. I'd like to set it to MOUSE3 please.


r/tf2scripthelp • • Jun 01 '19

Answered is there a console command or a script that make you can't move forward while crouching??

2 Upvotes

r/tf2scripthelp • • May 09 '19

Answered i want a key to toggle this bind on and off

2 Upvotes
alias "+quick_gun" "slot2;+attack"
alias "-quick_gun" "-attack;lastinv"
bind "MOUSE2" "+quick_gun"

ECHO Quick Shotgun-Changer Script (11.05.2009) executed

bind "MOUSE5" "attack2"

i want m5 to swap m2 from the shotty to the actual m2 use. any idea how?


r/tf2scripthelp • • Apr 09 '19

Resolved Guys, I REALLY need help with this config, lol. Pls help.

2 Upvotes

Stay with me here...

/////Pyro MLG Config

/////Trial

///

alias One_to_Last_Used "bind q lastinv; r_drawviewmodel 1; viewmodel_fov 70; Last_Used_Back_to_One";

alias Last_Used_Back_to_One "bindtoggle q "One_to_Last_Used" 0; slot1; r_drawviewmodel 0; viewmodel_fov 25; "One_to_Last_Used" 1";

bind "1" "slot1; r_drawviewmodel 0; viewmodel_fov 25; One_to_Last_Used";

///

alias Two_to_Primary "bind q "slot1; r_drawviewmodel 0; viewmodel_fov 25; Then_Back_to_Two";

alias Then_Back_to_Two "bindtoggle q "Two_to_Primary" 0; slot2; r_drawviewmodel 1; viewmodel_fov 70; "Two_to_Primary" 1"'

bind "2" "slot2; r_drawviewmodel 1; viewmodel_fov 70; Two_to_Primary";

///

alias Three_to_Primary "bind q "slot1; r_drawviewmodel 0; viewmodel_fov 25; Then_Back_to_Three";

alias Then_Back_to_Three "bindtoggle q "Three_to_Primary" 0; slot3; r_drawviewmodel 1; viewmodel_fov 70; "Three_to_Primary" 1"'

bind "3" "slot3; r_drawviewmodel 1; viewmodel_fov 70; Three_to_Primary";

///

So, Ive been trying to get this config to work and from what I can tell, the concept is simple yet the actuall procedure is VERY complex.

So far all this config has done is crash my game, but I think I'm on the right track here, kinda...

The Idea behind it is that at all times I want my pyro's primary, secondary and mele spots looking like this at all times, (respectively)

r_drawviewmodel 0; viewmodel_fov 25

r_drawviewmodel 1; viewmodel_fov 70

r_drawviewmodel 1; viewmodel_fov 70

But my problem is that I still want to use quickswitching weapons to some extent... Hence why the aliasing is nescesary.

So far its not a traditional quickswitch, as I didn't try and program in a 2nd to 3rd/ vice versa at all.

Does anyone here know how to solve my problem, or is this actually impossible to script?

Please help, lol.


r/tf2scripthelp • • Mar 28 '19

Answered How to stop aliases

2 Upvotes

I made a script that says the entire bee movie script 127 characters per 5 seconds which takes about 33 minutes to finish and I want to be able to stop it early but I'm trash at programming so I don't know how.

My script puts an alias that says every 127 character segment of the bee movie script, then groups of 10 are given aliases with wait commands in between, then those groups are again put into groups of 10 with wait commands 10x longer in between, then puts those remaining 4 groups into an alias with wait commands 100x longer in between.


r/tf2scripthelp • • Feb 28 '19

Answered Need help making a medic crossbow script.

2 Upvotes

This is what I've done so far:

alias +xbow "slot1"
alias -xbow "+attack;-attack;lastinv"

bind mouse3 +xbow

This is supposed to switch to the crossbow when mouse3 is held then fire it and switch back to the previous weapon when released. But it doesn't work. Pls help.


r/tf2scripthelp • • Dec 27 '18

Question command for allowing all custom files from the server?

2 Upvotes

my autoexec disables custom files from community servers for some reason, i wanted to know the command so i search or add to my autoexec.


r/tf2scripthelp • • Jul 14 '18

Answered Is it possible?

2 Upvotes

Is it possible to overbind binds in pda menu? Like If you click "2" then It would build sentry insted of dispenser for example


r/tf2scripthelp • • Jul 11 '18

Issue Help With Taunts

2 Upvotes

So I have 1-4 bound to quick build and destroy engineer buildings and I have my weapons bound to 5-0, but doing this has messed up my taunt menu so that only the first four taunts work. I would like to get my taunt menu working again and would prefer not to have to bind taunts to a single key. I tried this:

bind 5 "slot5; slot1" 
bind 6 "slot6; slot2" 
bind 7 "slot7; slot3" 
bind 8 "slot8; slot4" 
bind 9 "slot9; slot5" 
bind 0 "slot0; slot6"

but it tries to switch to both slots so I end up getting the missing weapon sound every time I switch weapons. So I messed around for a while and came up with this:

alias taunt5 “taunt 5; tauntoff”
alias taunt6 “taunt 6; tauntoff”
alias taunt7 “taunt 7; tauntoff”
alias taunt8 “taunt 8; tauntoff”

alias taunton "+taunt; bind 5 taunt5; bind 6 taunt6; bind 7 taunt7; bind 8 taunt8"
alias tauntoff "bind 5 slot1; bind 6 slot2; bind 7 slot3; bind 8 slot4; bind g taunton"
bind g "taunton"

this works, but after I taunt the normal weapon bindings don't return right away. Instead, I have to taunt one more time. For example: If I press "g" and then "5" I will do the correct taunt, but if I cancel the taunt and press "5" I will taunt again. So somehow I need to stop this from happening.

Alternatively, I think I could just make "g" cycle between "taunton" and "tauntoff," but I can't seem to find a command to cancel taunts. I tried using space to both jump and trigger "tauntoff," but it seems that rebinding it (even to +jump) removes its taunt cancelling abilities.

I know next to nothing about scripting, so hopefully I'm not making some obvious error. Any help fixing this would be greatly appreciated.


r/tf2scripthelp • • May 13 '18

Question Trying to summon a sentry with the builder's name

2 Upvotes

I am trying to set a keybind to summon a sentry that has the name of the builder attached. Currently, my script is the following -

bind RSHIFT "ent_create obj_sentrygun teamnum 2 defaultupgrade 3 spawnflags 8;ent_fire !picker setbuilder !self"

But when I press RSHIFT my game crashes. I have also tried

alias Spawn_Sentry "ent_create obj_sentrygun teamnum 2 defaultupgrade 3 spawnflags 8" "ent_fire !picker setbuilder !self"

bind RSHIFT Spawn_Sentry

But this just does nothing. Any help? Or is this not possible.


r/tf2scripthelp • • Feb 11 '18

Answered Is it possible to make class specific hitsounds play on certain classes with the other hitsounds besides the default using the SND and tf_dingaling commands

2 Upvotes

I just wana make some class specific hitsounds ;-; so i can feel the tf2 meme experiance i have all the files i need like the 9 hitsounds but i hear that i need more than 9 and i have to clone a few of em in the files but idk how to format anything in scripts or what to name what so that it properly works so at this point im thinking its not possible.


r/tf2scripthelp • • Nov 17 '17

Answered Pyro spin script

2 Upvotes

I want to submit a new idea to all of you: a new kind of spin script

We know that wait doesn't work on valve servers anymore, but would it be possible to just loop this order while having spin speed be really fast? Or would that just crash TF2?

alias recurse "-left; +forward; +right; -forward; +back; -right; +left; -back; recurse;"

I'm not sure how to stop that loop, or if that would even work, which is my question.


r/tf2scripthelp • • Aug 30 '17

Question Need help making a loop script for a command

2 Upvotes

Hi, I need help making a script that will loop sm_robot every second or so using wait, which I can toggle on and off at will. Thanks for your help!


r/tf2scripthelp • • Aug 29 '17

Question I don't have a crosshair. Any script to fix that?

2 Upvotes

I just got into scripting yesterday (so I am a total noob, bare with me). Anyway when I went to play today, I had no crosshair unless I was zoomed in with the sniper rifle. Any command that can fix that? In addition since I started using scripts, in the top right of TF2, even in game, there is a wall of text which I assume is the output of the console. Anyway to hide that? Sorry if these are dumb questions, or the answer doesn't involve scripting.


r/tf2scripthelp • • Aug 07 '17

Question Viewmodel toggle script prevents using taunts and disguises

2 Upvotes

[](#flair "questionS So I like to be able to toggle viewmodels but always keep my melee visible. I currently use this script:

bind "mouse5" "comptoggle"

alias "comptoggle" "compon"
alias "compon" "competitive; alias "comptoggle" "compoff""
alias "compoff" "pubbing; alias "comptoggle" "compon""

alias def4 "r_drawviewmodel 1"
alias def1 "bind 1 slot1"
alias def2 "bind 2 slot2"
alias def3 "bind 3 slot3"
alias pubbing "def1; def2; def3; def4"      

alias slotview1 "weapon1; r_drawviewmodel 0"
alias slotview2 "weapon2; r_drawviewmodel 0"
alias slotview3 "weapon3; r_drawviewmodel 1"
alias comp1 "bind 1 "slotview1""
alias comp2 "bind 2 "slotview2""
alias comp3 "bind 3 "slotview3""
alias comp4 "r_drawviewmodel 0"
alias competitive "comp1; comp2; comp3; comp4"

I found it on gamebanana, But the issue is when I have viewmodels toggled off it prevents me from using taunts 1-3 and prevents me from using disguises 1-3. Can anyone tell me why and/or help me out please?


r/tf2scripthelp • • Jul 17 '17

Resolved Want to toggle rocketjump/attack2

2 Upvotes

I have a rocket jump script for soldier. It sets mouse2 to rocketjump. This works fine normally, but prevents me from using the alt fire(+attack2) on other weapons(i.e. cow mangler) in the soldier class.

To get around this, i would like to make the shift key toggle between the rocket jump script, and treating mouse2 as +attack2. I've tried creating a script myself, but it won't work. Here's what I have so far.

alias +rocketjump "+jump;+duck;wait;+attack"
alias -rocketjump "-jump;-attack;wait;wait;wait;-duck"

alias mouse2+jump "bind mouse2 +rocketjump"
alias mouse2-jump "bind mouse 2 -rocketjump; bind mouse2 +attack2"

bindtoggle shift "mouse2+jump" "mouse2-jump"	

edit:

I figured it out. I'll paste the script below for anyone that wants it. Remember to put it in your soldier.cfg, not your autoexec. I still have no idea why it wouldn't work before though.

//rocketjump
//shift toggles the setting between rocketjump and regular binding

alias +rocketjump "+jump;+duck;wait;+attack"
alias -rocketjump "-jump;-attack;wait;wait;wait;-duck"

alias mouse2jump "bind mouse2 +rocketjump; bind shift mouse2attack2"
alias mouse2attack2 "bind mouse2 +attack2; bind shift mouse2jump"

This is only really useful if you want to use the cow mangler, while keeping the altfire(offcially +attack2) bound to mouse 2.


r/tf2scripthelp • • Jul 13 '17

Explanation How to make binds/configs that say a player's name/class on death?

2 Upvotes

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