r/tf2scripthelp • • Oct 02 '18

Issue I have a script that auto-executes. How can I toggle it on and off?

3 Upvotes

Edit: I solved my problem. If anyone is interested in the solution just comment and I'll post it.

I wrote a script for pyro to always spawn with melee out.

This is in pyro.cfg:

alias melee "slot3"
melee

alias re_exec_pyro "wait 2000; join_class scout"
re_exec_pyro

And this is in scout.cfg:

alias join_pyro "join_class pyro"
join_pyro

The problem is, if I'm on blu team on maps with setup time, I'm stuck in spawn and end up getting switched to scout.

How can I toggle this script so that it's off by default, but can be enabled with a button (that I only have to press once)?


r/tf2scripthelp • • Mar 19 '18

Answered The console command for concise spy disguise menu

3 Upvotes

As the title suggests, I can't find the command for it anywhere. Everytime I restart my game or change class it resets to the original spy menu which I don't like so I wanted to know the console command because then I can put it in my scripts.

Thanks


r/tf2scripthelp • • Oct 29 '17

Question Not played in >1yr and scripts no longer working

3 Upvotes

Hi,

I fired up TF2 today for the first time in just over a year, and none of my scripts are working. I haven't moved them, they are all still in the same folder from last time when they worked (\tf\custom\mystuff\cfg). When I opened the console and typed exec I could only see .cfg files from the main \tf\cfg folder.

Has something changed since I've been away that prevents my scripts from working? If so, tips on what to do to fix it would be great :)


r/tf2scripthelp • • Aug 17 '17

Question How Can I Re-Respawn Without Changing Class or Loadout?

3 Upvotes

I've seen engis and medic that come back to spawn, then get all of their health and ammo back without changing loadout or class (which means without losing their uber/buildings). How can you do that? (Can be seen in this video at 00:28:09: https://www.twitch.tv/videos/167220135 ).


r/tf2scripthelp • • May 12 '17

Question Binding the menu (normally ESC) to another key?

3 Upvotes

A "tic" of mine is constantly hitting the "ESC" button which normally brings up the menu, is there any way where I can make the menu button (that is normally ESC) something else (preferably the PRINT SCREEN or NUM LOCK) buttons?


r/tf2scripthelp • • Jan 15 '17

Answered Can I make a bind activate from pressing 2 buttons at a time?

3 Upvotes

Example, pressing shift + 1 to build a sentry, another example, when I press x, it builds a tele entrance, but when I press shift + x it build a tele exit


r/tf2scripthelp • • Oct 24 '16

Answered Any useful engi scripts?

3 Upvotes

I remember watching one of Uncle Dane's video's on YouTube and at some point in the video he shows a script or something where pressing mouse wheel will build a sentry if none are built yet and destroy when there is one. I wanna know what script he used on that video because I can't seem to track it down (not that I tried that hard anyway). Can anyone help me out and tell me? Also, if there are any more useful engineer scripts that you know of, let me know. I'd really appreciate it.


r/tf2scripthelp • • Sep 06 '16

Question Medic script Crussader Crossbow quick-switch prob

3 Upvotes

What should it do: Medigun is active >> switch to Crusader's Crossbow fire an arrow > switch back to medigun and connect to heal-target in range ;;

What it does do: It binds +attack as kinda default and disables the mouse1 attack. I can't switch heal targets anymore. If i do the -attack after i heal the target the autoheal doesnt continue to heal the target. Soooo could someone help me or tell me how autoheal works and how i can make it work, or if it isn't possible. Thanks

The Script:

alias "+melee" "-attack; slot1; +attack"
alias "-melee" "slot2; tf_medigun_autoheal 1;"
bind q "+melee"

^ i also need to hold Q or it doesnt shoot and switches back very fast and the next time it doesn't shoot at all.


r/tf2scripthelp • • Aug 16 '16

Resolved config.cfg keeps reloading old settings

3 Upvotes

A while back I decided to delete Chris' maxframes config in favor of Rhapsody's. So I moved the entirety of the cfg folder to the trash and downloaded Rhapsody's config. Now, after loading up the game, I realize that a new config.cfg has been loaded, and within the config.cfg are several lines that eventually unbindall and bind some key keys like 1234567890 or wasd to +mate_(command), while the alias is already deleted. How can I stop it? I've deleted those lines several times but whenever I load up the game it breaks! I even deleted config.cfg and validated cache but still no luck. How can I just get a clean copy of config.cfg and only allow Rhapsody's autoexec to configurate that?


r/tf2scripthelp • • Jun 03 '16

Resolved Questions that came up while scripting

3 Upvotes

Ok, I've tried something that didn't go right. To sum it up:

  • I decided to bind % as my key to change my drawviewmodel this way:

 

BindToggle % "r_drawviewmodel"

 

However... I must press "alt" key in order to make "%" show up, otherwise it is the "5" key. The toggle i not working apparently.

