r/tf2scripthelp • • Dec 11 '15

Issue Help with medic and spy scripts not working

2 Upvotes

I've followed all of the directions on the introduction page as far as I know.

In my medic.cfg:

exec reset
bind mouse2 say_team "*****UBER POPPED, GO GET EM CHAMPS*****"
alias autocall_initial "hud_medicautocallersthreshold 75" // normal percentage (without button press)
alias autocall_temp "hud_medicautocallersthreshold 150" // percentage when pressing button
alias +autocall_temp_hit "autocall_temp"
alias -autocall_temp_hit "autocall_initial"        
bind CAPSLOCK "+autocall_temp_hit"

I just got the medic radar script online, however that and the uber message script both dont work.

Also in my spy.cfg , a simple viewmodel script as I only want them for spy:

exec reset
r_drawviewmodel 1

In my reset.cfg , stuff that 'fixes' m2 and caps lock for other classes, along with my preferred viewmodel and weapon switching commands:

bind mouse2 +attack2
unbind CAPSLOCK
alias "weaponone" "slot1;r_drawviewmodel 0"
alias "weapontwo" "slot2;r_drawviewmodel 0"
alias "weaponthree" "slot3;r_drawviewmodel 1"
bind MWHEELUP weaponone
bind MWHEELDOWN weapontwo
bind MOUSE3 weaponthree
viewmodel_fov 90

All of my class.cfg's and my reset.cfg are in tf>custom>my_custom_stuff>cfg , along with my autoexec.cfg, which has an fps config.


r/tf2scripthelp • • Dec 08 '15

Resolved Scout.cfg keeps executing even after getting deleted

2 Upvotes

I tried rebindinding keys and it still runs the script when i play scout.

The script which i installed was supposed to execute a perfect double crouch jump which i bound to mouse2


r/tf2scripthelp • • Dec 05 '15

Question I need help with button hold scripts

2 Upvotes

Why does this script work:

alias 	bsentry "destroy 2;build 2"

alias 	bdispens "destroy 0;build 0"

alias 	bteleentr "destroy 1;build 1"

alias 	bteleexit "destroy 3;build 3"


alias 	basentry "bind mouse1 bsentry"

alias 	badispens  "bind mouse2 bdispens"

alias	bateleentr "bind mwheeldown bteleexit"

alias	bateleexit "bind mwheelup bteleentr"

alias	+startbuild "basentry; badispens; bateleentr; bateleexit"

alias 	-startbuild "bind mouse1 +attack; bind mouse2 +attack2; bind mwheeldown invnext; bind mwheelup invprev"

bind shift +startbuild

But the one I wrote doesn't?

alias enescout 	bind "KP_END" "disguise 1 -1"

alias enesoldier bind "KP_DOWNARROW" "disguise 3 -1"

alias enepyro   bind "KP_PGDN" "disguise 7 -1"

alias enedemoman bind "KP_LEFTARROW" "disguise 4 -1"

alias eneheavy bind "KP_5" "disguise 6 -1"

alias eneengineer bind "KP_RIGHTARROW" "disguise 9 -1"

alias enemedic bind "KP_HOME" "disguise 5 -1"

alias enesniper bind "KP_UPARROW" "disguise 2 -1"

alias enespy bind "KP_PGUP" "disguise 8 -1"

alias friendscout bind "KP_END" "disguise 1 -2"

alias friendsoldier bind "KP_DOWNARROW" "disguise 3 -2"

alias friendpyro bind "KP_PGDN" "disguise 7 -2"

alias frienddemoman bind "KP_LEFTARROW" "disguise 4 -2"

alias friendheavy bind "KP_5" "disguise 6 -2"

alias friendengineer bind "KP_RIGHTARROW" "disguise 9 -2"

alias friendmedic bind "KP_HOME" "disguise 5 -2"

alias friendsniper bind "KP_UPARROW" "disguise 2 -2"

alias friendspy bind "KP_PGUP" "disguise 8 -2"


alias "+disguise" "friendscout; friendsoldier; friendpyro; frienddemoman; friendheavy; friendengineer; friendmedic; friendsniper; friendspy"

