r/Tf2Scripts • • Aug 07 '20

Resolved creating multi-key binds (ie shift+alt=call for medic)

5 Upvotes

I am making my own spy.cfg file, and i have bound the keypad to the corresponding enemy disguises, but i want to make it so that if i press the 0 key on the keypad and then one of the numbers it disguises as a player on my team, i looked it up and put in the code it said i should, but whenever i press the key it crashes my game, this is the code i put in.

bind KP_END disguise

alias disguise disguise_enemy

alias disguise_enemy "disguise 1 -1"

alias disguise_friendly "disguise 1 -2"

bind shift +toggleState

alias +toggleState "alias disguise_friendly"

alias -toggleState "alias disguise_enemy"


r/Tf2Scripts • • Jul 25 '20

Request Looking for looping taunt script

5 Upvotes

So I want to loop the kamikaze pickaxe taunt.

To activate it, you need the pickaxe out and press g twice or type "taunt 0" in console.

Is there a way to loop this so you will continuously use this taunt?


r/Tf2Scripts • • Jul 23 '20

Answered How do I toggle configs?

5 Upvotes

How do I bind a button to toggle between different configs. If this is impossible then how would I bind a button to toggle one config. Also does this work with folders or just configs?


r/Tf2Scripts • • Jul 13 '20

Wrong Section How do I remove uber effect on weapons?

5 Upvotes

Basically just what the title says. I saw some youtubers play and whenever they get ubered or they pop it themselves, the weapon doesn't show the uber effect but the hand does. I just want to know how to be able to do that.


r/Tf2Scripts • • Jul 02 '20

Issue Script help

5 Upvotes

