r/Tf2Scripts • • Sep 19 '20

Discussion how exactly does" zoom_sensitivity_ratio "works ?

Thumbnail self.truetf2
7 Upvotes

r/Tf2Scripts • • Sep 18 '20

Resolved Need help knowing if my soldier.cfg is working as intended

7 Upvotes

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

Impossible adding new keyboards to tf2

7 Upvotes

so i have no idea if this is possible, i was just curious one day, i was wondering if it was possible to have multiple keyboards all with their own seperate keys, (i.e. one keyboard i would just use regularly and the other would be for binds and such). as i said i have no idea if it is possible, i just figured might as well ask.

p.s. if you didnt understand what i just said (i dont blame you) i can clarify


r/Tf2Scripts • • Jul 30 '20

Resolved How do I activate the facial expressions and hands movement in the master config?

7 Upvotes

As said in the title I need help, and I'm using the medium and I can't use medium high because it has a lot of things that my PC can't use


r/Tf2Scripts • • Jul 27 '20

Satisfied Drawviewmodel 0 script for only primary weapon

7 Upvotes

Is there a script that turns the viewmodel off for just the primary weapon, and if so where do I put it? Thanks in advance


r/Tf2Scripts • • Jun 05 '20

Impossible Is there a way to quickly switch handedness for just soldier?

7 Upvotes

I want to use M2 to shoot from the left side for peaking sentries. I'm pretty sure this wont work on valve servers but I play enough community that I can justify painting a rocket launcher instead of always using the original.

Thanks in advance! :)


r/Tf2Scripts • • Jun 03 '20

Satisfied Sniper Zoom Crosshair Change

7 Upvotes

Hi! so I wasn't able to figure out how to achieve this, and I couldn't find anything similar, so I thought someone on here might be able to help, I am trying to:

  1. when I spawn as sniper, have my crosshair set on Crosshair 7 (the one that looks like a plus sign) and for the scale to be set to 14.5

  2. When I zoom in, I'm trying to make it switch to what tf2 calls the "default crosshair", it's the one listed after 7, and I'm trying to get the scale to switch to 8.1

  3. when I press mouse2 to zoom back out, i'm trying to get my crosshair to switch to 7, and the scale to switch to 14.5


r/Tf2Scripts • • May 16 '20

Satisfied Crosshairs for classes

7 Upvotes

So I really want to use the default crosshair for scout, and only scout, while I use crosshair 3 (closed circle) for every other class. How do I do this? I have looked it up but holy SHIT I get confused


r/Tf2Scripts • • Mar 17 '20

Answered Spy, Enemy health hover

7 Upvotes

i don't know what it's called but it's when you're playing as spy and you hover your mouse over an enemy you can see their health. i want that to be a lot bigger than stock because i have a hard time seeing it. i linked a picture of what im talking about


r/Tf2Scripts • • Jan 05 '20

Satisfied Pyro - Panic Attack/ degreaser combo script

7 Upvotes

Hello all, I'm trying to make a config that, when mouse3 is pressed, fires the panic-attack, then switches to the degreaser to puff (in the shotgun shooting cool-down), then switches back to the shotgun. When mouse3 is held, the sequence is looped.


r/Tf2Scripts • • Oct 24 '19

Satisfied How to Toggle Draw Viewmodel Script with a button?

7 Upvotes
bind "r" "r_drawviewmodel 1;slot3"
bind mwheelup "slot1;r_drawviewmodel 0"
bind mwheeldown "slot2;r_drawviewmodel 0"

Now I want this r_drawviewmodel to remain "1" when I press Capslock and go back to being controlled by the keyboard buttons when I press again(capslock light turns off) or as it is above, basically revert back as above.


r/Tf2Scripts • • Sep 29 '19

Discussion How do i start scripting in tf2? (read desc before commenting)

7 Upvotes

Hi i'd like to start scripting in TF2 but i do not know a single thing about scripting (i'm small brain) where's a good up to date guide just for the foundation of scripting where i can build stuff off of that knowledge, eventually i'd like to script outside TF2 because it sounds really fun... just the idea of scripting gets me excited but back on track.

If there's no picky guide i can find can someone just walk me through maybe?

sorry if i'm asking a lot.


r/Tf2Scripts • • Aug 01 '19

Question Can I get a spy script that automatically pulls out the medigun when I switch to medic?