alias "-disguise" "enescout; enesoldier; enepyro; enedemoman; eneheavy; eneengineer; enemedic; eneesniper; enespy"

bind shift +disguise

Edit: Formatting


r/tf2scripthelp • • Nov 18 '15

Question Help with attack script

2 Upvotes

I was just wondering if it's possible to make a script where you shoot once, wait and loop it. The intended use is for an amby script where you justv have to aim and it shoots with headshot intervals for you. It's more of a proof of concept but it seems impossible from my perspective. I was hoping I might get some insight from someone who has scripting experience since I'm very new to it.


r/tf2scripthelp • • Oct 28 '15

Question Help with key combinations.

2 Upvotes

I'm trying to make a script that makes so when I hold down "f" and press 1, 2, 3, or 4, I switch to the corresponding loadout. I also have "+inspect" and "lastdisguise" bound to "f". I tried looking on the wiki, but I just can't figure it out. I've never understood the alias command very well. So, can one of you please help me out, and also possibly explain how it works, since I'm planning on making more key combos if I figure it out.

Edit: Welp, Scream Fortress is out. Guess I'll submit this post sometime later.


r/tf2scripthelp • • Oct 22 '15

Resolved Modified damage numbers not working

2 Upvotes

FIGURED IT OUT, SET THE FILE TO READ ONLY


Anyone know what could be preventing the "HudDamageAccount.res" modified damage numbers file from working? I've tried placing it in:

G:\Program Files\steamapps\common\Team Fortress 2\tf\custom\customhud\resource\ui

and

G:\Program Files\steamapps\common\Team Fortress 2\tf\resource\ui

neither of them work. I'm using Chris's highframes config which is the only thing I can think of that might be interfering. This is what the file contains:

"Resource/UI/HudDamageAccount.res"
{
	"CDamageAccountPanel"
	{
		"fieldName"				"CDamageAccountPanel"
		"text_x"				"0"
		"text_y"				"0"
		"delta_item_end_y"		"0"
		"PositiveColor"			"255 255 0 255"
		"NegativeColor"			"255 255 0 255"
		"delta_lifetime"		"2"
		"delta_item_font"		"HudFontMediumSmall"
		"delta_item_font_big"	"HudFontMediumSmall"
	}
}

r/tf2scripthelp • • Oct 03 '15

Answered Would it be possible for my class configs to write to a seperate file when they are excecuted? So I could tell, outside of TF2, which class I'm currently playing?

2 Upvotes


r/tf2scripthelp • • Jul 02 '15

Resolved Why doesnt this script work?

2 Upvotes

alias "maskuber" "voicemenu 0 8"

bind "f1" "maskuber"


r/tf2scripthelp • • Jun 11 '15

Answered Guys, i seriously need your help. TF2 has become unplayable for the strangest reason, and i think it's likely something to do with my autoexec.cfg.

2 Upvotes

Ok, so the rundown is, I'm in a game, everything is fine and dandy, then suddenly (usually after i die), everyone else in the game starts stuttering except for me. As in, i can move around fine with great fps, but everyone else is stuttering and moving so weird that it makes the game unplayable, you literally cannot hit a target properly that is stutter/jittering, almost like mini porting.

Now this is most definitely on my side. everyone else in the game has normal ping, and i asked about it in multiple servers and they had no clue what i was talking about.

I've tested my connection using the netgraph, my connection is not the problem. I even ran a bunch of speed tests and i had extremely good ping.

So i also had this problem a week ago and made a thread about it earlier. Turns out, my problem was solved for then after my weird solution.

Well the only thing that has changed since then, is that i have been experimenting with different gfx cfgs to see what the right option for me would be.

At that particular time when it happened, i had the Comanglia FPS cfg. Before, i was using chris maxframes, but the Comanglia seems to be the best all around for me after slight modifications.

I then tried out one of the newer and less known ones, Rhapsody. It was very user friendly and went into a lot more detail than the other cfgs I've seen, unfortunately, it didn't work too well for me.