I have a script on GameBanana. ( https://gamebanana.com/scripts/10569 )

And it has an automatic teleporter entrance that I implied it was already done before, but it wasn't.

But there's a bug that when you lag, the class config executes. This is annoying for me because I use wireless and I have to type in my custom script for trolldier when it lags (that was kinda random). Do you guys know how to remind how to say it was already responded but reset when you change class or the game ended?


r/Tf2Scripts • • May 05 '20

Resolved FPS is not as high as it used to be (help)

5 Upvotes

I got a new PC and used Comanglias max frames config for a couple weeks and got consistently 200-300 fps even in huge fire fights. I then tried a maxframes config and got around 150 when nothing is happening and around 60fps in fire fights. I then switched back to my maxframes config and now it stil only runs at around 60 fps even though all the graphical settings have changed. How do I fix this?

it was a roblem with my MSI Afterburner I uninstalled it and its fine now


r/Tf2Scripts • • Apr 26 '20

Question How well can my Class Chargeable Ready (Uber/Banner/Etc) Callout Scripts be optimized?

5 Upvotes

I was wondering how optimized this could be, especially when it comes to both compressing (shorter strings) and expanding (putting it onto other classes)

This one is incomplete, but it's pretty clear for the user to put the selecting alias in console.

bind t "callout_ready"
alias callout_ready_medigun "say_team ***STOCK UBER READY***"
alias callout_ready_select_medigun "load_itempreset 0; alias callout_ready callout_ready_medigun"
alias callout_ready_quickfix "say_team ***QUICKFIX UBER READY***
alias callout_ready_select_quickfix "load_itempreset 1; alias callout_ready callout_ready_quickfix"
...

callout_ready_select_medigun - to select Medigun and Medigun callout

callout_ready_select_quickfix - to select QuickFix and QuickFix callout

This next one is a cycling bind.

bind t callout
bind y cr_cycle

alias callout medigun_callout

alias medigun_callout "say_team stock uber ready"
alias quickfix_callout "say_team quickfix ready"
alias kritzkrieg "say_team kritzkrieg ready"
alias cycle_loadout "increment_var load_itempreset 0 2 1"

alias cr_cycle cr_cycle1
alias cr_cycle1 "cycle_loadout; alias cr_cycle cr_cycle2; alias callout callout_quickfix"
alias cr_cycle2 "cycle_loadout; alias cr_cycle cr_cycle3; alias callout callout_kritzkrieg"
alias cr_cycle3 "cycle_loadout; alias cr_cycle cr_cycle1; alias callout medigun_callout"

r/Tf2Scripts • • Apr 07 '20

Impossible Is there a script that can automatically report and block certain usernames?

5 Upvotes

Unless you’re living under a rock, we know tf2 has been hit with a crashbot crisis. I want a script that is able to (a) Identify a bot through nicknames or past nicknames, (b) report and block communication with said bot, and (c) type “cl_timeout 1000” to prepare if the bot attempts to crash the server.

I don’t know if its possible or not, asking for a friend.


r/Tf2Scripts • • Mar 25 '20

Answered Is there a way to disable particle effects?

5 Upvotes

Question: Is there a way to disable particle effects, they have been annoying me for quite a bit now. (I know that there are scripts out there wich do that in sv_cheats2 servers, I am looking for scripts wich do it in all server) thank you.


r/Tf2Scripts • • Feb 19 '20

Satisfied Counting Style Script?

5 Upvotes

Is there any way possible to create a script that could count?

Say I hit a bounded key 5 times, I could then hit another key to output : “5” into the chat.

I know part of the “limits of scripting” said that you can’t read or add to values in cVar, but I wondered if there was any sort of loophole.

Probably a dumb question


r/Tf2Scripts • • Feb 17 '20

Satisfied Kinda hard script

5 Upvotes

Hey all,

So I want to echo the status command on my screen (maybe on my hud), but only my status line.

Is this possible? Is there a way to do something like netgraph?

Thanks for your help and time.

Best regards.

Edit: For some reason, it works on match but not on training maps.


r/Tf2Scripts • • Feb 09 '20

Answered Demoman charge spam script

5 Upvotes

I'm need help getting this script to work and I'm not sure where to put it or how to use it. I was told to put [ alias demospam "load_itempreset 0; voicemenu 0 0; +attack2; wait 10; -attack2; load_itempreset 1"
bind [key] "demospam" ] into my autoexec file and then it would work but it wont respawn me. I don't have a lot of experience scripting so this is pretty confusing. Any help is appreciated.


r/Tf2Scripts • • Dec 11 '19

Answered medic ubercharge broadcast script

5 Upvotes

Ok so currently I have a medic script that tells my team I used ubercharge In the team chat whenever I press mouse2 that looks like this:
alias "popMediG" "say_team > POPPED UBERCHARGE (MEDI GUN)"

alias "popKritz" "say_team > POPPED UBERCHARGE (KRITZKRIEG)"

alias "popQuick" "say_team > POPPED UBERCHARGE (QUICK-FIX)"

alias "popVacci" "say_team > POPPED UBERCHARGE (VACCINATOR)"

alias "pop" "popMediG"

alias "+uber" "spec_prev; maskVoice; +attack2; pop"

alias "-uber" "maskVoice; -attack2"

bind "MOUSE2" +uber

but right now it's only able to say the first message. I don't want my team to think I popped stock uber when I'm actually using the vaccinator. Is there a way for me to be able to press a button in-game that switches which message it broadcasts when I use Uber?

I first posted this to r/tf2scripthelp but I didn't seem to get much of an answer.


r/Tf2Scripts • • Nov 14 '19

Resolved Eureka Effect script problem, Need Help

5 Upvotes

So I'm having trouble with the SolarLight's Eureka Effect Fast Teleport Scrip, all I want is for me to press alt and go to spawn ,and to press B and go to my tele exit. The scripts have used are

///////////////////////////////////////////////////// // SolarLight's Eureka Effect Fast Teleport Script // ///////////////////////////////////////////////////// bind +teleport alias +teleport slot3 alias -teleport Teleport_To_Spawn alias Teleport_To_Spawn "eureka_teleport" alias Teleport_To_Exit "eureka_teleport 1" bind +toggleTeleport alias +toggleTeleport "alias -teleport Teleport_To_Exit" alias -toggleTeleport "alias -teleport Teleport_To_Spawn" /////////////////////////////////////////////////////////

and a modified version

/////////////////////////////////////////////////////
// SolarLight's Fast Eureka Effect Teleport Script w/Toggle by ❮ϟ𝟑 //
/////////////////////////////////////////////////////
bind b +teleport
alias +teleport slot3
alias -teleport Teleport_To_Spawn

alias Teleport_To_Spawn "eureka_teleport 0"
alias Teleport_To_Exit "eureka_teleport 1"

alias toggleon "bind b Teleport_To_Exit; bind ctrl toggleoff"
alias toggleoff "bind b Teleport_To_Spawn; bind ctrl toggleon"
bind ctrl toggleon
/////////////////////////////////////////////////////////

can y'all help me?


r/Tf2Scripts • • Nov 08 '19

Answered Is "slot1; slot2" slower than "slot1"?

5 Upvotes

r/Tf2Scripts • • Nov 03 '19

Answered spy.cfg affects other classes

5 Upvotes

As the title says, my spy config affects other classes, how do I make it stop? Thanks in advance


r/Tf2Scripts • • Oct 21 '19

Resource How to increase FPS

5 Upvotes

Just wanted to make this because I've sent it to many people over the years and figured other people might want it as well. If you want to get some extra FPS on tf2 and don't mind it looking like a potato then throw these into your autoexec folder. Enjoy!

cl_ragdoll_fade_time 0

cl_ragdoll_forcefade 1

cl_ragdoll_physics_enable 0

g_ragdoll_fadespeed 0

g_ragdoll_lvfadespeed 0

ragdoll_sleepaftertime 0

cl_phys_props_enable 0

cl_phys_props_max 0

props_break_max_pieces 0

r_propsmaxdist 1

violence_agibs 0

violence_hgibs 0

mat_phong 0


r/Tf2Scripts • • Oct 07 '19

Answered Sapper Script Not Working.

5 Upvotes

So recently I started getting into scripting so that I could make a script that when pressing "2" on my keyboard I pull out the sapper, use it, then switch back.

bind 2 "+sap"
	alias +sap "-attack; slot2; +attack"
	alias -sap "lastinv; -attack"

This is what I came up with. It works perfectly unless I swung my knife or shot my gun right before switching. It will pull out the sapper, but not use it unless I click. How can I fix this? (By the way I am very new to scripting.)

EDIT:

Here's my solution:

bind mouse1 "+normal_attack"
	alias +normal_attack "+attack; alias -normal_attack -attack"
	alias -normal_attack "-attack"
bind 2 "+sap"
	alias +sap_attack "+attack"
	alias -sap_attack "-attack"
	alias +sap "slot2; alias -normal_attack none; +sap_attack"
	alias -sap "lastinv; -sap_attack; alias -normal_attack -attack"

Here's Skaib1's solution:

bind "mouse1" "+imp_attack_m"
bind "<SAP BUTTON>" "+imp_attack_s"

alias "+imp_attack_m" "+attack; spec_next; alias check1 question_no"
alias "-imp_attack_m" "alias check1 none; stop_check"

alias "+imp_attack_s" "slot2; +attack; alias check2 question_no"
alias "-imp_attack_s" "lastinv; alias check2 none; stop_check"

alias "check2" "none"
alias "check1" "none"
alias "question_no" "alias stop_question none"
alias "stop_check" "alias stop_question -attack; check1; check2; stop_question"

r/Tf2Scripts • • Jul 26 '19

Question Any other ways to make the game look dark and spooky?

5 Upvotes

I found these

https://imgur.com/a/JVJfu

Link to original post

https://www.reddit.com/r/tf2/comments/3ii8ij/graphics_mod_that_makes_tf2_look_like_a_horror/

I got it to work, but the problem is my graphics card, it's old and it doesn't work well performance-wise. 10 fps, not good.

So I was in the asking, does any of you know any alternative to that, but with less impact to performance?


r/Tf2Scripts • • May 22 '19

Issue peculiar issue with model quality (r_rootlod)

5 Upvotes

I've had my graphics config (based on chris') for quite some time now, and it's always been set to the lowest possible setting. Now I decided to put just the model quality it higher because the low setting causes my new hat (modest pile of hat, if it matters) to appear edged rather than rounded and also clips with the playermodel.

