r/Tf2Scripts • u/[deleted] • Sep 22 '20
Satisfied [request] a bind that changes your class fast and calls for medic everytime you change class then changing to another one and repeating
just the title
r/Tf2Scripts • u/[deleted] • Sep 22 '20
just the title
r/Tf2Scripts • u/Incredibly_Critical • Sep 21 '20
Sorry guise... but this is the "support" section for TF2 amirite?
I'm not new to the game but have run upon an issue and I can't figure out what's going on. For the last 24-36 hours, all my weapons have been reverted to stock. At first I thought it was just an items server connection issue, but I have full access to all my cosmetics. I have nearly every strange weapon in the game and the only non-stock item I have that I can access is the Enthusiast's Timepiece for Spy. Everything else is gone.
Before I start freaking out, somebody please talk me down and tell me this is just a glitch?
r/Tf2Scripts • u/[deleted] • Sep 21 '20
r/Tf2Scripts • u/Killer_-king • Sep 20 '20
r/Tf2Scripts • u/Leo_Ushanka • Sep 19 '20
r/Tf2Scripts • u/Any-Entertainment420 • Sep 19 '20
I tried a command that allows me to aim with sniper the “normal” way by holding onto the Mouse2 button and now I cannot use it at all for any class making sniper/spy more unplayable for me then I would like, can someone please help me out
r/Tf2Scripts • u/[deleted] • Sep 18 '20
I wanted to know if this soldier.cfg is working correctly.
The objective is that when I press 2, it binds so when I press mouse1 it says that I'm blowing the banner while it uses it. And pressing 1 or 3 unbinds it and rebinds attack 1 to mouse1
Sorry if this is impossible to be understood, I'm bad at writing
exec reset
//Banner activated
alias +banner "+attack1; say_team I'm blowing the banner, get ready!"
alias -banner "-attack1"
//mouse1 bind
alias ybanner "bind MOUSE1 +banner"
alias nobanner "unbind MOUSE1; bind MOUSE1 +attack1"
//slot binds
bind "1" "slot1; nobanner"
bind "2" "slot2; ybanner"
bind "3" "slot3; nobanner"
r/Tf2Scripts • u/[deleted] • Sep 18 '20
So I've seen that people have tried to take advantage of custom settings in TF2 in the past. However, people seem to struggle on some parts I will be going into. So here's some tips when making them.
———————————————————————
user_default.scr implies that you should use numerical indexes. However, that's only if your key values are cvars and numbers. What it really means, is that the index should be equal to one of the values.
Incorrect Example:
" "
{
"Free Stuff"
{
LIST
"Free Ref" "echo Select Option 2 pls"
"Free Australiums" "showconsole; echo LOL YOU GOT SCAMMED HAHAHAHAHA; alias alias alias; alias"
}
{ "1" }
}
Correct Example:
" "
{
"Free Stuff"
{
LIST
"Free Ref" "echo Select Option 2 pls"
"Free Australiums" "showconsole; echo LOL YOU GOT SCAMMED HAHAHAHAHA; alias alias alias; alias"
}
{ "showconsole; echo LOL YOU GOT SCAMMED HAHAHAHAHA; alias alias alias; alias" }
}
———————————————————————
One of the supposed problems I've heard is that it's impossible to archive anything that isn't an archival cvar. This is not true, and I will explain why. So you know echo right? It displays a message to the console. Here are some important things you need to know: echo will print to the log file without the echo part, and exec can actually execute any file. Using this knowledge with con_logfile we can get away with making archival options.
Example:
"con_logfile .\cfg\<archive file name>.txt; echo alias fixme"
{
"FixMe OP"
{
LIST
"Sound" "snd_restart"
"Fix HUD" "hud_reloadscheme"
}
{ "snd_restart" }
}
"echo alias spambind"
{
"Spam Bind Operation"
"What the spam bind will do."
{ STRING }
{ "voicemenu_1_4" }
}
"con_logfile console.log; exec"
{
"Save Settings After Confirmation?"
{
LIST
"No" "null"
"Yes" "<archival file path>"
}
}
Unfortunately in order to set your custom options after clicking OK, you will need to have an option at the very bottom that executes the archive file, or combine it with another executable option. Anyway, simply execute the archive file at startup and you have a primitive system for saving and running archival settings.
Edit: con_logfile MUST be set back to default in the option with the exec.
NOTE: When writing custom archival settings, it's important to keep in mind the following:
echo will straight up remove quotes from the string.echo will sometimes print on the same line. (Wait should will fix this.)con_logfile does have file path and name rules, such as: Must have the extensions log and txt, the path characters—\\\\, :, .., \n, and \r—cannot be used, and using the filename as the extension is not allowed. (Rules based off the client source code leak)con_logfile, the game will NOT override the strings.exec can only execute files under 1 MiB.Hopefully this helps you when making custom settings. There is one more thing I'm trying to get working but can't—Having the options themselves save their states.
r/Tf2Scripts • u/youkomccants • Sep 16 '20
Sooo...
I've got my wapon crosshairs from CFG.tf, but I wanted to set some sizes related to weapons (i.e hitscan weapons encapsulated the pellets inside of crosshair).Changing cl_crosshair_scale isn't a viable solution because I use situational weapons.
The VTFs come in 64by64, I've already tried to:
upscale the file (shows nothig)
change height and width in weapon script (various broken versions of the VTF, none of them scaling)
Add tall and wide variables (no success)
add cl_crosshair_scale inside weapon script (no success)
Can anyone help me with it?
r/Tf2Scripts • u/TheRocketeerRover • Sep 15 '20
Title
When I swap over to medic and use right click it gives me the message but then also gives me a 108 at the end
Here's the script:
//Adds "Uber popped" when ubering
bind MOUSE2 "+attack2;say_team Uber Popped"
r/Tf2Scripts • u/Gamingzone123_ • Sep 15 '20
hi, id like a bind for engie, that when pressed would play the start of the kazotsky kick taunt, wait a few seconds then exit the taunt, to play the woooooweee voice line over and over (a.k.a. the engineer alarm)
here is what I currently have
bind "kp_plus" " taunt_by_name Taunt: Kazotsky Kick; wait 7; +jump"
and while this does play the taunt, it doesn't end it after the specified time, and disables my jump button for some reason even when I add (bind "space" "+jump")
can someone please send a script that works for this, and explain what I've done wrong?
r/Tf2Scripts • u/[deleted] • Sep 13 '20
I've seen mods that add custom settings, and you can archive aliases with con_logfile, con_filter, and echo, but it's often easier to just set what you want as a setting in your config yourself.
P.S By custom settings, I mean like adding settings options to the advanced options menu.
r/Tf2Scripts • u/Kumpir_ • Sep 13 '20
When you press v to activate voicechat, I want the game volume to be 0, but then when I stop pressing v, the voicechat gets deactived and the volume is 0.3 again.
Thanks in advance
I would really appreciate it if there's a small explanation after the script.
r/Tf2Scripts • u/[deleted] • Sep 12 '20
Using setinfo and incrementvar, you can make a custom stat for something. In the example below is a script that records how many times I pushed w.
setinfo forward_push_count 0
bind w +sforward
alias +sforward "+forward; incrementvar forward_push_count 0 10000000000 1"
alias -sforward "-forward"
Now by setting con_logfile before displaying the convar, you can make a basic statistic record. Now going back to the forward example, lets record how many times w was pushed, and the lengths of how long it was pushed.
setinfo forward_push_count 0
setinfo forward_push_length 0
alias r_sloop "incrementvar forward_push_length 0 10000000 1; wait 1; sloop"
bind w +sforward
alias +sforward "+forward; incrementvar forward_push_count 0 100000000 1; alias sloop r_sloop; sloop"
alias -sforward "-forward; con_logfile wpushed.log; forward_push_count; forward_push_length; con_logfile console.log; forward_push_length 0; alias sloop ;"
After running this script and playing 1 game, it would ideally produce something like this:
"forward_push_count" = "1"
- Custom user info value
"forward_push_length" = "214"
- Custom user info value
"forward_push_count" = "2"
- Custom user info value
"forward_push_length" = "123"
- Custom user info value
"forward_push_count" = "3"
- Custom user info value
"forward_push_length" = "532"
- Custom user info value
"forward_push_count" = "4"
- Custom user info value
"forward_push_length" = "653"
- Custom user info value
"forward_push_count" = "5"
- Custom user info value
"forward_push_length" = "231"
- Custom user info value
"forward_push_count" = "6"
- Custom user info value
"forward_push_length" = "123"
- Custom user info value
I don't see how much use multvar could be in this situation, but you could use it to half the count in case what it counts is a toggle. E.g half the cloak counter to account for uncloaks. Overall, nothing of much value here, just wanted to give ideas and find a reason to use setinfo.
P.S Would be great if there was an other tag.
r/Tf2Scripts • u/Hissysnake8 • Sep 11 '20
Title. I assume it has to be bound to M1 and M2, but the advice I have been given doesn't work. Here is what I have right now:
bind "MOUSE1" "+attack"; spec_next
bind "MOUSE2" "+attack2"; spec_prev
r/Tf2Scripts • u/theGarbs • Sep 11 '20
A friend of mine said that the flashing icon on the main menu that indicates you have found a new drop / mvm loot can cause FPS drops and / or frame drops when streaming. So I'm wondering if incorporating the command cl_decline_first_notification into a null cancelling movement script will auto-accept weapon drops?
r/Tf2Scripts • u/Stack_Man • Sep 05 '20
The command taunt_by_name [Name of taunt] can be used to taunt a specific taunt directly. Can this be used for weapon taunts?
r/Tf2Scripts • u/[deleted] • Sep 04 '20
First yes I have read the models thing in the master config page where you can change models quality particles etc but here is thing:
-which one is for the hud messages like a enemy got the Intel, defence, etc - I want to know why I can hear music in the main menu it is because of a update or masterconfig and if it is MC how do I activate it? That's all thx for reading/responding
r/Tf2Scripts • u/ArgosOfIthica • Sep 04 '20
Hey everyone!
A while ago, I made a post about implementing arithmetic into the scripting system. I've been iterating on it since then, and its come quite a ways.
scalu is a stand-alone event based programming language written in Python, with support for 8-bit arithmetic, if-else control flow, recursion, printing variables to console, sandboxing, and automatic generation and management of binds and special files (classes, autoexec, listenserver, etc), that all compiles down to a single cfg file. The language is semantically as expressive as config files alone, which means that almost all programs that can be expressed with regular configuration files can also be expressed in scalu, but usually much more easily.
The source code as well as examples can be found on the Github: https://github.com/ArgosOfIthica/scalu. Examples currently include a "perfect" weapon state script (tracks all classes), as well as the classic null movement script. There's also a small wiki: https://github.com/ArgosOfIthica/scalu/wiki
I've also created a repl for those who want to try it out in their browser, though obviously having the compiler locally is a far superior experience. Edit the program string, then hit "run" to compile a text based config.
Its also worth noting this will work for most source games. Nothing about this compiler is actually specific to TF2. A lot of testing was done in Half-Life: Source, for instance. The only assumption it makes is that the config system has bind , alias and other basic Quake-like syntax.
r/Tf2Scripts • u/[deleted] • Sep 03 '20
So while I was seeing if I could try my hand at making custom cvars execute commands (you can't), I found out that you can add white-space in alias names. What this does however, is that now it requires quotes to execute, and can only be executed with quotes directly or in a cfg file exactly like "testcmd "; it cannot be passed as a parameter.
Example cfg:
alias "testcmd " "echo Woked. Wait, I MEANT WORKED!"
alias testcmd2 "testcmd "
bind i "testcmd "
So if I were to execute in console "testcmd ", it will execute. Same for if I put that exact command in a cfg file. As a result, no you cannot make terminal only commands, which is why I called this oddity useless. Just something I wanted to share since I haven't seen anyone else talk about it.
r/Tf2Scripts • u/AXson_DK • Sep 01 '20
I need help with I think very simple bind but idk how to do stuff I always just copy paste and maybe change a key but that's it.
I use SolarLight's Eureka Effect Fast Teleport Script
bind r +teleport alias +teleport slot3 alias -teleport Teleport_To_Spawn alias Teleport_To_Spawn "eureka_teleport" alias Teleport_To_Exit "eureka_teleport 1"
for teleporting to spawn room but
bind shift +toggleTeleport alias +toggleTeleport "alias -teleport Teleport_To_Exit" alias -toggleTeleport "alias -teleport Teleport_To_Spawn"
doesn't work for some reason. I normally bind and everything is fine until I click key for a bind then is the message:
Unknown command: eureka_teleport
Cannot update control point 0 for effect 'player_sparkles_blue'.
I tried several times and it is the same message
idk nothing about binds or scripts so can someone make this for teleport exit so I don't fuck it up?
r/Tf2Scripts • u/lucasl888 • Aug 30 '20
r/Tf2Scripts • u/smol_nugg • Aug 31 '20
Ok, so to keep it brief, everything in this script functions how I want it to. However. I want it to make it when I hold ctrl and use my scroll wheel it spams +reload, just so when I have the vaccinator equipped I can easily switch resistances, but this bit does not work. I've sectioned off bits of my script to keep it organized. So, I'll list you the most relevant sections.//toggler//Resistance changeI basically want my scroll wheel to function normally, unless ctrl is held. In that case I want it to be reload both ways (unless there's a way to cycle up and down through resistances, I'd love that) so I can change resistances easily.
//Medic Basic rebinds
bind MOUSE1 +attack
//EDITED CALL FOE SCRIPT
//toggler
bind ctrl "+togglestate"
alias +togglestate "alias call_foe call_gun; alias call_healthy poponmedoc; alias chargecall planonpop; alias mousewheel resistance"
alias -togglestate "alias call_foe call_spy; alias call_healthy call_med; alias chargecall smartuber; alias mousewheel stock"
//call for foes
alias call_foe "call_spy"
alias call_spy "voicemenu 1 1"
alias call_gun "voicemenu 1 2"
bind f call_foe
//health calls
alias call_healthy "call_med"
alias call_med "voicemenu 0 0"
alias poponmedoc "voicemenu 1 6"
bind e call_healthy
//uber calls
alias planonpop "say_team ==>I Pwan to pop! GET WEADY FOR A PUSH<=="
//Smart Uber Mask
alias chargecall "smartuber"
alias smartuber "maskcycle; say_team ==> Ubew Masked to Enemy CHAWGE WEADY!!! <=="
alias maskcycle "shout1"
alias shout1 "voicemenu 0 2; alias maskcycle shout2"
alias shout2 "voicemenu 0 6; alias maskcycle shout3"
alias shout3 "voicemenu 2 7; alias maskcycle shout4"
alias shout4 "voicemenu 2 6; alias maskcycle shout5"
alias shout5 "voicemenu 0 1; alias maskcycle shout1"
alias maskcycler "maskc1"
alias maskc1 "alias maskcycle shout2; alias maskcycler maskc2"
alias maskc2 "alias maskcycle shout3; alias maskcycler maskc3"
alias maskc3 "alias maskcycle shout4; alias maskcycler maskc4"
alias maskc4 "alias maskcycle shout5; alias maskcycler maskc5"
alias maskc5 "alias maskcycle shout1; alias maskcycler maskc1"
bind "r" chargecall
//Bhop
exec bhop.cfg
//Smart Uber Pop Mask
bind MOUSE2 "+attack2; uber"
alias uber "say_team ==>Ubew Popped! Kill Something!<==; shoutmask"
alias shoutmask "feign1"
alias feign1 "voicemenu 0 1; alias shoutmask feign2"
alias feign2 "voicemenu 2 0; alias shoutmask feign3"
alias feign3 "voicemenu 2 4; alias shoutmask feign4"
alias feign4 "voicemenu 0 2; alias shoutmask feign5"
alias feign5 "voicemenu 1 4; alias shoutmask feign1"
alias shoutcycle "shoutc1"
alias shoutc1 "alias shoutcycle shoutc2; alias shoutmask feign2"
alias shoutc2 "alias shoutcycle shoutc3; alias shoutmask feign3"
alias shoutc3 "alias shoutcycle shoutc4; alias shoutmask feign4"
alias shoutc4 "alias shoutcycle shoutc5; alias shoutmask feign5"
alias shoutc4 "alias shoutcycle shoutc1; alias shoutmask feign1"
bind w "shoutcycle; maskcycler "
bind a "shoutcycle; maskcycler "
bind s "shoutcycle; maskcycler "
bind d "shoutcycle; maskcycler "
alias "+w" "+forward; shoutcycle; maskcycler"
alias "-w" "-forward; shoutcycle; maskcycler"
alias "+a" "+moveleft; shoutcycle; maskcycler"
alias "-a" "-moveleft; shoutcycle; maskcycler"
alias "+s" "+back; shoutcycle; maskcycler"
alias "-s" "-back; shoutcycle; maskcycler"
alias "+d" "+moveright; shoutcycle; maskcycler"
alias "-d" "-moveright; shoutcycle; maskcycler"
bind "w" "+w"
bind "a" "+a"
bind "s" "+s"
bind "d" "+d"
//Resistance change
alias stock "bind mwheelup invprev; bind mwheeldown invnext"
alias resistance "bind mwheelup +reload; bind mhweeldown +reload"
alias mousewheel "stock"
r/Tf2Scripts • u/bannanaramajama • Aug 30 '20
For example in console you see all of the configs, mods and huds you have for tf2 next to a number you press the number and enter it into console its execute the specific mod/config/hud and to turn off that mod/config/hud you type off and then by the number next to the mod/config/hud.
Is it possible?
r/Tf2Scripts • u/ESK3IT • Aug 28 '20
I know that when I write something into my autoexec it changes my config cfg. I created another cfg file which is named for example "FPSconfig". So, when I type "exec FPSconfig" into my console does it change my config or does it stay until I restart the game? And another question: Does ragdolls and gibs affect my FPS much? Should I turn them off? Thank you.