7 Upvotes

As in, I hit 7 and it automatically presses 2 and then B to pull out the medigun? Makes life easier.


r/Tf2Scripts • • Jul 19 '19

Question How to change loading background

7 Upvotes

My backgrounds, I am using a customised RaysHud but I have no idea how to change the pl_upward loading screen, for some reason the loading background is always a black and white pl_upward. Is there any way to change this? Maybe there is something controlling the background making it pl_upward? Help would be greatly appreciated, thanks.


r/Tf2Scripts • • Jul 09 '19

Resolved How would I make a toggle button for sv_cheats 1?

7 Upvotes

So I rocket jump a lot in tf2. In game, I constantly toggle sv_cheats 1 by going into the console. If you could, can you bind a button to toggle sv_cheats 1 and 0 for a private server. Thanks.


r/Tf2Scripts • • Jun 26 '19

How much does script performance vary?

7 Upvotes

I've been unable to really find anything about script performance anywhere, presumably because most scripts aren't that demanding. I know that Source games will "lock up" while computing scripts, as I'm sure that anyone who has accidentally made an infinite loop is aware of. I'd like to find out how variable script performance is, and how its effected by more or less powerful machines.

If anyone would like to help me with an experiment, simply run the following script, and post how long the screen is "frozen" and what your setup is, with a stopwatch or your preferred timing method; extreme accuracy isn't needed. I only have one machine available for this test, which is a notebook with an AMD A12 9720p. It took around 54 seconds to compute this script.

alias a
alias b "a;a;a;a;a;a;a;a;a;a"
alias c "b;b;b;b;b;b;b;b;b;b"
alias d "c;c;c;c;c;c;c;c;c;c"
alias e "d;d;d;d;d;d;d;d;d;d"
alias f "e;e;e;e;e;e;e;e;e;e"
alias g "f;f;f;f;f;f;f;f;f;f"
alias h "g;g;g;g;g;g;g;g;g;g"
alias i "h;h;h;h;h;h;h;h;h;h; echo time"
i

r/Tf2Scripts • • May 30 '19

Yttrium Viewmodel Script

7 Upvotes

Is there a script for Yttrium's viewmodel for spy? I don't really like the preloading maps


r/Tf2Scripts • • Apr 24 '19

Question Is there a script to change FOV when scoping with sniper?

7 Upvotes

I was searching for one, but no results. For someone who doesnt understand it. Im searching for a script to when using(and scoping) my sniper rifle the FOV changes, and when change of weapon, FOV turns back to 90.


r/Tf2Scripts • • Dec 16 '18

Request M2 to switch and immediately use Buff Banner/Concheror/etc script

7 Upvotes

Pretty self-explanatory, I just need a Soldier script where banners are immediately activated with a single right-click


r/Tf2Scripts • • Dec 07 '18

Request Request: telling your team that spy is disguised as (class)

7 Upvotes

What I have in mind is simple to explain, but kinda hard (for me atleast) SHIFT + 1-9 (keypad) once done, it will show a message to the team saying Spy is disguised as X (classes depend on what number you clicked)

This will really help me out

Also remember, KEYPAD numbers

Thank you.


r/Tf2Scripts • • Nov 03 '18

Question Is it possible to loop music files ingame with a script?

7 Upvotes

So something like

playloop [soundfile] until matchend

or is it so obviously impossible that you could say im just lazy to put background music on


r/Tf2Scripts • • Oct 03 '18

Issue Spy Auto Sap Script - Help

7 Upvotes

I am trying to do an auto-sap script, that when i choose the sapper it constantly saps until i change to another weapon. Heres why i tried...

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

but that makes it not attack, also is not what i am looking for. Any ideas?


r/Tf2Scripts • • Sep 12 '18

Script Random something Script Maker

7 Upvotes

Here : https://codepen.io/ytythythtyhytjtyjytjytj/full/bxMrjy

You give a name for your aliases (eg : random_disguise )

You paste a command list on the left

Eg :

disguise 2 -1
disguise 4 -1
disguise 7 -1
disguise 9 -1
disguise 8 -1
disguise 4 -1
disguise 3 -1

The result (on the left) look like this :

