r/Tf2Scripts • • Nov 25 '18

Answered Script that silences specific sounds?

11 Upvotes

All i have are the file names:

flame_thrower_dg_end

flame_thrower_dg_loop

flame_thrower_dg_start

All i need are the directories. Thanks and hopefully this counts as scripting...


r/Tf2Scripts • • Jul 06 '18

Meta Syntax Highlighting for .cfg files

11 Upvotes

I've been building syntax highlighting grammar for TF2's .cfg files:

I made this video showing how to set everything up. Or you can read the install instructions.

I'm still getting things into shape. If you see missing features or bugs, it'd be very helpful if you let me know. You can leave a comment on this thread, or if you have a GitHub account you can open an issue.


r/Tf2Scripts • • Aug 10 '16

Script Competitive chat bi

11 Upvotes

Hi there. I was playing some TF2 this afternoon, and someone was impressed of my binds. He asked me how I could have so many keys, and how I can remember them all.

This is what the script can do:

  • Tell your team which enemy has died.

  • Tell your team as who the enemy spy is disguised.

  • Tell your team which enemy building have been destroyed.

  • Tell your team what uber has been activated and on what player.

It uses these keys on the numpad:

  • The 0, . and Enter to select an option.

  • 1-9 to select a class.

  • And more keys if you want to make it lager.

Here's the script:

alias none  		""
alias unbindnum 	"alias KP_1 none; alias KP_2 none; alias KP_3 none; alias KP_4 none; alias KP_5 none; alias KP_6 none; alias KP_7 none; alias KP_8 none; alias KP_9 none;" 

alias spy_scout		"say_team Enemy spy disguised as scout!"
alias spy_soldier 	"say_team Enemy spy disguised as soldier!"
alias spy_pyro 		"say_team Enemy spy disguised as pyro!"
alias spy_demoman 	"say_team Enemy spy disguised as demoman!"
alias spy_heavy 	"say_team Enemy spy disguised as heavy!"
alias spy_engineer 	"say_team Enemy spy disguised as engineer!"
alias spy_medic 	"say_team Enemy spy disguised as medic!"
alias spy_sniper 	"say_team Enemy spy disguised as sniper!"
alias spy_spy 		"say_team Enemy spy disguised as spy!"
alias switchspy 	"unbindnum; alias KP_1 spy_scout; alias KP_2 spy_soldier; alias KP_3 spy_pyro; alias KP_4 spy_demoman; alias KP_5 spy_heavy; alias KP_6 spy_engineer; alias KP_7 spy_medic; alias KP_8 spy_sniper; alias KP_9 spy_spy"

alias down_scout 	"say_team Enemy scout down!"
alias down_soldier 	"say_team Enemy soldier down!"
alias down_pyro 	"say_team Enemy pyro down!"
alias down_demoman 	"say_team Enemy demoman down!"
alias down_heavy 	"say_team Enemy heavy down!"
alias down_engineer 	"say_team Enemy engineer down!"
alias down_medic 	"say_team Enemy medic down!"
alias down_sniper 	"say_team Enemy sniper down!"
alias down_spy 		"say_team Enemy spy down!"
alias switchdown 	"unbindnum; alias KP_1 down_scout; alias KP_2 down_soldier; alias KP_3 down_pyro; alias KP_4 down_demoman; alias KP_5 down_heavy; alias KP_6 down_engineer; alias KP_7 down_medic; alias KP_8 down_sniper; alias KP_9 down_spy"
 
alias sentry_down  	"say_team Enemy sentry down!"
alias teleporters_down 	"say_team One or more enemy teleporters down!"
alias nest_down 	"say_team Enemy nest down! (yeey)"
//alias uber_popped 	"say_team They have popped Uber."
//alias kritz_popped 	"say_team They have popped Kritz."
//alias quickfix_popped "say_team They have popped the Quick Fix."
alias push 		"say_team Let's push!"
alias fall 	 	"say_team Fall back!"
alias switchother 	"unbindnum; alias KP_1 sentry_down; alias KP_2 teleporters_down; alias KP_3 nest_down; alias KP_4 uber_popped; alias KP_5 crits_popped; alias KP_6 quickfix_popped; alias KP_7 push; alias KP_8 fall"

