r/Tf2Scripts • • Dec 22 '20

Answered Is it possible to make a bind to say a random text bind I have?

6 Upvotes

So basically I want to know if I can have a bind that if I click one button then it randomly picks from a list and puts it in chat something like bind p to say a fun fact. Thanks in advance for any help


r/Tf2Scripts • • Dec 12 '20

Resolved autoexec scripting help

6 Upvotes

Hi! I have been trying to make a script that uses no viewmodels on every gun, exept meele. I also wanted to make that when I press page up, It turns on, and when I press page down, It disables it. this is what I came up with:

alias noview1 bind 1 "slot1; r_drawviewmodel 0"
alias noview2 bind 2 "slot2; r_drawviewmodel 0"
alias noview3 bind 3 "slot3; r_drawviewmodel 1"
bind pgup "noview1; noview2; noview3"
bind pgdn "r_drawviewmodel 1; bind 1 slot1; bind 2 slot2; bind3 slot3" 

I put this in the autoexec.cfg file, but for some reasons it doesn't work. I suspect its a problem with the aliases, (I never used them before.) Help would be appreciated, Thanks!

P.S. Im kinda new to tf2 scripting, so sorry if the code is ugly.


r/Tf2Scripts • • Dec 06 '20

Question Help with custom crosshairs

6 Upvotes

Hi guys, i tried using custom crosshairs yesterday but they didnt seem to work on casual servers, is there any way that i can make them work on sv_pure 2 ? Thanks!


r/Tf2Scripts • • Dec 05 '20

Question Why is mat_reducefillrate causing precache errors?

Thumbnail self.tf2scripthelp
6 Upvotes

r/Tf2Scripts • • Nov 10 '20

Answered When are the launch options in the mastercomfig docs going to get updated?

6 Upvotes

With the source code leak of tf2, we can now get much more information on how the launch options work, and of course get a proper list for them, rather than a list of strings that could easily be junk. (P.S Should I mention her username? Eh probably.. u/mastercoms.) Mentions don't work in posts. Good to know.. EDIT: Made a correction.


r/Tf2Scripts • • Oct 27 '20

can I bind a key to flip my viewmodels?

6 Upvotes

r/Tf2Scripts • • Sep 15 '20

Resolved Trying to add a simple Uber popped bind into my medic when i swap to him

6 Upvotes

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 • • Sep 13 '20

Answered What's the point of adding custom settings?

6 Upvotes

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 • • Sep 11 '20

Question So recently I learned something and have a question...

6 Upvotes

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

Resolved Med radar dosnt work.

Post image
6 Upvotes

r/Tf2Scripts • • Aug 04 '20

TF2 Script Library

6 Upvotes

A Simple Script. It's a Script that has everything! All you need to do is bind it to a key!
Here is the entire Script (so far.)

This script library is for "Convenience". I made this for both Scripters and Scriptees(?) (The People who just use scripts from r/Tf2Scripts) so it's 1000% faster for you to type your simple script. Or you just bind it and bam there!

// tf2 script library
echo Booting TF2 Script Library!
echo Setting Up Options
tf_use_min_viewmodels 1

echo Setting Up Commands
alias tsl_help_page1 "echo "Script Library | Page 1";echo "+crjump - Crouch Jump! WARNING: You can't taunt out of taunts like Kazotsky's and Conga.""

alias +crjump "+jump;+duck"
alias -crjump "-jump;-duck"

// for Call of Duty nerds ; Or maybe you just play Halo, I hope you play Halo, halo is much better dude.

alias +zoom "fov_desired 10;+attack2;tf_use_min_viewmodels 0"
alias -zoom "fov_desired 90;-attack2;tf_use_min_viewmodels 1"

echo Setting Up Voicemenu Names

alias MEDIC "voicemenu 0 0"
alias Thanks "voicemenu 0 1"
alias Go_Go_Go "voicemenu 0 2"
alias Move_Up "voicemenu 0 3"
alias Go_Left "voicemenu 0 4"
alias Go_Right "voicemenu 0 5"
alias Yes "voicemenu 0 6"
alias No "voicemenu 0 7"
alias Pass_To_Me "voicemenu 0 8"

echo Voicemenu 1 Done.

alias Incoming "voicemenu 1 0"
alias Spy "voicemenu 1 1"
alias Sentry_Ahead "voicemenu 1 2"
alias Teleporter_Here "voicemenu 1 3"
alias Dispenser_Here "voicemenu 1 4"
alias Pootis "voicemenu 1 4" // Your Welcome :)
alias Sentry_Here "voicemenu 1 5"
alias Activate_Charge "voicemenu 1 6"

// Ubercharge Ready Alias Alternatives
alias Uber_Ready "voicemenu 1 7"
alias Ubercharge_Ready "voicemenu 1 7"
alias Uber "voicemenu 1 7"
alias Ubercharge "voicemenu 1 7"
alias Medic_Uber_Ready "voicemenu 1 7"
alias Medic_Ubercharge_Ready "voicemenu 1 7"
alias Medic_Ubercharge "voicemenu 1 7"
alias Medic_Uber "voicemenu 1 7"

