r/tf2scripthelp • • Nov 11 '21

Resolved Help Using Null Movement script and Crouch Jump Script

2 Upvotes

Hey,

I am trying to use both the Null Movement script and the Crouch Jumping script, but only the null movement one seems to work. This is currently how my autoexec.cfg looks like:

//Null-cancelling movement script

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

bind w +mfwd

bind s +mback

bind a +mleft

bind d +mright

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

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

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

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

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

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

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

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

alias checkfwd none

alias checkback none

alias checkleft none

alias checkright none

alias none ""

//JumpCrouch Script

//All jumps are crouch jumps, crouch as long as jump is held

alias +crouchjump "+jump; +duck; spec_mode"

alias -crouchjump "-jump; -duck"

bind space +crouchjump

Thanks for the help!


r/tf2scripthelp • • Oct 11 '21

Question slot 2 tracers off for scout

2 Upvotes

Hiya hiya!

I was curious how I could write a script to use r_drawtracers_firstperson 0 only in slot 2 for scout (I find that tracers are distracting for pistol but fine for scatter/other hitscan). My first guess was simply putting "slot 2; r_drawtracers_firstperson 0" in my autoexec but that, unsurprisingly, didn't work.

Is there any way to script things happening when you switch to a specific item slot? Also, how would you revert the script so I can put that into my game_override.cfg for mastercomfig and have the script only apply on scout?

I am using mastercomfig, Thank you!!


r/tf2scripthelp • • Oct 03 '21

Answered mastercomfig Interp settings

2 Upvotes

Hiya!

As far as I know, you can't change your interp settings while in game, so with mcom's inbuilt network aliases that are specifically tailored to either hitscan or projectile, will switching between classs in-game change my interp or will I have to leave and come back every time I want to change class for my interp to adjust properly?

Thank you!


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 • • 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 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 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 • • Feb 23 '21

Question how to make a separate steam installation with no browser

2 Upvotes

i heard it get you more frames but i cant understand how to modify program launch options, and i wanta separate install of steam without browser and webhelper for when i play alone. i couldnt find a better sub to post this in (i couldve posted it to tftv tho, i will do that if u guys dont know)


r/tf2scripthelp • • Jan 30 '21

Answered Scripts stop working after a death or team switch

2 Upvotes

The script (toggle saying !fp !tp ) will work when i join a game, but after an event, it stops working entirely and instead M (The button I binded it to) resets back to opening the inventory

Script in question

unbind "m"
bind m fp_tp
alias fp_tp_toggle "say !fp; alias fp_tp tp_fp_toggle"
alias tp_fp_toggle "say !tp; alias fp_tp fp_tp_toggle"
tp_fp_toggle

It is located in my Autoexex.cfg

Thx :)


r/tf2scripthelp • • Jan 19 '21

Resolved Are there any scripts for truly instant building?

2 Upvotes

I was just wondering if there was any way to not just instantly bring up the toolbox, but instantly place it down aswell without holding leftclick. (solved)


r/tf2scripthelp • • Jan 09 '21

Answered How do you set a point entity's position?

2 Upvotes

I'm working on a config that allows you to play MvM with Bots on red team on listenservers, and also improve the Red Bot's "AI" to help the player out. (I know this requires sv_cheats 1, but again this is only intended for listenservers.)

One of these tweaks I am trying to do is to change the bot engineer building hints, since they're placements are terrible. Unfortunately though, they're entities which are included in the map. I can remove the bad bot engineer hints of course, but the problem is that bot engineers will only build if there's at least one bot engi hint. I have no idea how to create an entity at a specific position thoigh, meaning on maps that have no bot engi hints (mvm_coaltown and mvm_mannworks for example), I have no idea how to get the engineer, to build at certain places aside from teleporting the player and having him run the ent_create commands.


r/tf2scripthelp • • Jan 08 '21

Resolved I can't bind actions to random buttons???

2 Upvotes

I think i messed up my steam big screen options, I'm using xbox 1 controller I got it working fine last night but now I can't jump among other things


r/tf2scripthelp • • Jan 04 '21

Answered Weapon Script help

2 Upvotes

i have this script for weapon switching in my autoexec (feel free to use it) and it works fairly well and allows me to use my scroll wheel for my main weapon switching

/////Advanced Quick Switch;

alias +primary "slot1; bind mwheelup +secondary; bind mwheeldown +melee"

alias +secondary "slot2; bind mwheelup +primary; bind mwheeldown +melee"

alias +melee "slot3; bind mwheelup +primary; bind mwheeldown +secondary"

bind mwheelup "+secondary"

bind mwheeldown "+melee"

but, it requires the game to remember slot on respawn and most annoyingly

doesnt account for loadouts that make a weapon slot unavailable, such as demoknight or soldier with boots or parachute, or loadouts with recharging weapons, like jarate or lunchbox items

is there a way i could script it to check which slot is currently active**?**


r/tf2scripthelp • • Dec 29 '20

Question Help i want to move the buildings ui (sentry, dispenser, tele)

2 Upvotes

I am using a custom hud that moved the chat to the top left and I just moved chat to the bottom left but now whenever I play engi the buildings ui is in the middle and I want to move it to top left of my screen. Also I cant find any tutorial on it so im asking on reddit. p.s where can I find the building ui thing


r/tf2scripthelp • • Dec 22 '20

Question i need help

2 Upvotes

what command i should use to launch other command (map_background itemtest; wait 10; disconnect) always when i'm in main menu? autoexec.cfg work only when i launch game first time


r/tf2scripthelp • • Dec 04 '20

Resolved Master Comfig Autoexec

2 Upvotes