Now here's the issue, I've set r_rootlod to 0 in my graphics config (executed by my autoexec) and it only seems to change the models when looking in my inventory... in-game they still look very blocky.

any advice that might put me in the right direction is welcome!


r/Tf2Scripts • • Apr 29 '19

Answered Complex resub script, is this even possible?

5 Upvotes

I have my arrow keys bound to loadouts:

bind "UPARROW" "load_itempreset 1"
bind "LEFTARROW" "load_itempreset 0"
bind "DOWNARROW"  "load_itempreset 2"
bind "RIGHTARROW" "load_itempreset 3"

Super simple

Butttt.....

....I play medic in comp and I would like a general resub bind on my mouse (MOUSE3). Problem is this one button has to know which item preset I am using or I loose my ubercharge.Is there a way when I press "UPARROW" that it loads "itempreset 1" and sets "MOUSE3" to "load_itempreset 1" (preferably while still keeping "UPARROW" bound). Same thing when I press "LEFTARROW" it loads "itempreset 0" and sets "MOUSE3" to "load_itempreset 0" etc.

It might be the sleep deprivation, but trying to work this out feels like it's melting my brain. thx

EDIT:
I worked it out, it was super simple, I just haven't slept for 42 hours

alias ups "load_itempreset 1"
alias lefts "load_itempreset 0"
alias downs "load_itempreset 2"
alias rights "load_itempreset 3"

bind "UPARROW" "ups ; bind MOUSE3 ups"
bind "LEFTARROW" "lefts ; bind MOUSE3 lefts"
bind "DOWNARROW" "downs ; bind MOUSE3 downs"
bind "RIGHTARROW" "rights ; bind MOUSE rights"

r/Tf2Scripts • • Apr 10 '19

Script Press-and-hold crouch toggle

Thumbnail
gamebanana.com
5 Upvotes

r/Tf2Scripts • • Mar 10 '19

Resolved How to change my weapon to shotgun when I place a sentry?

5 Upvotes

So I have this script:

alias build_sentry "destroy 2; build 2"

bind mouse4 build_sentry

When I click mouse4 and place a sentry my weapon changes to wrench. How can I edit it to change to shotgun?


r/Tf2Scripts • • Feb 26 '19

Impossible idea for advanced medic radar

5 Upvotes

i’ve seen scripts for “medic radar” before where it momentarily makes the “auto callout for medic” threshold very low so you can see the approximate location of all of your teammates through walls. I don’t use one of those radars because they’re clunky and don’t give much information really. however, a slightly different mechanic that’s very useful is the ‘call for medic’ voice line and that puts a different colored bubble on your hud depending on how hurt the person is instead. (the bubble around the medic cross gets redder as the player’s health gets lower) Can anyone on here think of a way to integrate these two features so that i could constantly see my teammates’ relative position through walls and have a decent sense of how hurt they are? (if yes the i also have some other ideas for blue-tinged bubbles for overhealed teammates)