r/Tf2Scripts • • Jul 02 '23

Question Can mastercomfig's addons get me banned?

5 Upvotes

I'm just now getting into TF2 (I know I'm super late) and everyone has recommended mastercomfig to get me setup.

I have everything ready to go, but I looked into mastercomfig's folders and found some .vpk files. Apparently these are the addons you can select during the setup. I was thinking they would just be cvars in an autoexec. Anyways, this could be completely acceptable in TF2, but it set off a red flag with me since I have no prior experience with vpk files, TF2, or it's community. I could DEFINITELY see how a cheat engine such as VAC would see some of these as cheats though. To be clear: These are all available on the mastercomfig website and included in the initial setup process.

Thes ones I'd be using are:

  • mastercomfig-disable-pyroland-addon.vpk

  • mastercomfig-flat-mouse-addon.vpk

  • mastercomfig-no-soundscapes-addon.vpk

  • mastercomfig-no-tutorial-addon.vpk

  • mastercomfig-null-canceling-movement-addon.vpk

  • mastercomfig-transparent-viewmodels-addon.vpk

  • mastercomfig-medium-preset.vpk

The null canceling movement addon and the transparent viewmodels addon make me particularly nervous. As I said, I'm a completely new to TF2. I'm not a cheat and I don't want anyone, especially VAC, to think I am. Are these addons accepted as "fair" within the community? Will they get me banned? Thanks in advance, guys/gals.

Side note: I've googled the "addons" listed above and I found a guy who claims he received a VAC ban for using them. The obvious explanation is he was cheating and just blamed it on the addons. Well, either that or he was actually banned for using them. Any takes on this? I realize this has become a giant wall of text and I wholeheartedly appreciate everyone who took the time to read it. Thanks again.


r/Tf2Scripts • • Jun 23 '23

Issue Help i'm apperantly using "fake lag"

5 Upvotes