echo Uber Ready Alternatives Done.
echo Voicemenu 2 Done.

alias Help "voicemenu 2 0"
alias Battle_Cry "voicemenu 2 1"
alias Cheers "voicemenu 2 2"
alias Jeers "voicemenu 2 3"
alias Positive "voicemenu 2 4"
alias Negative "voicemenu 2 5"
alias Nice Shot "voicemenu 2 6"
alias Good Job "voicemenu 2 7"

echo Voicemenu 3 Done.

echo TF2 Script Library Loaded!

Let me know what to add.
Also What Name Should I change this to?
For Now I'll continue adding more crap to this.


r/Tf2Scripts • • Jul 24 '20

Discussion Getting bored again. Anyway to improve my config?

Thumbnail
github.com
6 Upvotes

r/Tf2Scripts • • Jul 12 '20

Answered How do you put multiple lines of code without ';'?

6 Upvotes

I'm trying to have my code a little cleaner and I don't want 1 long string of code and way to not use ';' to separate code? Like putting them in parentheses or brackets.


r/Tf2Scripts • • Jun 23 '20

Resolved Settings not saving

6 Upvotes

How do I get my in-game settings to save now I've setup my scripts? I try to change my audio in-game but it wont save, can I not do that anymore?


r/Tf2Scripts • • Jun 02 '20

Discussion I'm VERY bored. What should I add and how should I improve my configs?

6 Upvotes

Configs Download

Note: If you have your class configs, you may need to take them out.


r/Tf2Scripts • • May 28 '20

Satisfied Comp Script

6 Upvotes

What I want my script to do is that if I press control and a number at the same time, it says in team chat a specific class is down. Like if I press control and 3, it says in team chat Pyro Down. I want it to follow the class selection order, from scout to spy. This might be a tough script, so I thank anybody who does it


r/Tf2Scripts • • May 20 '20

Question What is the point of the command "cmd"?

6 Upvotes

A few days ago, I discovered the command cmd. It takes a command as a parameter and relays it to be executed by/as a server, but commands can also be executed clientside. I tried to search up it's usage, but duckduckgo always interprets cmd as command, even in double quotes, I can't find any uses, aside from it ignoring aliases, and I don't see much potential in it.

Sidenote: What are the functions of all the default config files? (Exclude class configs, because I know about those.)

EDIT: I also would like to know how to use the <sameline> tag in captions.


r/Tf2Scripts • • Mar 13 '20

Question Boston basher jump script + crouch + winger?

6 Upvotes

Would it be possible to make a basher-crouchjump script that also swaps to the winger for added jump height? Would it be possible without a script?


r/Tf2Scripts • • Jan 20 '20

Satisfied Phlog voice-command cancel script?

6 Upvotes

Hey

Am looking for a small script to put on my RMB button that 1) activates the phlog [+attack2] 2) hides the voice-command with one that preferably doesn't attract very much attention

Thanks in advance =)


r/Tf2Scripts • • Dec 30 '19

Satisfied Number keys change slots and loadouts

6 Upvotes

How would i make it so that if i press 1/2/3/4 it switches to that slot, but if i hold down ALT and press a number it switches loadout (EX. ALT+2 would switch to loadout b)


r/Tf2Scripts • • Dec 05 '19

Satisfied A Script that Picks a different map at every time it (cfg) is activated

6 Upvotes

I am changing the main menu background to an actual map in realtime during the launch of tf2 by putting a command (below) in a separate cfg and link it to Autoexec. Now I don't want it to show me the same map every time, so I can provide a list of default/stock maps.

map_background koth_viaduct

Replace "koth_viaduct" with different maps. It would also be nice if there were an option to add new maps with ease, but it's not a necessity. If it's too tedious for you to add all maps, tell me how to do it, I'll add them. Thanks to whoever does this. Ik it's possible as there's a spy disguise script that also picks random disguises. Random maps are fine too.

List of default maps: https://pastebin.com/prw7dm8e


r/Tf2Scripts • • Oct 21 '19

Impossible Is there a way to disable warpaints without lowering directx?

6 Upvotes

Sorry if this is not the place for this kind of question, but I'm just wondering if it's possible.


r/Tf2Scripts • • Sep 15 '19

Discussion Spy competitive scripts?

6 Upvotes

I want to play competitive so i want some spy scripts

(competitive or just scripts that are nice to have)


r/Tf2Scripts • • Sep 02 '19

Resolved So I’m having a problem with my class specific scripts leaking into all classes.

6 Upvotes

I set MOUSE2 to duck on soldier.cfg but it made all classes duck with MOUSE2. Is there a script that I can put into autoexec.cfg to fix this?