Did I do soemthing wrong or I can't bind shift/alt + key in order to bind it ? It is my default.cfg

 

  • How can I deactivate all my scripts and then activate them all later, in case of messing something up ?

I know exec config_default resets binds but not all the scripts inside the cfgs. I ask that because I manualy turned off my r_drawviewmodel and then it remained off when I had started Steam later. My ccffgs were all down too.


r/tf2scripthelp • • Apr 24 '16

Question r_depthoverlay not working

3 Upvotes

Does anyone know how to get this command working? I'd love to use it for a project I'm working on.


r/tf2scripthelp • • Apr 09 '16

Resolved Consise Disguise menu script

3 Upvotes

My script is supposed to bypass the disguise menu and simulate the consise disguise menu when you hold down mouse3. It should rebind 1 2 and 3 so that they change the disguise, and if the disguise isn't changed when you press mouse3 it should use the lastdisguise command. By default my 1 2 and 3 buttons are bound to eq_slot1 eq_slot2 and eq_slot3:

 bind mouse3 "+dm_t"
 alias -dm_t "lastdisguise; bind 1 eq_slot1; bind 2 eq_slot2; bind 3 eq_slot3"
 alias change_dm_t "dm_t_new"
 alias dm_t_new "bind 1 eq_slot1; bind 2 eq_slot2; bind 3 eq_slot3; alias -dm_t change_dm_t2"
 alias change_dm_t2 "alias -dm_t default_dm_t"
 alias default_dm_t "lastdisguise; bind 1 eq_slot1; bind 2 eq_slot2; bind 3 eq_slot3"
 alias d1 "disguise 1 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d2 "disguise 2 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d3 "disguise 3 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d4 "disguise 4 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d5 "disguise 5 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d6 "disguise 6 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d7 "disguise 7 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d8 "disguise 8 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias d9 "disguise 9 -1; change_dm_t; change_dm1; change_dm2; change_dm3"
 alias change_dm1 "alias dm1 change2_dm1"
 alias change_dm2 "alias dm2 change2_dm2"
 alias change_dm3 "alias dm3 change2_dm3"
 alias change2_dm1 "alias dm1 d1; alias dm2 d2; alias dm3 d3
 alias change2_dm2 "alias dm1 d4; alias dm2 d5; alias dm3 d6
 alias change3_dm3 "alias dm1 d7; alias dm2 d8; alias dm3 d9
 change_dm1
 change_dm2
 change_dm3
 alias +dm_t "bind 1 dm1; bind 2 dm2; bind 3 dm3"

I think most of it works, except that actual disguising bit


r/tf2scripthelp • • Mar 04 '16

Question config compile command

3 Upvotes

wa wasn't something like this which makes you able to get a cfg with your current settings trough console? i remember i used it. and don't answer with the command list please bye


r/tf2scripthelp • • Feb 20 '16

Question Command to look up/down?

3 Upvotes

I know that you use +left to look left and +right to look right, but what is the console command to look up and down?


r/tf2scripthelp • • Feb 06 '16

Question Spy disguise script (Shift + Numpad)

3 Upvotes

I have my numbad key bound to class-switching (numpad 1 for scout, 2 for soldier, 3 for pyro etc.) and wanted to know if it's possible to make a script that, upon pressing Shift and then pressing one of the numpad buttons, makes me disguise as the class i would have usually switched to if i didn't hold Shift.


r/tf2scripthelp • • Oct 29 '15

Question How can I bind MOUSE4 to use my spellbook.

3 Upvotes

It's just that

bind "MOUSE4" "+use_action_slot_item"

Doesn't seem to work


r/tf2scripthelp • • Jul 07 '15

Answered Where is a list of commands????

3 Upvotes

I found it once. I giant list of all scripting commands. Now I cant find it. Now all I find on a google search is just stupid basic ones, +-attack, +-jump etc. Why is this so hard to find?


r/tf2scripthelp • • Aug 27 '14

Resolved Weapon switching script got over my head again

3 Upvotes

I have been using a pyro config that binds mouse 5 and 4 to secondary and melee, and then switching back to primary when i release. Problem is that if i want to flare and then melee, releasing mouse5 goes to primary. What i tried is to have +melee unbind -flare and -melee bind -flare to it's original state. But this just suddenly became too difficult for my brain to understand. Try to fix the mistakes i made:

exec crosshairswitcher/switcher; pyro
sensitivity 1.55
exec clear
//TURN
alias "+noscope" "-attack2; cl_yawspeed 2000; +left; +attack"
alias "-noscope" "cl_yawspeed 150; -left; -attack"
bind "F8" "+noscope"

//WEAPONS

bind "mouse1" "+ft"
alias "+ft" "+attack; alias "-ft" "-attack""
alias "-ft" "-attack"

bind "mouse5" "+flare"
alias +flare "slot2;r_drawviewmodel 1;sensitivity 1;slot2fix"
alias -flare sprimfunctions
alias sprimfunctions "slot1;;r_drawviewmodel 0;sensitivity 1.55;slot2fix2"