alias random_disguise_1 "disguise 2 -1; random_disguise_tick"
alias random_disguise_2 "disguise 4 -1; random_disguise_tick"
alias random_disguise_3 "disguise 7 -1; random_disguise_tick"
alias random_disguise_4 "disguise 9 -1; random_disguise_tick"
alias random_disguise_5 "disguise 8 -1; random_disguise_tick"
alias random_disguise_6 "disguise 4 -1; random_disguise_tick"
alias random_disguise_7 "disguise 3 -1; random_disguise_tick"

alias random_disguise_tick_1 "alias random_disguise random_disguise_2;alias random_disguise_tick random_disguise_tick_2"
alias random_disguise_tick_2 "alias random_disguise random_disguise_3;alias random_disguise_tick random_disguise_tick_3"
alias random_disguise_tick_3 "alias random_disguise random_disguise_4;alias random_disguise_tick random_disguise_tick_4"
alias random_disguise_tick_4 "alias random_disguise random_disguise_5;alias random_disguise_tick random_disguise_tick_5"
alias random_disguise_tick_5 "alias random_disguise random_disguise_6;alias random_disguise_tick random_disguise_tick_6"
alias random_disguise_tick_6 "alias random_disguise random_disguise_7;alias random_disguise_tick random_disguise_tick_7"
alias random_disguise_tick_7 "alias random_disguise random_disguise_1;alias random_disguise_tick random_disguise_tick_1"


alias random_disguise random_disguise_1;
alias random_disguise_tick random_disguise_tick_1;

The "normal" alias random_disguise will "do the next action"

The "tick" alias random_disguise_tick will "skip an action"

Add the tick command on your movement aliases to add randomness to your script !

Originals ideas from this post + comments, thanks to the authors :

https://www.reddit.com/r/Tf2Scripts/comments/r6hsu/script_so_you_want_some_true_randomness_eh/

another example : randompreset

load_itempreset 0
load_itempreset 1
load_itempreset 2
load_itempreset 3

one click

alias randompreset_1 "load_itempreset 0; randompreset_tick"
alias randompreset_2 "load_itempreset 1; randompreset_tick"
alias randompreset_3 "load_itempreset 2; randompreset_tick"
alias randompreset_4 "load_itempreset 3; randompreset_tick"

alias randompreset_tick_1 "alias randompreset randompreset_2;alias randompreset_tick randompreset_tick_2"
alias randompreset_tick_2 "alias randompreset randompreset_3;alias randompreset_tick randompreset_tick_3"
alias randompreset_tick_3 "alias randompreset randompreset_4;alias randompreset_tick randompreset_tick_4"
alias randompreset_tick_4 "alias randompreset randompreset_1;alias randompreset_tick randompreset_tick_1"


alias randompreset randompreset_1;
alias randompreset_tick randompreset_tick_1;

open source, commented, easy to customize, fork it

have fun

EDIT : "disguise" was not a good choice of alias name :-/


TIP : You can add as many "shuffleness" layers as you want with this script. For example, if I create another random script from lines like this :

random_disguise_tick;random_disguise_tick
random_disguise_tick
random_disguise_tick;random_disguise_tick;random_disguise_tick

I can setup my movement binds to skip a "random" amount of actions

TIP : If you don't want "randomness", you can only call the "normal" alias and never use the "tick". Commands will be executed in the right order.

TIP : I'm working on a version that play all commands, but in a random order I think I won't continue this as it generate a lot of alias for something not so useful

https://codepen.io/ytythythtyhytjtyjytjytj/full/oPMvjo

It should work, but I have to test.


r/Tf2Scripts • • Aug 19 '16

Script New supercharged TF2 script

7 Upvotes

I've updated my ultimate framework to version 1.1, bringing along a ton of new functionality.

The Link

New features include:

  • Every bind replaced with alias (except for taunt, but i've included options for you)

  • Easy way to rebind your keys without touching your scripts

  • Many, many helpful features for scripters like:

    • Every button calls 4 functions: button press, action, button release, state_change_callback

    • Isolated from script lastinv, invnext, invprev, spec_mode, spec_next and spec_prev

    • Many miscellaneous aliases for frequently used commands

  • 6 global key modifiers : 2 press, 2 toggle and 2 sticky

  • A A A And d d d the most impressive, albeit useless to you, friggin' compiler written in ruby, because i don't want to maintain 2.7k lines of code manually

Feel free to use, criticize, experiment

and participate in development of this script!

UPDATE 1.1.1: Added Null-cancelling movement script