alias scout_uber	"say_team They've popped uber on the Scout.; switchother"
alias scout_crits 	"say_team They've popped kritz on the Scout.; switchother"
alias scout_quickfix	"say_team They've popped the quick fix on the Scout.; switchother"
alias soldier_uber	"say_team They've popped uber on the Soldier.; switchother"
alias soldier_crits 	"say_team They've popped kritz on the Soldier.; switchother"
alias soldier_quickfix	"say_team They've popped the quick fix on the Soldier.; switchother"
alias pyro_uber		"say_team They've popped uber on the Pyro.; switchother"
alias pyro_crits 	"say_team They've popped kritz on the Pyro.; switchother"
alias pyro_quickfix	"say_team They've popped the quick fix on the Pyro.; switchother"
alias demoman_uber	"say_team They've popped uber on the Demoman.; switchother"
alias demoman_crits 	"say_team They've popped kritz on the Demoman.; switchother"
alias demoman_quickfix	"say_team They've popped the quick fix on the Demoman.; switchother"
alias heavy_uber	"say_team They've popped uber on the Heavy.; switchother"
alias heavy_crits 	"say_team They've popped kritz on the Heavy.; switchother"
alias heavy_quickfix	"say_team They've popped the quick fix on the Heavy.; switchother"
alias engineer_uber	"say_team They've popped uber on the Engineer. (?); switchother"
alias engineer_crits 	"say_team They've popped kritz on the Engineer. (?)"
alias engineer_quickfix	"say_team They've popped the quick fix on the Engineer. (?); switchother"
alias medic_uber	"say_team They've popped uber on the Medic. (?); switchother"
alias medic_crits 	"say_team They've popped kritz on the Medic. (?); switchother"
alias medic_quickfix	"say_team They've popped the quick fix on the Medic. (?); switchother"
alias sniper_uber	"say_team They've popped uber on the Sniper. (?); switchother"
alias sniper_crits 	"say_team They've popped kritz on the Sniper. (?); switchother"
alias sniper._quickfix	"say_team They've popped the quick fix on the Sniper. (?); switchother"
alias spy_uber		"say_team They've popped uber on the Spy. (?); switchother"
alias spy_crits 	"say_team They've popped kritz on the Spy. (?); switchother"
alias spy_quickfix	"say_team They've popped the quick fix on the Spy. (?); switchother"
alias ubermessage	"alias message echo Chat binds switched to: Uber."
alias critsmessage	"alias message echo Chat binds switched to: Crits."
alias quickfixmessage	"alias message echo Chat binds switched to: Quickfix."

alias uber_popped 	"unbindnum; alias KP_1 scout_uber; alias KP_2 soldier_uber; alias KP_3 pyro_uber; alias KP_4 demoman_uber; alias KP_5 heavy_uber; alias KP_6 engineer_uber; alias KP_7 medic_uber; alias KP_8 sniper_uber; alias KP_9 spy_uber; ubermessage; showonscreen"

alias crits_popped 	"unbindnum; alias KP_1 scout_crits; alias KP_2 soldier_crits; alias KP_3 pyro_crits; alias KP_4 demoman_crits; alias KP_5 heavy_crits; alias KP_6 engineer_crits; alias KP_7 medic_crits; alias KP_8 sniper_crits; alias KP_9 spy_crits; critsmessage; showonscreen"

alias quickfix_popped 	"unbindnum; alias KP_1 scout_quickfix; alias KP_2 soldier_quickfix; alias KP_3 pyro_quickfix; alias KP_4 demoman_quickfix; alias KP_5 heavy_quickfix; alias KP_6 engineer_quickfix; alias KP_7 medic_quickfix; alias KP_8 sniper_quickfix; alias KP_9 spy_quickfix; quickfixmessage; showonscreen"

bind KP_END 		KP_1
bind KP_DOWNARROW 	KP_2
bind KP_PGDN  		KP_3
bind KP_LEFTARROW 	KP_4
bind KP_5 		KP_5
bind KP_RIGHTARROW 	KP_6
bind KP_HOME 		KP_7
bind KP_UPARROW 	KP_8
bind KP_PGUP 		KP_9
bind KP_PLUS		KP_PLUSBTN

bind KP_INS 	switchdown
bind KP_DEL 	switchspy
bind KP_ENTER 	switchother
Selection
Button(s)FunctionExtras
1-9ClassesUse these for selecting the class.
0 (INS)Enemies downPush this to use the 'enemy down' commands. It will write "Enemy ... down" in team chat.
. (DEL)Enemy spyPush this to enable the spy commands. It will write "Enemy spy disguised as ..." in team chat.
ENTEROtherPush this for other commands. They are listed below.

So after 0 (INS) and . (DEL), press 1-9 for the class.

Other

These take place when the KP enter has been activated.

