r/Tf2Scripts • • Sep 25 '21

Script CTRL+R to retry shortcut

8 Upvotes

As per the title, I'd like to be able to press CTRL+R to do "retry" in console before being autobalanced in casual games, any help appreciated!

edit: I use CTRL for crouch and R for reload (for vacc)


r/Tf2Scripts • • Aug 27 '21

Question Spy "Check" script.

8 Upvotes

I want a script "for comp" that checks the medics medigun when I press 5.


r/Tf2Scripts • • Jul 01 '21

Issue bhop script

8 Upvotes

Hello I am using this bhop script

alias bhopjumping "+jump;wait 3;-jump;wait 3;bhoploop"

alias bhopalias "alias bhoploop bhopjumping"

alias bhopstop "alias bhoploop"

alias +bunnyhop "bhopalias;bhopjumping"

alias -bunnyhop "bhopstop;-jump"

bind SPACE +bunnyhop

it is working fine but I cant play on some servers because its crashing my game well can you help me and make it possible to turn it on and off with a key, for example "7" and also I cant double jump with this script as scout please help me: <


r/Tf2Scripts • • May 20 '21

Issue Eureka Effect fast teleport script

8 Upvotes

So I've been trying to use solar light's fast teleport script and it just isn't functioning at all for me.
It often gives me errors such as

Unknown command: +teleport

Unknown command: -teleport

Unknown command: +toggleTeleport

Unknown command: -toggleTeleport

Anyone with A new script or help on this one would be much appreciated.


r/Tf2Scripts • • May 15 '21

Question Is there a script for it

8 Upvotes

I am looking for a viewmodel script that makes the primary weapon viewmodel min and secondary normal viewmodel and keeps it always keeps it separate


r/Tf2Scripts • • May 14 '21

Question How to change crosshair size from tf_weapon.txt?

8 Upvotes

I use the weapon specific crosshairs from cfg.tf

I want to decrease the size of every sniper rifle crosshair but keep the size of other crosshairs the same (thus I am not using the size slider in the Multiplayer tab)

What values do I have to do modify to achieve this? Is it even possible?


r/Tf2Scripts • • May 08 '21

Question how do i make a bind that says something in chat, and then does a taunt

8 Upvotes

like taunt 3, (schaudenfruede) then say free to plays


r/Tf2Scripts • • Mar 04 '21

Not Scripting | Servers Question about setting up a tf2 server

Thumbnail
self.tf2
8 Upvotes

r/Tf2Scripts • • Nov 18 '20

Impossible Script To Disable W Key While Rocket Jumping?

8 Upvotes

eh?


r/Tf2Scripts • • Nov 14 '20

Question need help for a jump script

8 Upvotes