bind "mouse4" "+melee"
alias +melee "slot3;r_drawviewmodel 1;slot3fix" 
alias -melee "mprimfunctions"
alias mprimfunctions "slot1;r_drawviewmodel 0;slot3fix2"

alias slot3fix "alias -flare nothing"
alias nothing ""

alias slot2fix2 revertmelee
alias revertmelee "alias -melee meleefunctions"

alias slot2fix "alias -melee nothing"
alias nothing ""

alias slot3fix2 revertsecond
alias revertsecond "alias -flare sprimfunctions"

//i don't even use these with pyro
bind 7 "slot1;r_drawviewmodel 1"
bind 8 "slot2;r_drawviewmodel 1"
bind 9 "slot3;r_drawviewmodel 1"

r/tf2scripthelp • • Aug 27 '14

Answered Bind sensitivity script to hold mouse2 after scoping in

3 Upvotes

I had an odd notion a short time ago: to make a script that, after right-clicking, binds mouse2 to a sensitivity toggle such as from here: http://www.reddit.com/r/Tf2Scripts/comments/si0pa/little_tweaks_and_scripts_by_nobody/

And then when letting go of right-click, rebinds it to attack2.

What it would allow me to do is right-click to zoom in, then right-click and hold to lower my sensitivity, hopefully allowing me to make a good shot, then let go of mouse2 to return to normal sensitivity and reset mouse2 to allow me to zoom out.

What I need help with is how to bind mouse2 like that.

What I have so far:

alias  zoombind  "bind mouse2 +attack2"
alias +sens      "sensitivity 1"
alias -sens      "sensitivity 2"
alias +steady    "+sens"
alias -steady    "-sens, zoombind"
bind   mouse2    "+steady"

Can anyone see any problems with this? I understand it would only allow one attempt at a lowered-sensitivity shot. And reading through it, I just realized it would only work once, if at all.

Can you folks see any way to make this happen?

EDIT: thanks for your input, folks. You've shown me that such a script would be unwieldy at best, and useless at worst.


r/tf2scripthelp • • Jul 11 '14

Resolved Medic radar script not working

3 Upvotes

Having some issues with this radar script - in that it's not working at all. I've made some quite complex scripts in the past but not getting anywhere with this one. Any ideas?

alias +radar "hud_medicautocallersthreshold 300"
alias -radar "hud_medicautocallersthreshold 0"

bind mouse3 "+radar"

r/tf2scripthelp • • Jul 07 '14

Answered Toggle different NumPad functions

3 Upvotes

So yeah, I like to use the Numpad to say different things, mostly regarding stuff like kills crits and other things that make me angry. So angry that I can't even type straight and need the numpad to send predefined messages of love and joy. I have found out that the 17 keys are yet not enough to express my 'love' enough.

Is there a way to cycle the numpad functions? Eg my numpad has a default and when I press something like HOME every press on the numpad has a different function? I know this should be easy, but I'm just too dumb to figure out the toggle command.

Current keypad binds look as follows

bind "KP_END" "swear1"
bind "KP_DOWNARROW"  "swear2"
bind "KP_PGDN" "pyro" 
bind "KP_LEFTARROW" "demo"
bind "KP_5" "swear3"
bind "KP_RIGHTARROW" "engi"
bind "KP_HOME" "medic"
bind "KP_UPARROW" "sniper"
bind "KP_PGUP" "spy"

(I have a swear for each class that flips me off, yeah.)


r/tf2scripthelp • • Jun 09 '14

Answered What is a trashcan script? How does it work?

3 Upvotes


r/tf2scripthelp • • Jun 06 '14

Issue Typing input interference with game

3 Upvotes

Not sure if this subreddit could help because this isn't really a script issue but an issue with my computer as well.

I don't use any weird binds (other than weapon switch binds) so most of my keys are default binds. The only ones that matter for now is the Control (+duck) and Space (+jump).

I understand that there's ways to bind crouchjump scripts, but I'm really not used to those and prefer not to tweak it too much, so my crouch and jump keys are still the control and space keys.

Problem here is, I grew up in a Chinese-American family, and I am fluent in both Chinese and English. The issue comes here in typing: if you're familiar with how most default windows program work, when you hit ctrl+space, you will switch typing methods.

Here's the main issue: when I crouch jump, the game does what I ask it to do, but it also switches from English to Chinese typing, and sometimes this causes the game to shudder for a few seconds. When I type in chat it's often filled up with broken Chinese characters left over from typing (it's a result of typing without really making characters, a fairly common issue).

Is there anyway to change this, whether in the settings of my computer or within my game?


r/tf2scripthelp • • May 25 '14

Question Jump rebind script?

3 Upvotes

jump

i wanted to make a script that when i click on mouse wheel it'll rebind my jump to mouse wheel down and when i click it again it'll bind it to space bar again and i was wondering if this is possible at all and if i could have help making it cause I'm a noob at these things btw i mean just click on it not hold it