Button(s)FunctionExtras
1Sentry downLets your team know that a sentry is down.
2Teleporters downLets your team know that one or more teleporters are down.
3Everything downLets your team know the whole nest is down.
4Uber popSelect the class they popped on.
5Kritz popSelect the class they popped on.
6Quick fix popSelect the class they popped on.
7PushLet's all push (go in).
8Fall backWe need to fall back.

When you press 4 or 5 to show an uber pop, press 1-9 to show the class they've popped on.

Please let me know if you have any questions or additions!


r/Tf2Scripts • • Sep 17 '14

Script Blend of Chris's Config, M0re's, and the new Rhapsody configs

11 Upvotes

Credit for the scripts go to the people mentioned in the title. Figured I'd toss it out there cus why not.

EDIT2: Update as of Dec 30th 2015: http://pastebin.com/RZ4Z4m5d


r/Tf2Scripts • • Apr 25 '14

Script [Script] Charge Turning mk. 3: Poor man's edition.

11 Upvotes

So Valve decided to put an end to our fun. They mostly succeeded. What follows is my initial effort to recover what's left.

Fact 1: There are three main forms of turning: Mouse movement, +left/+right commands, and joystick movement.

Fact 2: All three of these are now capped at about 40 degrees per second, or about 60 degrees for a full charge with a grenade launcher and stock melee. (120 with the booties, 80 with Claid, 160 with Claid + booties)

Fact 3: They are capped individually, so the three methods can stack. With all three, you would get about 120 degrees per second (180 degrees stock, 360 booties, 240 claid, 480 claid + booties)

This script exploits fact 3. It is a variant of my previous script, however instead of disabling the mouse while the joystick is in use, it will let the mouse do it's thing until the turn cap is reached. At that point it adds joystick movement, then when that cap is reached, it presses a joystick button which is bound to +left/+right. In total, you can turn at up to 3 times the normal cap. This is still pretty bad, but it's better than stock.

Download here

I'm not going to be offering support for this version, so don't bother adding my on Steam. Truthfully it's not that great, and I expect Valve will patch it soon anyways.

On one last note, the Novint Falcon still allows for uncapped turning. I will be looking into whether this can be emulated.


r/Tf2Scripts • • Nov 25 '13

Tool A tool for making scripting easier.

11 Upvotes

Just simple nothing really that special, allows multiple writing at once and editing of each class.. Had it lying around for awhile thought i might share.

http://puu.sh/5sBgm.png

http://puu.sh/5sBhC.png

The hud section is pretty pointless, source is available if you really want but I'm not claiming it's extremely well written.

Also the username part is irrelevant as of steampipe update!

Download: https://www.dropbox.com/s/ajscr9w6trg5bwd/Scriptv2.exe


r/Tf2Scripts • • Aug 20 '22

Issue Help me with this Pyro Axtinguisher config. Shouldn't this work? As of right now, the mouse wheel can scroll past my secondary weapon, even though it's supposed to stop there.

Post image
10 Upvotes

r/Tf2Scripts • • Jun 20 '21

Question could you recreate the "wait" command that valve turned off by runing a bunch of useless commands to delay the command you want from going through

10 Upvotes

i know that scripts read from top to bottem but i was wondering if we could just run a bunch of useless commands like "bind NUMPAD7 kill" or something of the sorts


r/Tf2Scripts • • May 10 '21

Question DirectX 81 Water distortion

10 Upvotes

Hello, I really like the look and performance of DirectX 81, the sniper scope not having a lens and the ubercharge being weird doesn't bother me, but i'd like to have transparent water. I have an amazing water transparency script (look at the images provided), but it's all distorted in dx 81. I use mastercomfig, with the water module set to ultra.
Anyway, I was wondering if there was a way to disable that distortion

For anyone wondering, the magic water script is this:
r_waterdrawrefraction 1
r_cheapwaterstart 1000
r_cheapwaterend 1000


r/Tf2Scripts • • Apr 27 '21

Answered Question about a script.

10 Upvotes

I found a bhoping script:

alias jj "+jump; wait; -jump; wait" alias +bhop "jj; jj; jj; jj; jj; +jump" alias -bhop "-jump" bind "SPACE" "+bhop"

Will it give me ban or is it totally legit?


r/Tf2Scripts • • Mar 17 '21

Answered how to switch weapon without clicking when the fast weapon switch is off?

10 Upvotes

hmmmmm


r/Tf2Scripts • • Feb 23 '21

Answered Water opacity

10 Upvotes

