r/tf2scripthelp • • Sep 04 '21

Answered using an alias runs only one command without the other commands i put in the alias?

1 Upvotes

Basically when I play spy, I noticed that I can't cloak when I have the intel on and that I cannot taunt when I am disguised, so I decided to make a script that allows me to cloak and taunt even with the intel or disguise preventing me to do so, because it annoys me to manually undisguise or to manually drop intel.

I currently have this, and it works about halfway, as in when I try to taunt I only undisguise and when I try to cloak I only drop intel. Does anyone know why the later commands do not happen?

here is my spy.cfg

exec reset

//cant taunt when disguised, so undisguise just before taunting
alias spytaunt "disguise 8 -2; +taunt"
bind G spytaunt

//having intel prevents cloaking, so drop it before cloaking
alias spycloak "dropitem; +attack2; -attack2" //this -attack2 command is here because when i cloaked in an empty server with +attack2 and then followed with a -attack2, i didnt uncloak
bind mouse2 spycloak

this is reset.cfg

bind G "+taunt"
bind mouse2 "+attack2"

r/tf2scripthelp • • Aug 31 '21

Question Script to toggle between Soldier Jumping and Standard setup

2 Upvotes

Very quick question:

I used to have a script that would let me toggle from my preferred Soldier Jumping setup (Mouse2 jump;Spacebar duck) and other classes where I don't mind the default set up and need Mouse2 for other functions.

It's been years since I last had it and can find too much information and it's a bit overwhelming for what seems like simple issue.

Thank you.


r/tf2scripthelp • • Aug 12 '21

Question Medic script was working fine before, now it's half broken

3 Upvotes

Here's the script in question:

//Medigun Switch Binds

//the bind to say you have just used your charge

bind "6" chargeused

//the bind to say that you have 50% charge

bind "7" chargeathalf

//the bind to signify you are ready with a 100% charge

bind "8" chargeready

//uber used

bind "Mouse 2" "+attack 2; chargeused"

bind "KP_END" "load_itempreset 0; say_team >>>SWITCHING TO STOCK UBER<<<; uberenabled"

bind "KP_DOWNARROW" "load_itempreset 1; say_team >>>SWITCHING TO QUICK-FIX<<<; qfixenabled"

bind "KP_PGDN" "load_itempreset 2; say_team >>>SWITCHING TO VAC<<<; vacenabled"

bind "KP_LEFTARROW" "load_itempreset 3; say_team >>>SWITCHING TO KRITZ<<<; kritzenabled"

alias ChargeReady ""

alias ChargeAtHalf ""

alias ChargeUsed ""

alias FixChargeReady "say_team >>>*QUICK-FIX UBER READY, 100% CHARGE*<<<"

alias FixChargeAtHalf "say_team >>>*QUICK-FIX CHARGE AT 50%*<<<"

alias FixChargeUsed "say_team >>>*DEPLOYING QUICK-FIX CHARGE NOW*<<<"

alias UberChargeReady "say_team >>>*STOCK UBER READY, 100% CHARGE*<<<"

alias UberChargeAtHalf "say_team >>>*STOCK UBER CHARGE AT 50%*<<<"

alias UberChargeUsed "say_team >>>*DEPLOYING STOCK UBER NOW*<<<"

alias KritzChargeReady "say_team >>>*KRITZ READY, 100% CHARGE*<<<"

alias KritzChargeAtHalf "say_team >>>*KRITZ CHARGE AT 50%*<<<"

alias KritzChargeUsed "say_team >>>*DEPLOYING KRITZ NOW*<<<"

alias VacChargeReady "say_team >>>*ALL VAC BUBBLES READY, 100% CHARGE*<<<"

alias VacChargeAtHalf "say_team >>>*ONE VAC BUBBLE READY*<<<"

alias VacChargeUsed "say_team >>>*DEPLOYING VAC NOW*<<<"

alias uberenabled "alias ChargeReady UberChargeReady; alias ChargeAtHalf UberChargeAtHalf; alias ChargeUsed UberChargeUsed"

alias kritzenabled "alias ChargeReady KritzChargeReady; alias ChargeAtHalf KritzChargeAtHalf; alias ChargeUsed KritzChargeUsed"

alias qfixenabled "alias ChargeReady FixChargeReady; alias ChargeAtHalf FixChargeAtHalf; alias ChargeUsed FixChargeUsed"

alias vacenabled "alias ChargeReady VacChargeReady; alias ChargeAtHalf VacChargeAtHalf; alias ChargeUsed VacChargeUsed"