So, this will maybe sound weird, but I'm recently being kicked out of servers because I "use" fake ping, and I think they're right (as my ping shows normal in scoreboard but changes drastically when shown on console, also people say i'm very laggy) . Apperantly fake ping has something to do with cheating but I didn't change my default settings so that i can abuse some fake ping stuff and I have never cheated, it's just that I'm using it (somehow) and people just kick me out of the servers and insult me when I say that I don't know what fake ping is and ask for help.

Can somone help me getting rid of this fake ping stuff?


r/Tf2Scripts • • May 10 '23

Script Engineer fast build/destroy script

5 Upvotes

Just wanted to share my script that I made to quicly build/destroy engineer buildings while holding the right mouse button and pressing 1-4

alias "s" "destroy 2 0; build 2 0"
alias "en" "destroy 1 0; build 1 0"
alias "ex" "destroy 1 1; build 1 1"
alias "d" "destroy 0 0; build 0 0"

alias +b1 "bind 1 s"
alias +b2 "bind 2 d"
alias +b3 "bind 3 en"
alias +b4 "bind 4 ex"

alias -b1 "bind 1 slot1"
alias -b2 "bind 2 slot2"
alias -b3 "bind 3 slot3"
alias -b4 "bind 4 slot4"

alias +b_all "+attack2; +b1; +b2; +b3; +b4"
alias -b_all "-attack2; -b1; -b2; -b3; -b4"

bind mouse2 +b_all

r/Tf2Scripts • • Apr 30 '23

Issue Demo knite jump charge script not working

5 Upvotes

im getting into demo knite and im trying to make a jump charge script but when i press the key it doesnt work. the script is

bind q "+chargejump"
alias +chargejump "+jump; +attack2"
alias -chargejump "-jump; -attack2"

and when i press q nothing happens. the path is D:\Games\SteamLibrary\steamapps\common\Team Fortress 2\tf\cfg and the file name is autoexec.cfg and it is a cfg file


r/Tf2Scripts • • Jan 15 '23

Question Hi there friends, spin script assistance

5 Upvotes

So im new to scripting, only know a few basics like how to bind weapon slots and voice commands, and I need help with something. I am trying to make it so I can press a key and it toggles looking left.

Ive written bind "LEFTARROW" toggle +left

issue being when I press it and look in console it says +left is an invalid cvar. I have no idea what this means and would like some help


r/Tf2Scripts • • Dec 17 '22

Question Need help turning off all Muzzleflashes even the mini guns

5 Upvotes

i need help finding a script that turns off all muzzleflashes i find them really distracting and yes i know i can lower my view models to make them smaller but i still hate them

i think i found a way to do this when i used my laptop but since i got my new pc and time passed i forgot how to do this

oh and btw im using mastercomfig


r/Tf2Scripts • • Nov 19 '22

Issue HOW THE F DO I GET TRANSPARENT VIEWMODELS TO WORK

5 Upvotes

LITERALLY ALL TUTORIALS EVERYWHERE EITHER DONT WORK OR TELL ME TO USE A DIFFERENT HUD PLEASE SOMEBODY GIVE ME A DETAILED EXPLANATION ON HOW TO USE IT (I use dxlevel 90, settings that have to be used with it and etc)


r/Tf2Scripts • • Nov 07 '22

Request pyro wm1

5 Upvotes

basically holding down m1 makes me go forward and jumping, battlecry is optional


r/Tf2Scripts • • Aug 22 '22

Issue I'm in need of assistance with obscure toggles

5 Upvotes

I saw a video recently where someone showed all the crazy things possible with command codes; pitch up, pitch down, etc. And in that video I saw that he bound r_drawothermodels 2 to a key, so naturally I log on and try that. Unfortunately it, no matter what number I put in, it keeps toggling to r_drawothermodel 0 and my weapon models disappear. Help would be greatly appreciated.


r/Tf2Scripts • • Jul 14 '22

Request Medic arrows to mousewheel

5 Upvotes

Could someone make my scroll up shoot arrows, and switch back to medgun when i stop scrolling.

I remember +attack being very finnicky with mwheelup/down but made one that worked with wait cmds for flarepunch and med arrows. I play around 30-70ping ms. Thank you sir


r/Tf2Scripts • • Jun 02 '22

Question Any way to use data from the game?

5 Upvotes

So I was on the wiki, getting into scripting, when you could change the crosshair color, i wanted to do something fun, and make it dependant on your X, Y, and Z velocity for RGB.

however, i am dumb.

Or its just not possible, from reading a few posts, im pretty sure using variables from the game doesnt work.


r/Tf2Scripts • • Apr 02 '22

Resolved Struggling to bind mwheeldown to +jump, keeps getting rebinded to switching weapons

5 Upvotes

I have tried to bind mwheeldown to +jump, and no matter what I do mwheeldown keeps getting rebinded to weapon switching. I have tried deleting every line that says mwheeldown in my files and adding bind mwheeldown +jump in a couple files (binds.cfg, custom.cfg, and default.cfg). When inside tf2 I noticed that previous weapon and next weapon are both binded to nothing, despite my scroll wheel still switching weapons when used. Another thing is that when I bind mwheeldown to +jump through console it works, but if I die mwheeldown gets rebinded to switching weapons again. Just in case it matters, I used cfg.tf to make my config.

edit: If you are having this problem, try adding the bind at the end of every class's exec, it's what worked for me.


r/Tf2Scripts • • Mar 10 '22

Question Is there a script that changes sensitivity based on class?

5 Upvotes

Pretty obvious but I want a script that lets me have different sensitivities on different classes. Like I want Sniper to have one that’s lower while Soldier has one that’s higher.

Also I use MasterConfig


r/Tf2Scripts • • Feb 27 '22

Request Quick change classes with numpad.

5 Upvotes

Just as the title says I need to know what i need to do in order to quick change classes. I have a laggy pc and most of the time my inputs aren't taking immediately and it's quite frustrating.


r/Tf2Scripts • • Nov 22 '21

Question How do you disable spy's revolver but not his cloak watch/deadringer?

5 Upvotes

I've found multiple people on the internet say that it's not possible... but then I see it obviously being used here in this video: https://youtu.be/cRGW4a1K_Io?t=1410 (timestamp 23:24 - 23:35, look at the bottom right of his hud and you can see his ammo, meaning he has his revolver out.)

only problem with this video here, is that he didn't explain what he used to get this to work... which is a pretty annoying oversight on the youtuber's behalf. the only thing I want from this video is the disabled spy revolver while still being able to see my cloak watch/deadringer, so I don't want to go out of my way to install all of the config settings he has when I only want one aspect of it.

and if you're wondering why someone would want this, it's because people want to be able to see their deadringer whilst having their viewmodel disabled for better aim and less confusion. it makes it way less of a gamble to determine whether or not you have your deadring out, while at the same time it gives you an easier time to aim since the revolver/ambassador isn't all in your face.


r/Tf2Scripts • • Oct 27 '21

Issue Cannot load file 'scripts/items/items_game.txt'

5 Upvotes

I have taken every step to fix this issue including buy a new computer and create a new Steam account. Possible issues may be that I disable steam cloud in tf2 advanced settings, but forget to disable it in tf2 properties in the steam library. Also, I move gameinfo, items_game.txt, and items_game.txt.sig frantically in and out of every relevant folder(cfg, custom, download, tf2, hl2, bin, scripts, etc) because from what I gathered... something is wrong with those directories, or files in those directories. I verify the cache every time I do a thing and restart steam along with that process. I tried everything. Please, for God's sake, provide clear instructions on how to fix this stupid problem.

Edit: I realize, I am probably making some mistake with fixing this problem in the process of trying to follow instructions, so take that into account. Also I read that not having the right language downloaded may be an issue? I'm playing on aWindows 11 Lenovo, if thats important(Lenovo has some weird interface issues like I had to uninstall the camera from Device Manager because Lenovo micro manages camera to the point of having it be disabled by deafult).

Edit2: On my OLD computer, the problem mightve been that I installed CleanTF2 incorrectly, but now it shouldnt be because i dont have it. I almost feel like Im doing things in an incorrect order when taking ending steam process and restarting into account.

Edit3:screenshots

I downloaded all source SDKs(idk which one is required, so to be safe...), and removed gameinfo and items_game.txt from everywhere but gameinfo in hl2 and items_game.txt in scripts/items. Question: can the files see each other across folders?... also, I'm guessing items_game.txt.sig doesnt need any attention? Oh, and

Edit4:Question: In what possible scenarios could the game be unable to read the file?

Edit5:ALL PREVIOUS EDITS ARE EDITS ONLY ON r/TF2. HERE, THEY ARE JUST FOR HISTORIC ACCURACY.

I reinstalled tf2... all my messing is still there...? like theres a items_game.txt.sig file in the general Team Fortress 2 folder because I put it there a while ago?

Question: if i put too many of the same files in random folders but forget one important one where a reference to a different file that calls this other file exists, will this create the problem? AND can I just put all my files in one folder and evade this issue?


r/Tf2Scripts • • Oct 09 '21

Script Eureka Effect individual binds

5 Upvotes

I was recently trying to find some Eureka Effect quick binds but I couldn't get any of them to work.

So I made my own! This bind auto swaps to your wrench and teleports you to either your tp exit or spawn. Just replace mouse3 and k with whatever binds you want. "eureka_teleport 1" is to the teleporter exit and "eureka_teleport" is for spawn.

bind mouse3 +teleport

alias +teleport slot3

alias -teleport "eureka_teleport 1"

bind k +bobman

alias +bobman slot3

alias -bobman "eureka_teleport"


r/Tf2Scripts • • Aug 15 '21

Satisfied How to bind load_itempreset 0 to current itempreset

5 Upvotes

The title may not have made sense if so, sorry but I'm going to explain it better. So basically I have "load_itempreset 0" binded to "v" and lets say I'm using "load_itempreset 1" and when I press "v" it takes me back to "load_itempreset 0", what I would like is for there to be a way that when I press "v" it goes to the current itempreset I'm using.


r/Tf2Scripts • • Aug 05 '21

Issue Auto "Sapping"

5 Upvotes

Hey, I have copied a script that automatically says "sapping" in chat when you press 2 and then mouse1 on spy. I also use stabby stabby's crosshair flasher switcher thing. The crosshair changing on hit doesn't work with the sappper script, why?

Scripts:

Crosshair

// CROSSHAIR FLASHER

// Flashes the crosshair's color and/or type with any action you'd like; includes an example script for setting each movement key to flash between two colors upon press and release. Helpful for visibility if you use a small crosshair (which I recommend trying). The "type" toggler is very useful for keeping the Ambassador crosshair from expanding too much upon firing.

// Code:

// first you set up the colors and shapes/sizes you want the xhair to toggle through (cl_crosshair_file = type cl_crosshair_scale = size). Keep in mind that the base size of the crosshair varies depending on the weapon: //

// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //

//xhair TYPE toggle--switches crosshair type when shooting; good for preventing Amby xhair from expanding too large (uses my settings as an example). NOTE: Must be manually integrated with viewmodel scripts to work in conjunction.

//=========================================================

alias dotxhairtype "dotxhairtypeb"

alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper" // tweak crosshair_scale values to your liking

alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 22;alias dotxhairtype dotxhairtypeb"

bind mouse1 +crosshairfire

alias +crosshairfire "+attack;dotxhairtype;spec_next"

alias -crosshairfire "-attack;dotxhairtype"

//=========================================================

// xhair COLOR toggle

//=========================================================

alias dotxhaircolor "dotxhaircolorb"

alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"

alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"

alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"

//=========================================================

// // // // // // // // // // // // // // // // //

// movement color toggle/flashing xhair example //

// // // // // // // // // // // // // // // // //

bind "w" +fw

alias +fw "+forward;dotxhaircolor"

alias -fw "-forward;dotxhaircolor"

bind "s" +bw

alias +bw "+back;dotxhaircolor"

alias -bw "-back;dotxhaircolor"

bind "d" +mr

alias +mr "+moveright;dotxhaircolor"

alias -mr "-moveright;dotxhaircolor"

bind "a" +ml

alias +ml "+moveleft;dotxhaircolor"

alias -ml "-moveleft;dotxhaircolor"

//=========================================================

// // // // // // // // // // //

// Other color cycle examples //

// // // // // // // // // // //

// Crosshair Flashers

// xhair color toggle

//=========================================================

alias dotxhaircolor "dotxhaircolorb"

alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorr"

alias dotxhaircolorr "cl_crosshair_blue 64; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolorb"

//=========================================================

// xhair type toggle

//=========================================================

alias dotxhairtype "dotxhairtypeb"

alias dotxhairtypeb "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtyper"

alias dotxhairtyper "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtypeb"

//=========================================================

//Black/White xhair color toggle

//=========================================================

alias dotxhaircolorbw "dotxhaircolorbwb"

alias dotxhaircolorblack "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhaircolorbw dotxhaircolorwhite"

alias dotxhaircolorwhite "cl_crosshair_blue 255; cl_crosshair_green 255; cl_crosshair_red 255;alias dotxhaircolorbw dotxhaircolorblack"

//=========================================================

//xhair team color toggle

//=========================================================

alias dotxhairteamcolor "dotxhairteamcolorred"

alias dotxhairteamcolorred "cl_crosshair_blue 0; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhairteamcolor dotxhairteamcolorblu"

alias dotxhairteamcolorblu "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 0;alias dotxhairteamcolor dotxhairteamcolorred"

// Set "dotxhairteamcolor" to appropriate team

bind [key1] dotxhairteamcolor dotxhaircolorblu

bind [key2] dotxhairteamcolor dotxhaircolored

// Make "lastdisguise" show your disguise's current team color

bind [last disguise key] "lastdisguise;dotxhaircolor"

// ========================================================================================================================================

//=============================================================================================================================================

// CROSSHAIR FLASHER + NULL MOVEMENT SCRIPT

//=============================================================================================================================================

// color toggler

alias dotxhaircolor "dotxhaircolorb"

alias dotxhaircolorb "cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorc"

alias dotxhaircolorc "cl_crosshair_blue 255; cl_crosshair_green 0; cl_crosshair_red 255;alias dotxhaircolor dotxhaircolord"

alias dotxhaircolord "cl_crosshair_blue 240; cl_crosshair_green 255; cl_crosshair_red 0;alias dotxhaircolor dotxhaircolorb"

// NULL CANCELLING MOVEMENT SCRIPT

// (prevents you from pressing two opposing directions, which causes you to stop moving)

// Remove "//" below to enable null movement:

// bind w +mfwd

// bind s +mback

// bind a +mleft

// bind d +mright

echo "type 'nullmovement' in console to enable nullmovement, type 'standardmovement' to revert to default"

echo "enter 'nullmovementnoxhair' to use null movement without crosshair flashing"

alias "nullmovementnoxhair" "alias dotxhair echo"

alias "nullmovement" "bind w +mfwd;bind s +mback;bind a +mleft;bind d +mright"

alias standardmovement "bind w +fw;bind s +bw;bind d +mr;bind a +ml"

alias +mfwd "-back;+forward;alias checkfwd +forward;dotxhaircolor"

alias +mback "-forward;+back;alias checkback +back;dotxhaircolor"

alias +mleft "-moveright;+moveleft;alias checkleft +moveleft;dotxhaircolor"

alias +mright "-moveleft;+moveright;alias checkright +moveright;dotxhaircolor"

alias -mfwd "-forward;checkback;alias checkfwd none;dotxhaircolor"

alias -mback "-back;checkfwd;alias checkback none;dotxhaircolor"

alias -mleft "-moveleft;checkright;alias checkleft none;dotxhaircolor"

alias -mright "-moveright;checkleft;alias checkright none;dotxhaircolor"

alias checkfwd none

alias checkback none

alias checkleft none

alias checkright none

alias none ""

Sapper:

bind 1 eq_1 //auto sapping.

bind 2 eq_2

bind 3 eq_3

bind q eq_last

bind mwheelup eq_mwup

bind mwheeldown eq_mwdown

bind mouse1 +att

alias slot_1 "slot1 ;alias att_prs"

alias slot_2 "slot2 ;alias att_prs att_prs_2"

alias slot_3 "slot3 ;alias att_prs"

alias +att "+attack;att_prs;spec_next"

alias -att "-attack"

alias att_prs_2 "say_team sapping"

//[ LOGIC

alias eq_1 "alias eq_mwup eq_3;alias eq_mwdown eq_2;qs_set_n1;alias qs_set_n1;alias qs_set_n2 qs_set;alias qs_set_n3 qs_set;alias qs_set alias eq_last eq_1;slot_1"

alias eq_2 "alias eq_mwup eq_1;alias eq_mwdown eq_3;qs_set_n2;alias qs_set_n2;alias qs_set_n1 qs_set;alias qs_set_n3 qs_set;alias qs_set alias eq_last eq_2;slot_2"

alias eq_3 "alias eq_mwup eq_2;alias eq_mwdown eq_1;qs_set_n3;alias qs_set_n3;alias qs_set_n1 qs_set;alias qs_set_n2 qs_set;alias qs_set alias eq_last eq_3;slot_3"

//]

alias qs_set_n1 alias eq_last eq_2

eq_1

//[ OVERRIDE

// bind 1 slot1

// bind 2 slot2

// bind 3 slot3

// bind q lastinv

// bind mwheelup invprev

// bind mwheeldown invnext

// bind mouse1 +attack

//]


r/Tf2Scripts • • Aug 03 '21

Issue Autoexec and modules don't appear to be working.

5 Upvotes

I tried putting them custom/"name of my config"/cfg/user and it didn't work, I tried putting them in tf/cfg and got the autoexec to work but not the modules, I tried putting them both in a new folder, tf/cfg/user and both of them went back to not working, is there something I'm missing? I have them both as .cfg files, and they still won't work


r/Tf2Scripts • • Aug 01 '21

Question Help with a bind

5 Upvotes

I currently have "q" and "e" bound to call "Help!" and "Medic!" respectively. I'm trying to make my ctrl key a toggle so that when it is held down, "q" asks for ubercharge and "e" says that my ubercharge is full.

What I have now is this:

alias call Call_For_Medic

alias Call_For_Medic "voicemenu 0 0"

alias call Call_Full_Ubercharge

alias Call_Full_Ubercharge "voice menu 1 7"

bind "e" call

alias help Call_For_Help

alias Call_For_Help "voicemenu 2 0"

alias help Call_For_Ubercharge

alias Call_For_Ubercharge "voicemenu 1 6"

bind "q" help

alias +toggleState "alias call Call_Full_Ubercharge;alias call Call_For_Ubercharge"

alias -toggleState "alias call Call_For_Medic;alias call Call_For_Help"

bind "CTRL" "+toggleState"

As of now, none of it works. As the stickied post says, I'm using Mastercomfig. Does anyone know how to make it work?


r/Tf2Scripts • • Jul 31 '21

Issue I need some help with my autoexec.cfg File, to help get some mods working in valve servers

5 Upvotes

I have almsot 500 hours and recently downloaded a viewmodel reanimation mod for each class. after some digging I found old feeds that provided the code "map itemtest; wait 5; disconnect;" In order for the mods to work in casual. It seems to work as intended, but I must have done something wrong, as it works perfectly the first time, and if I leave the server and try to join a different one, it will crash my game on the loading screen consistently. Any help would be great. (I would also like to mention that I am not knowledgeable when it come to scripts and code, and all that I have done so far has been with the help of guides and manuals)


r/Tf2Scripts • • Jul 28 '21

Issue Need some help with cfg tf's crosshair

5 Upvotes

Ok the thing is this followed all the instruction set up my scripts for custom fovs too on certain weapons and all and the thing is this. On some weapon (EG revolver medigun etc...) It works well while for other weapons like sapper, mad milk, jarate etc... It doesn't work how can i fix this?

EDIT

Fixed the sapper one but milk and jarate remains for the sapper basicaly had to rename the file builder (I know makes a loooooot of sense to me too...)

Edit 2

IDK HOW EVEN THE JARATE ONE FIXED ITSELF WHAT THE ACTUAL FUCK VALVE


r/Tf2Scripts • • Jul 14 '21

Issue Medic Uber/Special Binds -- Not Firing/Deactivating as Intended

5 Upvotes

I've been working on getting a binding set going so I can announce when I've got Uber/Special and when I'm popping said Uber/Special. Thing is, I'm not quite sure where I'm messing up.

I'm trying to have mouse2 setup so that I can pop Uber (without a togglestate) and Special (with a togglestate) without having the buttons be considered held down in the cmd prompt. Here's what I have going on so far at the end of the day:

bind mouse3 charged
alias charged Uber
alias Uber "say_team Uber Ready!; voicemenu 1 7"
alias Special "say_team Special Ability Ready!; voicemenu 1 7"

bind mouse2 popped
alias popped P_Uber
alias P_Uber "say_team Uber Popped!; voicemenu 2 2; +attack2"
alias P_Special "say_team Special Popped!; voicemenu 2 2; +attack3"

bind shift +toggleState
alias +toggleState "alias charged Special; alias popped P_Special"
alias -toggleState "alias charged Uber; alias popped P_Uber"

When alias P_Uber is activated, all goes well up until it reaches +attack2, where it stays in +attack2 until I manually go into the cmd and disable it. Is there a way to have it stop firing +attack2 after mouse2 has been pressed? I've tried adding in -attack2 immediately after, but it doesn't activate the Uber at all.