some parts of my config are making water opaque and i was hoping that some gigamind genius in here knows how to force water to be normal/transparent


r/Tf2Scripts • • Feb 15 '21

Satisfied does anyone have a script that automatically uses uber with right click even if you dont have the medi gun out?

10 Upvotes

title says it all


r/Tf2Scripts • • Nov 23 '20

Resolved How to get different crosshair for each class?

10 Upvotes

I want to make it so all classes have the circle crosshair(crosshair 3), but sniper and spy have the circle crosshair(crosshair 5). I put the commands cl_crosshair_file 3 and cl_crosshair_scale 25 in the classes besides sniper and spy, and cl_crosshair_file 5 and cl_crosshair_scale 15 in the different class .cfg folders. But when I load the game its just the purple and black checkered square. How do I fix this or how do I make it work? All help is appreciated.

edit: I fixed it by putting cl_crosshair_file crosshair3; cl_crosshair_scale 24 in the class folder and cl_crosshair_file crosshair5; cl_crosshair_scale 18 in sniper and spy


r/Tf2Scripts • • Aug 30 '20

Script Holster Penalty Nullifier (Heavy)

Thumbnail
pastebin.com
10 Upvotes

r/Tf2Scripts • • Jul 04 '20

Satisfied Vaccinator Script with using the mouse scroll

10 Upvotes

medic mains! i need your help, i want a script for my Vaccinator to change resistances with the power of scrolling up or down by using the mouse


r/Tf2Scripts • • Jul 01 '20

Resolved I need some doggone help 'user/engineer.cfg' not present; not executing.

Post image
10 Upvotes

r/Tf2Scripts • • May 23 '20

Question Help me with medic scripts!

10 Upvotes

Sup everyone, I'm a medic main, and I'm always jealous when I see another medic main that has cool binds everytime they pop a Uber!

I'd also like to have a fancy "Uber popped" in the team chat when I pop the Uber but the thing is, everytime I try to bind it to say that, It also keeps in for other classes like sniper etc...

Can someone help me out? Sorry if this is the wrong sub or if it's one of those posts that gets posted every 2 months (I didn't check)


r/Tf2Scripts • • Jun 30 '19

Pootis

10 Upvotes

alias pootis "voicemenu 1 4; wait 2; load_itempreset 0; voicemenu 1 4; wait 2; load_itempreset 1; voicemenu 1 4" bind [KEY] "pootis"

spam the everloving shit out of this bind as heavy, and he will say pootis everytime


r/Tf2Scripts • • Mar 28 '19

Script Volume control binds

Thumbnail
gamebanana.com
10 Upvotes

r/Tf2Scripts • • Sep 06 '18

Script My Personal Eureka Effect Teleport script

10 Upvotes

There is a lot of "Eureka teleport" scripts, but I did not saw one make use the best Eureka Effect feature. There is a secret about the Eureka Effect : You can change your destination during the taunt animation.

My script is very simple :

// engineer.cfg
alias +eureka_tp "+reload";
alias -eureka_tp "-reload;eureka_teleport 1";

bind "r" "+eureka_tp"