hello
so Im trying out a RJ scripts (yeah it's lame, sue me) I don't really play solly that much, I just like to rocket jump and ham people to death. here's the script im using: alias "+rocketjump" "+jump;+duck;+attack" alias "-rocketjump" "-jump;-duck;-attack" bind shift "+rocketjump"

it work but there's an issue: if I want to stay crouched (to reach some platforms or melee people while on their head) I need to keep the shift key pressed, but if I do that, I will also keep attacking (wich I don't want to, would make me miss melee swing or just propulse me when I don't want with the RL)
I thought there wasn't any solution and I would've been forced to actually get good but then I found this script: https://gamebanana.com/scripts/7982
it's a crouch jump script but what interest me is "The special thing about this script is that if you jump, and switch over to pressing Ctrl to crouch, you will stay crouching" wich is exactly what I want ! the issue is that this script is more complexe than what I can do, so I came here.
If anyone could help me convert this crouch jump script into a RJ script while keeping the thing that allow me stay crouched by switching the key im pressing, it would be fantastic
thanks in advance


r/Tf2Scripts • • Nov 05 '20

Issue [Help] Custom files keep breaking master config

8 Upvotes

hi i been testing master config low preset since yesterday , it seem to only wroked when i reset tf2 back to default and install the config along with my start otions and custom huds , as soon as i add my cfg files tho the config tho it starts to break somehow ,

when i add my autoexec it flat out gets rids of the pixelated textures wish is weird cause the only comands i have in there are svcheats 1 , allow server comand always , for tr walkway and a couple other misc scripts stuff like changing loadout presets with f1-f4 or lowering the pitch of the hit sounds , nothing visual , strangly enough when i put my classes cfg with out the autoexect it maintains the pixelated look but it looks significally less compress than before again i have no idea why because i only have bindings and crouch jump scripts there ,

if it is of any relevance i used to use cowmanglias config on my autoexec but i deleted it and restored tf2 multipletimes

thanks for the help hopefully you can help me find the root of the problem


r/Tf2Scripts • • Oct 27 '20

Satisfied null-cancelling movement script compatible demoknight turn script

8 Upvotes

I discovered that even with the Tide Turner you can't really turn on a dime without cancelling your charge UNLESS you simultaneously use the +left and +right commands while steering with the mouse. I'd like to make use of this finer degree of movement somehow and looked into a basic script that temporarily changes A and D to turn keys, rather than strafe keys when Mouse2 is held. What I found was this;

https://www.reddit.com/r/Tf2Scripts/comments/16tevx/script_demoman_shield_chargeturn_toggle/

which serves its purpose decently, but does not seamlessly transition back into strafing once Mouse2 is released, and cancels all strafing if Mouse2 is pressed even for a brief moment, forcing me to press the strafe keys again to resume movement. This makes it incompatible with the null cancelling movement script in its natural state.

Basically, is it possible for these two scripts to coincide to where I immediately begin strafing again after releasing Mouse2 if my strafe keys are still held, and if so, can someone take a crack at making it work? Preferably without wait commands.

I'm using a heavily edited version of mastercomfig that doesn't really impede my ability to modify .cfg files the same way I did before vpks were a thing, so I don't think it makes a difference, but the sticky says to mention it anyway.


r/Tf2Scripts • • Sep 25 '20

Question Interp, Ping, Packet Loss Help

8 Upvotes

So I recently had to go from a wireless connection to a ethernet one because I was having packet loss issues which I never found out how to fix without an ethernet cord. So I have 2 questions

Everything was fine with the ethernet cord until I noticed the server I usually play on I was now averaging 75-91 ping, before I was averaging 15-20 ping on a wireless connection (i live really close to the servers). Im confused because i thought a wired connection would mean better ping, the ethernet cable isnt the problem since its a modern cat5e cable(non damaged basically brand new) and my wifi is really fast and I havent experienced bad connection on it with any other device. Can I fix this? If so how?

Another thing is I decided to change my interp settings so I could get hit more shots with hitscan classes (which worked really well), same with projectile classes, but I recently removed them in an effort to fix the ping, it didnt work :(. I did have a problem tho where my lerp would always be in orange and not in white(usually 30.1ms or 15.2ms), my goal was to get it to stay white but I only wanted to change my interp ratio not my interp. So my second question is can I fix this by changing my interp ratio only? And if I can then to what number?

Here is what my config was before (Im using masterconfig medium low interp settings currently) ( The only difference in each class cfg is interp ratio and interp btw, everything else is the same for each one)

CFG: cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 1 cl_interp 0.000010 cl_lagcompensation 1 cl_pred_optimize 2 cl_smooth 0 cl_smoothtime 0.01

Demoman: cl_interp_ratio 2 cl_interp 0.0152

Engineer: cl_interp_ratio 2 cl_interp 0.0303

Pyro: cl_interp_ratio 2 cl_interp 0.0152

Scout: cl_interp_ratio 2 cl_interp 0.0303

Sniper: cl_interp_ratio 2 cl_interp .01667

Soldier: cl_interp_ratio 2 cl_interp 0.0152

Spy: cl_interp_ratio 2 cl_interp 0.000010

If you need more information like net graph pics/videos I'll provide just let me know.


r/Tf2Scripts • • Sep 18 '20

Resource Tips when making custom settings.

8 Upvotes

Intro

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.

Default Index in a List

———————————————————————

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" }
}

Archival Options

———————————————————————

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.

PLEASE READ THIS!

NOTE: When writing custom archival settings, it's important to keep in mind the following:

  • echo will straight up remove quotes from the string.

  • If ran quickly one after another, 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)

  • When writing to con_logfile, the game will NOT override the strings.

  • Values are treated as string literals. This means if you put a command that requires parameters in one of the values, instead of where the cvar should be, it will not run.

  • EDIT: exec can only execute files under 1 MiB.

Conclusion

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 • • Aug 16 '20

Request Toggling Default Crosshair

8 Upvotes

I'm trying to do a command to toggle between default crosshair and cl_crosshair_file crosshair 3
The default value (and what the value is when you set it to default) is a blank space, and can't be put into scripts in any way but an cfg file with nothing but cl_crosshair_file "" in it

I don't know a way that I could toggle between 2 crosshair files using the exec of default crosshair to switch to it. Any suggestions?


r/Tf2Scripts • • Aug 09 '20

What happened to the mastercomfig exe?

8 Upvotes

When i go to the website now it just has me select the preset but i remember you could do that or download the exe which you could install and it would just put the configs in your tf2 folder. And also, why isnt there a readable cfg? I know you can open the mastercomfig vpk but the top part is encoded and my autoexec doesnt seem to work cause of it.