I recently used Master Comfig's config-vpk thing, and after I removed it, I could no longer use my autoexec. I have tried redownloading the game, deleted all of my CFG folder, used launch options, but nothing seems to work. Any ideas?


r/tf2scripthelp • • Oct 27 '20

Question script help

2 Upvotes

is there a way so i can make a script so it says /goto then presses a number after that (yes this is for jump academy) i thought i could do something like bind KP_END “say /goto; wait 1; then it would press a button, anyone know how to do that?


r/tf2scripthelp • • Sep 29 '20

Question melee only view models

2 Upvotes

ok so I got that turns view models off and on but not for melee, but it automatically unbinds slot 4 and 5. i play spy on occasion and i would not like to rebind 4 every time I switch to him. just because the script looks pretty complicated ill paste the on and off versions here. i just want to know how i bind 4 to the forth slot or disguise kit.

ON

bind "1" swep1

bind "2" swep2

bind "3" swep3

bind "MWHEELUP" whup

bind "MWHEELDOWN" whdn

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

bind "MWHEELDOWN" "swep3"

bind "MWHEELUP" "swep2"

bind "MOUSE4" "swep1"

bind "MOUSE5" "swep2"

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

// // wx1 is primary, wx2 is secondary, and wx3 is meele, //

alias "wx1" "r_drawviewmodel 0" // slots 4+5 are alloff by default //

alias "wx2" "r_drawviewmodel 0" // //

alias "wx3" "r_drawviewmodel 1" // //

// // //

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

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

alias aba "cwep1;alias sweps abb;won1"

alias abb "cwep2;alias sweps aba;won2"

alias bcb "cwep2;alias sweps bcc;won2"

alias bcc "cwep3;alias sweps bcb;won3"

alias cac "cwep3;alias sweps caa;won3"

alias caa "cwep1;alias sweps cac;won1"

alias cwep1 "slot1;wx1"

alias cwep2 "slot2;wx2"

alias cwep3 "slot3;wx3"

alias swep1 "cwep1;awbind"

alias swep2 "cwep2;bwbind"

alias swep3 "cwep3;cwbind"

alias swep4 "won4or5;slot4"

alias swep5 "won4or5;slot5"

alias won1 "alias whdn cac; alias whup bcb; alias awbind none; alias bwbind abb; alias cwbind cac"

alias won2 "alias whdn aba; alias whup bcc; alias awbind aba; alias bwbind none; alias cwbind bcc"

alias won3 "alias whdn abb; alias whup caa; alias awbind caa; alias bwbind bcb; alias cwbind none"

alias won4or5 "alias whdn cac; alias whup caa; alias awbind caa; alias bwbind abb; alias cwbind cac"

alias none ""

aba

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

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

OFF

bind "1" swep1

bind "2" swep2

bind "3" swep3

bind "MWHEELUP" whup

bind "MWHEELDOWN" whdn

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

bind "MWHEELDOWN" "swep3"

bind "MWHEELUP" "swep2"

bind "MOUSE4" "swep1"

bind "MOUSE5" "swep2"

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

// // wx1 is primary, wx2 is secondary, and wx3 is meele, //

alias "wx1" "r_drawviewmodel 1" // slots 4+5 are alloff by default //

alias "wx2" "r_drawviewmodel 1" // you can re-alias the wx1-3 in each class config for //

alias "wx3" "r_drawviewmodel 1" // //

// // //

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

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

alias aba "cwep1;alias sweps abb;won1"

alias abb "cwep2;alias sweps aba;won2"

alias bcb "cwep2;alias sweps bcc;won2"

alias bcc "cwep3;alias sweps bcb;won3"

alias cac "cwep3;alias sweps caa;won3"

alias caa "cwep1;alias sweps cac;won1"

alias cwep1 "slot1;wx1"

alias cwep2 "slot2;wx2"

alias cwep3 "slot3;wx3"

alias swep1 "cwep1;awbind"

alias swep2 "cwep2;bwbind"

alias swep3 "cwep3;cwbind"

alias swep4 "won4or5;slot4"

alias swep5 "won4or5;slot5"

alias won1 "alias whdn cac; alias whup bcb; alias awbind none; alias bwbind abb; alias cwbind cac"

alias won2 "alias whdn aba; alias whup bcc; alias awbind aba; alias bwbind none; alias cwbind bcc"

alias won3 "alias whdn abb; alias whup caa; alias awbind caa; alias bwbind bcb; alias cwbind none"

alias won4or5 "alias whdn cac; alias whup caa; alias awbind caa; alias bwbind abb; alias cwbind cac"

alias none ""

aba

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

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


r/tf2scripthelp • • Aug 18 '20

Question Help opening find a game menu

2 Upvotes

I'm making a hud and I am trying to map a button on the main menu to open the matchmaking UI (where you can select casual or comp) Some other huds have custom uis that can open it and I've gone into their files but can't find the script that they use to open the menu.


r/tf2scripthelp • • Jul 31 '20

Issue I need help again

2 Upvotes

So I’ve heard of team fortress 2 classic and I really want to play it but for some reason when I download source SDK base 2013 multiplayer my computer restarts over and over im not to sure why this happens and since it restarts I have to download tf2c again if any of you people know how to fix this problem it would mean a lot please and thanks


r/tf2scripthelp • • Jul 26 '20

Question I need help with my lerp stuff

2 Upvotes

my auto exc

cl_cmdrate 66

cl_interp 0

cl_interp_ratio 1

cl_lagcompensation 1

cl_pred_optimize 2

cl_smooth 0

cl_smoothtime 0.01

cl_updaterate 66

rate 60000

but my lerp is like perma yellow in casual how do I fix? and make it like orange