But its behavior is not :

  1. A teleportation will start.

    • If I have no exit, teleport to the spawn

    • Else teleport to the exit

  2. It will show the destination menu while I'm "tele-taunting", so I can change while animation is playing. Warning ! You have to wait ~1 second after animation started to make it work. If you dont wait, your choice will not registered, and the first teleport will apply (You will teleport to your exit - because, else, you would not have to choose).

  • Pro :

    • 1 bind, still bound to "reload". No need for a new bind.

    • If you failed to select the destination you wanted, quickly use R again, it will show the menu again.

  • Con :

    • the menu wont disappear alone when you did not choose a destination before teleportation. Switch weapon to make it disappear. "Confirm" your destination if you want to close menu during default behavior.

    • When I selected the destination very late during animation (maybe during the last tick), the animation started over (first teleportation has been canceled !). It's very hard to reproduce intentionally. It's a bit surprising for other players (because you've not been teleported the first time) but you can't take advantage (because you're still taunting).


r/Tf2Scripts • • Jan 26 '16

Script I made a "concise taunt menu" that works similarly to the Spy's concise disguise kit

10 Upvotes

Hello, /r/tf2scripts! This is my first submission here, and I made something I think you will appreciate.
I searched the sub to see if there was already a similar script created, and didn't find anything, so I made it myself.

For some people, it is uncomfortable to have to reach across the keyboard to hit number keys that are far away from your movement keys, such as 7 through 0.
Such individuals may prefer the Spy's "concise disguise menu" in the Advanced Options.

I've been using this option for a while and like it a lot, but was disappointed that there was nothing similar for the taunt menu.
So, I decided to make a script to make equipped taunts behave similarly to the concise disguise kit.

Basically, I made it so that you can hold F and then press 1-3 to get three different taunt menus, and then hit 1-3 again for different taunts.
You can equip your taunts in whatever order you'd like; it will just change what key shortcuts you need to press to use those taunts.
My personal configuration is in the comments of the script, but you can set it up however you please.

Without further ado, here is the script itself:

//CONCISE TAUNT MENU//

// G is rebound to be the default weapon taunt so that you can use taunt kills without bringing up a menu. 
// If preferred, you can rebind G to something else if you want to use the key for other things; you can still use your weapon taunt by using the shortcut taunt0 is bound to.
// I found F more convenient for this taunt menu, but F is taken by inspect by default.  I never use sprays, so I rebound the default spray key T to be the inspect key.

bind g "taunt 0"
bind t "+inspect"
bind f +conciseTaunt

// Default bindings for your 1-3 keys.
bind 1 +slot1
bind 2 +slot2
bind 3 +slot3

// Default binding mode for your 1-3 keys.
alias key1_default slot1
alias key2_default slot2
alias key3_default slot3

// Aliases for each taunt.  Taunt 0 is the default weapon taunt, 1-8 are your equipped taunts.
alias taunt1 "taunt 1"
alias taunt2 "taunt 2"
alias taunt3 "taunt 3"
alias taunt4 "taunt 4"
alias taunt5 "taunt 5"
alias taunt6 "taunt 6"
alias taunt7 "taunt 7"
alias taunt8 "taunt 8"
alias taunt0 "taunt 0"


// You can equip your taunts in whatever order you want; they will have different shortcuts depending on which slot you equip them in.
alias tauntOptions1 "alias +slot1 taunt1; alias +slot2 taunt2; alias +slot3 taunt3"
alias tauntOptions2 "alias +slot1 taunt4; alias +slot2 taunt5; alias +slot3 taunt6"
alias tauntOptions3 "alias +slot1 taunt7; alias +slot2 taunt8; alias +slot3 taunt0"
alias tauntMenu "alias +slot1 tauntOptions1; alias +slot2 tauntOptions2; alias +slot3 tauntOptions3"

// Aliases to turn the concise taunt menu on/off when you hold down F (or whatever key you change it to).
alias +conciseTaunt tauntMenu
alias -conciseTaunt "alias +slot1 key1_default; alias +slot2 key2_default; alias +slot3 key3_default"

It takes some getting used to if you're not used to the concise disguise kit, but I like not having to move my hand too far from my movement keys, so I find this more convenient.
I hope someone other than myself finds this useful!

Edit: Cleaned up formatting a bit and made some improvements based on feedback from /u/the_rabidsquirel

Edit 2: Further simplified and cleaned up the script after reading through the resources posted in the comments.
It should be much easier to change the bindings now, thanks guys!


r/Tf2Scripts • • Jun 11 '15

Script Tr_walkway fix

10 Upvotes

Since the last update tr_walkway f*cked up for a bit resulting in bots not spawning anymore so hereby a very small code you can either paste in autoexec.cfg or put in its own .cfg file (in case you don't want it to instaload everytime you startup tf2) to fix the map.

//Tr_walkway fix

sv_allow_point_servercommand always

Have fun playing the map again!


r/Tf2Scripts • • Apr 15 '14

Script Duck Hunt script for TF2

10 Upvotes

I made a script that uses puppet bots and the magic ability of sv_gravity to "remake" the NES game Duck Hunt. I'm hoping to get some suggestions/advice to help me become a better scripter.

The script works on only 2fort.

DuckTest.cfg

echo "Script has started"
bind 0 "exec DuckTest"
sv_cheats 1
sv_gravity 800
bot_kick Duck1
bot_kick Duck2
bot_changeclass Heavy
bot_changeteams red
bot -team red -class Heavy -name Duck1
bot -team red -class Heavy -name Duck2
bind KP_INS "exec DuckTele"

DuckTele.cfg

bot_teleport Duck1 -244 625 80 0 -90 0
bot_teleport Duck2 0 625 80 0 -90 0
echo "Ducks have been teleported"
sv_gravity 100
bot_jump 1
voicemenu 0 2
echo "Let the games begin..."

What do you think? Any suggestions/ideas?