So i decided i would go back to Comanglia cfg and stick with it (thinking that weird problem would still be gone after my fix that didn't work as well as i thought it did.) It was also the one i liked the most and gave me what i wanted graphics wise and frame wise.

So i started setting up the Comanglia cfg after making sure to delete the other one, also to delete the old default cfg and then verifying integrity of game cache, which fixed my problem last time. (have no idea if that actually does anything, could someone clear that up for me?, i just did it to be safe, though I'm sure there is an easier way.). After that, i made sure to makes sure the new Comanglia graphics cfg was not actually in my custom cfg script folder at the time, removed my launch options and then went to the sidebar here and clicked runsafe and then put exec config_default into the console (not sure if that is redundant in my case?). I exited after that and then added my launch settings.

So, after all of that, i put the new Comanglia cfg in, and i made some very minor modifactions, and then started the game. It runs beautifully! Perfect fps and graphics that don't make it look like it's in the beta mode.

I played one game, and everything was fine. However, after the server changed, the same thing started happening again. And this time my old fix didn't work for it. I tried doing my old fix twice, restarting my laptop and all of that. I then ran the game and as soon as i join a server, it started happening straight away again.

Literally, my gameplay will be stellar, it's just every single other player has this weird jittery mini stutter movement. It really makes it impossible to play, you can't hit a thing. There is no exception on players too, my team, their team, it happens to every player.

Now i don't know for sure if it's my cfg, but i think it's likely. And I'm really hoping that there is a setting i can change to fix this.

I've googled thoroughly to see if others have had this problem but could not find an answer.

I will link the post to pastebin since it's too large for here.

I think the main part to look at is all the stuff below the gfx area, since that's where i think the problem is coming from. But i don't know as i am no expert so i posted the whole thing.

Here it is http://pastebin.com/stcUMViH

You guys are the best and have have solved basically every question I've ever asked here, so I'm really hoping someone notices something in the cfg that could be causing it, or if anyone knows anything separate that could be doing it.

I'd seriously appreciate any help, no matter how small.

I apologize for any typos/grammar mistakes, i am severely overtired.


r/tf2scripthelp • • Jun 10 '15

Resolved Crosshair switcher (or transparent viewmodel settings) forces viewmodels to stay off

2 Upvotes

I recently got a new computer, and with it, means a whole new slew of configs.

In the new file, I've started to tinker around with transparent viewmodels (mainly for melee weapons). Also, with my new graphics card I don't need an fps config anymore, so I've switched off my "TFMATE" crosshair switcher to a FAR more elegant solution found here: http://tf2.gamebanana.com/scripts/8417

My custom settings are as follows: (Found in my autoexec, slightly changed per class)

alias cross1 "r_drawviewmodel 0;viewmodel_fov 0;cl_crosshair_red 255;cl_crosshair_green 255;cl_crosshair_blue 0;cl_crosshair_scale 30;cl_crosshair_file crosshair7" alias cross2 "r_drawviewmodel 0;viewmodel_fov 0;cl_crosshair_red 255;cl_crosshair_green 255;cl_crosshair_blue 0;cl_crosshair_scale 15;cl_crosshair_file crosshair5" alias cross3 "r_drawviewmodel 1;viewmodel_fov 110;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;cl_crosshair_scale 10;cl_crosshair_file crosshair5"

however, for weapons in which the crosshair switcher settings has viewmodels turned off, I am unable to toggle them back on. Conversely, for weapons that DO have viewmodels turned on, I can turn them off and back on again.

Please let me know what I can do to be able to turn on/off viewmodels at whim, whilst still keeping my crosshair switcher settings.


r/tf2scripthelp • • Jun 09 '15

Answered A few 'Not Bound' issues in game. I'm unsure of how to assign binds to some of these.

2 Upvotes

EDIT* I forgot to add to the title that i have two separate questions/issues.

Hey guys.

For some things in TF2, in game, sometimes it will show me that something is not bound, therefore i can't use it.

For example, the disguise menu for spy. When i open the disguise menu, i cannot cancel myself opening it like i could in the past. As in, if i don't pick a disguise, I'm stuck holding the disguise menu. It's more annoying with the taunt menu, sometimes i would accidentally click it at the most inconvinient times and the only way to cancel out would be to pick a taunt. With the spy, using q (which is bound to slot3;slot1) will cancel the menu, but it is still a little annoying. The taunt thing is more of an issue. I did check the taunt related issues link but i couldn't see a solution to cancel the menu.

I've noticed this a couple other times on different classes such as something not being bound to throw a sandvitch as a heavy. At least that's what it says in the tip things before the match starts, something like, "As a heavy, you can share your sandvitch with a teammate by throwing it at them using <NOT BOUND> to heal them."

I'm more concerned about the Taunt and spy issue though. So i'm wondering if any ones knows any quick fixes for this? Or things i can add to fix it? I had a look at the cvarlist, but I'm unsure of which one can fix the taunt and disguise menu.

My other question which might not be for this sub (sorry if it isn't).

I was wondering if it's possible in Notepad++ to mass delete, or mass add comments to lines of script. I did use google, but none of the methods suggested seemed to work. I'm wondering if it's because the language i have chosen is source? I use the syntax highlighting and it's extremely helpful and has made my scripts a lot more readable and has helped me quite a bit when i have had some problems. Thank you to /u/clovervidia for making that. That's when i put the language in notepad++ to source.

So I'm wondering if anyone here who also uses notepad++ knows how to do this.

Thanks.


r/tf2scripthelp • • Jun 08 '15

Resolved Engineer/Spy PDA/weapon switch script issues.

2 Upvotes

My goal with my script is to allow my Engineer and Spy to access thier Primary, Secondary, and Melee (in Spy's case, Revolver, Sapper, Knife, and in Engineer's case, Shotgun, Pistol, Wrench) with Scrollwheel, and to access thier respective PDAs with Z and X (using both for Engineer's build/destroy PDAs and only Z for Spy's PDA.)

To this end, I took /u/genemilder 's crosshair/viewmodel script and modified it, at first only adding the PDAs as Z and X. This showed my my first serious bug: neither class could switch weapons, but every other class could thanks to a reset script. Both classes, however, could access thier PDAs with little issue.

I found that the cause was that every alias used to switch weapons wasn't actually defined. The script defined aliases that would define the aliases when called, but at no point were the aliases called. To this end, I added a hotfix.

The hotfix patched... most of the issue. The result was that melee and secondary were accessible with mousewheel, but primary wasn't- but for some reason, it was always accessible via Q. Again, all three PDAs could be accessed with little issue.

My Engineer script with its hotfix (and some commenting thrown in) can be found here. The Spy script is almost identical, the only difference being the lack of setting slot5 to X- Spy has only one PDA, his disguise kit, while Engineer has two.


r/tf2scripthelp • • Jun 07 '15

Resolved Is it possible to bind something to the start of the round?

2 Upvotes

Is it possible to bind a command to activate at the start of the round? I'm wanting to use an "sm" command to the very start of an arena round, and I'm wondering if this is possible. If not, how could I do this so it activates just after the start of the round, other than simply

bind key "sm;wait 2;sm;wait 2;sm;wait 2;sm;wait 2;"

Edit: ended up with this, just altered my bunnyhop script.

alias warden_bind "sm_warden;wait 2;warden_jump"
alias warden_alias "alias warden_jump warden_bind"
alias warden_stop "alias warden_jump"
alias +warden "warden_alias;warden_jump"
alias -warden "warden_stop"

Alias wardentoggle "wardentoggleon"
alias wardentoggleon "bind uparrow +warden; alias wardentoggle wardentoggleoff"
alias wardentoggleoff "bind uparrow sm_warden; alias wardentoggle wardentoggleon"
bind "uparrow" "wardentoggle"

r/tf2scripthelp • • Jun 06 '15

Answered Need help with stabbys viewmodel script

2 Upvotes

So i am using stabbys viewmodel script for a few months now and it worked perfectly But now it just doesnt work anymore Every time i Press 2 ( my Button for the sapper) my game Crashs and i dont know why And it only Happens as spy Every Other class is working fine I Would really appreciate it if someone can help me


r/tf2scripthelp • • Jun 06 '15

Resolved How do you bind a key to the taunt menu?

2 Upvotes

I used tf2mate to make a script, and i binded "g" to "taunt" , later on, when i pressed "g" i cou;dn't access the taunt menu.


r/tf2scripthelp • • May 28 '15

Answered Can you use con_filter_text_out with multiple strings?

2 Upvotes

I want to filter a few different strings using the "con_filter_text_out" command, but it seems to only take one at a time. Does anyone know the arguments for this, and if it's possible to filter more than one string at once?


r/tf2scripthelp • • Mar 02 '15

Resolved bind <KEY> impulse 101 not working in a longer line of code

2 Upvotes

well it works fine if i just type it in a single line with qoutes and all like:
bind "e" "impulse 101"

but when i put it in a longer line of code it doesnt work
bind 5 "sv_cheats 1; startLoop; bind 4 noclip; bind e impulse 101; mp_tournament 1; mp_tournament_restart"

anyone know how to fix this?


r/tf2scripthelp • • Feb 21 '15

Answered Requesting aid in regard to looping scripts

2 Upvotes

Recently I have been making a large collection of simple loop scripts for commands, using basic aliases. The problem is trying to stop them, after reading around for some time, I found a post explaining that it could be done, however, it didn't actually explain how to do it. Any help would be appreciated, I simply require a way to stop the loop, even if I have to use a different, more complicated format. Apologies if I'm wasting time and the answer is simple.

Tl;dr - Need a way to break a looping script (e.g: alias loop "voicemenu 0 1;wait 100;loop"), even if it means using a more complicated format.


r/tf2scripthelp • • Feb 19 '15

Resolved Why does binding something to +attack first, then something else make you attack once, but when you put +attack AFTER something it makes you attack forever?

2 Upvotes

So I am trying to make a script where when I press mouse1, I disguise as a friendly spy (thus removing my disguise) and then attack. This is basically to eliminate the enforcer's downside. However, when I tried the following:

bind mouse1 "disguise 8 -2; +attack"

it made me attack forever. However, when doing this:

bind mouse1 "+attack; disguise 8 -2"

I attack only once. Is there a way to get around this?

Thanks.


r/tf2scripthelp • • Feb 16 '15

Answered, kinda Command to get out of the changeclass/changeteam menus?

2 Upvotes

Is there a command for that? Because it's really annoying that escape doesn't get you out of those menus.


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 • • Feb 02 '15

Resolved New to Scripting; wrote an engie script that kinda works, but need help with ending +attack

2 Upvotes

S So, I'll copy and paste what I have below. Essentially it (kinda) does what I want it to, which is to either drop a building, destroy and drop, or just destroy, but after dropping I want the +attack to stop (I just keep punching or whacking) and switch to my shotty. I know I am missing something, but am not sure how to go about fixing. any help would be appreciated.

~Darth Pops

alias dbsentry "destroy 2; build 2; +attack" alias dbdispenser "destroy 0; build 0; +attack" alias dbentrance "destroy 1; build 1; +attack" alias dbexit "destroy 3; build 3; +attack" alias bsentry "build 2; +attack" alias bdispenser "build 0; +attack" alias bentrance "build 1; +attack" alias bexit "build 3; +attack" alias dsentry "destroy 2" alias ddispenser "destroy 0" alias dentrance "destroy 1" alias dexit "destroy 3" bind leftarrow dbsentry bind rightarrow dbdispenser bind uparrow dbentrance bind downarrow dbexit bind 4 bsentry bind 5 bdispenser bind 6 bentrance bind 9 bexit bind 0 dsentry bind - ddispenser bind = dentrance bind 8 dexit


r/tf2scripthelp • • Jan 17 '15

Answered Command that allows TF2 to run at full speed while not the main focused program.

2 Upvotes

By "main focused program", I mean the program currently being clicked on. When you're in windowed mode and you click to say, Chrome, TF2 begins running at lower performance with low FPS. What console command can stop this?


r/tf2scripthelp • • Jan 04 '15

Question Medic Auto-heal

2 Upvotes

So I messed up with my cfg with this new account, so...

I want an auto-heal script to work with just my medic, I know a reset.cfg and a medic.cfg is needed but I forgot how to put that in my folders. Help would be nice