r/Tf2Scripts • • Jul 22 '20

Resolved Hey I'm new to scripting and I'm not sure why this one I just made isn't working, can you let me know if there's a bug in it or something?

8 Upvotes

this is supposed to cycle up and down between loadout presets A B C D

but just doesn't

alias loadoutcycle_up "loadout1"

alias loadoutcycle_down "loadout4"

alias loadout_apply "load_itempreset 1"

alias loadout1 "alias loadoutcycle_up loadout2; alias loadoutcycle_down loadout4; alias loadout_apply load_itempreset 1"

alias loadout2 "alias loadoutcycle_up loadout3; alias loadoutcycle_down loadout1; alias loudout_apply load_itempreset 2"

alias loadout3 "alias loadoutcycle_up loadout4; alias loadoutcycle_down loadout2; alias loadout_apply load_itempreset 3"

alias loadout4 "alias loadoutcycle_up loadout1; alias loadoutcycle_down loadout3; alias loadout_apply load_itempreset 4"

bind "pgup" loadoutcycle_down

bind "pgdn" loadoutcycle_up


r/Tf2Scripts • • Jul 16 '20

Resolved Can you guys pls help me?

8 Upvotes

I've been messing around with scripts for a while now and everything is fine but the interp just doesn't change no matter what, it doesn't matter if i try to change it in console or rewrite the cfg, it just stays on 30.3 lerp, which is ok for projectile classes but not for hitscan (at least for me), can u pls help me out?


r/Tf2Scripts • • Jul 08 '20

Satisfied "hurtme" reset?

8 Upvotes

I want to practice competitive rollouts and I'm looking for a way to reset the overheal from "hurtme -x" so I start with, let's say, 300 HP every time instead of stacking more and more overheal each time I press the bind.

Any help is greatly appreciated.


r/Tf2Scripts • • Jun 07 '20

Impossible hide username in killfeed?

8 Upvotes

I want to hide my username in the killfeed, but just my name. I want to see other player's usernames. Is there a way to do that?


r/Tf2Scripts • • Apr 29 '20

Satisfied A Medic crossbow script for switching, firing a bolt, and then getting back to to Medigun and reconnect to heal target.

8 Upvotes

I use this one at the moment:

alias +quickswitch "slot1"

alias -quickswitch "-attack;slot1;+attack;wait 80;slot2;tf_medigun_autoheal 1;+attack;wait 100;-attack"

alias +quiswi "bind MOUSE4 +quickswitch"

alias -quiswi "bind MOUSE1 +attack"

bind CTRL +quiswi

it's good, but it's a little buggy and it doesn't do what I want (which is to stay fired as long as I'm holding mouse4, and then switching back to the medigun when I release). Thanks in advance!


r/Tf2Scripts • • Aug 23 '19

Satisfied How do I make a sapper script?

8 Upvotes

I want a script that pulls out my sapper and uses it when I hold down mouse 5 but then goes back to my previous weapon when I let go


r/Tf2Scripts • • Apr 25 '19

Question Would this script I requested a while ago also work for the Medi-guns?

8 Upvotes

In dire situations while playing as Medic, I see myself needing the Uber to escape, rather than outright engaging the enemy with Ubersaw combat. However, I sometimes forget that I'm holding the Ubersaw, NOT my Medigun, so that has resulted in a couple deaths of mine... Now I thought of porting the Buff Banner script to the Medic's cfg files, but I wonder if it'll work the same?

The script, in question:

alias banner "slot2; wait 100; +attack; wait 10; -attack"
bind MOUSE2 "banner"

Would shortening the wait value affect the script too? I want the script to be able to deploy ubercharge as soon as possible


r/Tf2Scripts • • Apr 14 '19

Script Toggle voice and text chat on the fly

8 Upvotes

You can just bind it to one key and toggle it from there

alias chat_on "voice_enable 1;hud_saytext_time 12;play HL1/fvox/voice_on.wav;echo Chat enabled;bind [any key] chat_off"
alias chat_off "voice_enable 0;hud_saytext_time 0;play HL1/fvox/voice_off.wav;echo Chat disabled;bind [any key] chat_on"
bind [any key] chat_off

Or you can use two keys

alias chat_on "voice_enable 1;hud_saytext_time 12;play HL1/fvox/voice_on.wav;echo Chat enabled"
alias chat_off "voice_enable 0;hud_saytext_time 0;play HL1/fvox/voice_off.wav;echo Chat disabled"
bind [key 1] chat_on
bind [key 2] chat_off

You can still read chat if you open the window and type to people, you just won't see it unless you want to