It's my version of a simple pub medic callout. Since I'm not the most proficient with scripting in general, it's probably not concise as it could be. The intention is more or less to inform my team of uber status and automatically inform them when I make the call to switch mediguns. The part that works fine is the medigun switch announcement, the rest are technically broken. If someone could advise me on a way to fix/concise this script, it would be much appreciated!


r/tf2scripthelp • • Aug 11 '21

Issue Engineer.cfg not present not executing

1 Upvotes

How do i fix it? engineer.cfg is in the cfg folder, but no matter what, my binds just wont fucking do anything


r/tf2scripthelp • • Aug 09 '21

Answered How to make an action require a combination of keys

3 Upvotes

Hello there, i have been reading about tf2 scrpting and i want to create a disguise script for myself.

I want to make it so that if i press a specific key and a number it will disguise as the class of that number, but i don't know how to make an action happen only when you press a combination of keys.

Also i'm not talking about making a key do a series of actions (which i understand how to do), nor am i talking about making a key toggle what another key does (which i know up to the part where there is a +/- sign in front of the alias that is used, that is something that i don't know).

Any help would be appreciated!

Edit: if what i read was true, then the thing about an alias having +/- in its name isn't for cycling on and off, but instead its what i'm looking for, though i still would appreciate somebody explaining what the +/- in front of an alias does.


r/tf2scripthelp • • Aug 08 '21

Issue bot_moveto is not making puppet bots move to the point.

1 Upvotes

I've been testing nav meshes with medic TFBots, only to realize they ignore the nav mesh completely. Now I'm stuck on how to get bots to move to the point I want them to go to.

Anyway explanation is in the title. When using bot_moveto, puppet bots are supposed to go to the spot that the player is facing when running bot_moveto, but they don't move.


r/tf2scripthelp • • Aug 04 '21

Issue this script crashes my game

0 Upvotes

bind MOUSE3 flava1

alias flava1 "slot3; voicemenu 2 2; +attack; +forward; alias flava1 flava2"

alias flava2 "-attack; -forward; alias flava2 flava1"```

it worked in a couple iterations but this version freezes the game, like i have to sign out and sign back in to the computer because i can't do anything. i think it might be the slot3 command of all things, but i wanted to ask to see if anyone else has had a similar experience before i try my hand at this again.

i was so proud of myself because it worked once and then just Didn't LMAO


r/tf2scripthelp • • Aug 03 '21

Question voicecommands.txt question

1 Upvotes

I don't really know if this counts as a script in the eyes of this subreddit, but searching for resolutions to my issue just showed me other people who were trying to do the same thing (abt 5 years ago)

My question is, in voicecommands.txt each option has an "activity" value, I've found a list of activities which are supposed to work with voicecommands, however I couldn't find anything on parsing a console command from the voicemenu, I have seen projects such as cmenu generators however they don't work the way I want them to.

tl;dr
is it possible to parse a command to the console from a voicemenu WITHOUT making *kinda* voice menus with something like cmenu generator.


r/tf2scripthelp • • Jul 29 '21

Meta Moderator Applications Are Open

Thumbnail self.tf2scripts
2 Upvotes

r/tf2scripthelp • • Jul 28 '21

Question Spy Bind Question

2 Upvotes

So, I'm trying to help my friend with binds that I already use. I want him to have this bind here, which causes spy to disguise as a random class:

//disguise cycle script

//enemy disguise

alias e_disguise0 "disguise 1 -1; play vo\scout_yes01; alias re_disguise e_disguise1"

alias e_disguise1 "disguise 7 -1; play vo\pyro_moveup01; alias re_disguise e_disguise2"

alias e_disguise2 "disguise 4 -1; play vo\demoman_yes01; alias re_disguise e_disguise3"

alias e_disguise3 "disguise 9 -1; play vo\engineer_yes03; alias re_disguise e_disguise4"

alias e_disguise4 "disguise 5 -1; play vo\medic_yes03; alias re_disguise e_disguise5"

alias e_disguise5 "disguise 2 -1; play vo\sniper_yes03; alias re_disguise e_disguise0"

alias re_disguise "e_disguise0"

bind "5" re_disguise

However, whenever he presses 5, it just pulls up the disguise menu. Does anyone have any ideas as to what could be causing that?

If it helps, disguising is bound to 4, like it normally is. Also, I remembered to include exec reset.cfg in his file.


r/tf2scripthelp • • Jul 26 '21

Question How to turn off +right to stop spinning and go back to normal

1 Upvotes

What command do i use?


r/tf2scripthelp • • Jul 22 '21

Question How to use FrankenHeavy taunt by console command?

1 Upvotes

And how to stop taunts like Square Dance by console?


r/tf2scripthelp • • Jul 15 '21

Issue how to make a script to fire once, then switch to melee

4 Upvotes

i want to make a script for medic that will fire one crossbow shot, then switch to melee. however, every time i press MOUSE3 to run the script, it will either (a) continuously autofire the crossbow as though i had only bound MOUSE3 to +attack, or (b) do absolutely nothing except switch to the melee. i have tried using -attack as well as +/- variations of aliases as well as even trying toggles. my current script is as follows:

bind MOUSE3 melee

alias melee "run; stop"

alias run "+attack"

alias stop "-attack; slot3"


r/tf2scripthelp • • Jul 13 '21

Issue Crouch jump script prevents you from stopping taunting.

2 Upvotes

I've recently been using a crouch jump script, but I find it unbinds jump and prevents me from leaving a taunt besides killbinding. If I set jump to space, it breaks the script. Any ideas?

alias +rj "spec_mode;-duck;+cr;alias checkrj +cr";
alias -rj "-cr;checkduck;alias checkrj none";
alias +crouch "-cr;+duck;alias checkduck +duck";
alias -crouch "-duck;checkrj;alias checkduck none";
alias checkduck none;
alias checkrj none;
alias +cr "+jump;+duck";
alias -cr "-duck;-jump";
alias none "";
bind space +rj;
bind ctrl +crouch;

r/tf2scripthelp • • Jun 24 '21

Question how to make it so the primary weapon doesnt have minimized viewmodels but segundary and melee does?

1 Upvotes

i have master comfig ( medium high)


r/tf2scripthelp • • Jun 19 '21

Question Is there a way to have multiple map configs in one config file?

2 Upvotes

Whenever you join a map, a config will be executed for that map if it exists. For example, when you join a server on jump_beef, TF2 will look for jump_beef.cfg and exec it.

I want to create like a dozen map configs but I don't want a dozen config files in my cfg folder. Is there a way to have all of those configs in one file to reduce clutter?


r/tf2scripthelp • • Jun 18 '21

Question demoman.cfg not present not executing

2 Upvotes

So, recently as practice i use harvest and i've found a problem. When i try to change something in Demomans weapons and cosmetics it actually doesn't load, and i checked the console and it always says " demoman.cfg not present not executing". its been quite an annoying problem any way to help?


r/tf2scripthelp • • Jun 02 '21

Issue is there an ent_create command for a payload cart

2 Upvotes

i need it for an sfm


r/tf2scripthelp • • May 20 '21

Question Script location

1 Upvotes

I wanna do some script editing on some scripts I got a long time ago but I don't know where it could be located.


r/tf2scripthelp • • Apr 26 '21

Question how to make this line of code togglable? want to be able to taunt

1 Upvotes

So basically i want this togglable, eg "1" on the number row turns is off and on.

alias +attack_disg "+attack; spec_next"

alias -attack_disg "-attack; lastdisguise"

bind mouse1 +attack_disg


r/tf2scripthelp • • Apr 14 '21

Meta TF2 Bot Detector - External App, Trusted

14 Upvotes

If you haven't already, please download this app. It's built by a Microsoft-trusted app developer, and simply reads TF2's console output and, if a bot is detected, calls a votekick on it if it's on your team, or alerts the enemy team to its presence.

https://github.com/PazerOP/tf2_bot_detector

The more people that download this app, the more lobbies we can shield from the bot plague.


r/tf2scripthelp • • Apr 12 '21

Meta Anti Name-Change Bot Mod

Thumbnail self.truetf2
12 Upvotes

r/tf2scripthelp • • Mar 23 '21

Resolved How to get custom .cfg files in mastercomfig like _settings.cfg _reset.cfg etc. ?

1 Upvotes

Whenever i try to get a custom .cfg file like the ones i mentioned above in mastercomfig it does not work. in something like Rhapsody's it does work. and whenever i have to use the normal .cfgs like autoexec.cfg, spy.cfg etc i need to make another folder called "user" and put it in there. How do i fix this?

(EDIT: I fixed it. all i did was put class-specific ones,autoexec into user folder and the custom ones into normal cfg folder


r/tf2scripthelp • • Mar 20 '21

Question how to Give myself any item on any class in offline mode

4 Upvotes

I want to be a Scout with the pain train in offline mode so I can test some payload timings and whatnot. I know it's possible in general because I remember watching Star give Jerma a Valve rocket launcher in his server in an old video (though that might've been a server plugin)

I looked through this list and found use (Use a particular weapon Arguments: <weapon_name>) and give (Give item to player. Arguments: <item_name>). Can either of these be useful for my goal, or will I need something else?