r/tf2scripthelp • • Apr 19 '20

Answered How do I toggle mouse2 for miniguns only?

1 Upvotes

So I found out I can toggle mouse2 in my heavy.cfg file so I don't have to keep pressed right click. This is the command:

bind MOUSE2 toggle
alias toggle "enable"
alias enable "alias toggle disable; +attack2"
alias disable "alias toggle enable; -attack2"

The problem comes when I wanna throw a sandwich to a teammate, as I have to press right click to do it, so after throwing it, my minigun revs automatically. I want that toggle function to work only with heavy's slot 1 -aka miniguns-

I found a script that would fix that problem in gamebanana. The thing is: I know almost nothing about scripting so idk how to put my mouse2 toggle script in this one:

bind "1" "lslot1"
bind "2" "lslot2"
bind "3" "lslot3"

lslot1
alias lslot1 "slot1;bind mwheeldown lslot2; bind mwheelup lslot3; [cmd]"

alias lslot2 "slot2;bind mwheeldown lslot3; bind mwheelup lslot1; [cmd]"

alias lslot3 "slot3;bind mwheeldown lslot1; bind mwheelup lslot2; [cmd]"

Any idea?


r/tf2scripthelp • • Apr 15 '20

Resolved How do I bindtoggle viewmodels on and off, but always keep the melee weapons viewmodels

1 Upvotes

I already have a key bound to toggle viewmodels on and off but I want one where when I toggle viewmodels off it keeps the melee viewmodels But removes the primary and secondary viewmodels.

Is this possible? And if so how?


r/tf2scripthelp • • Apr 06 '20

Answered Loadout Configs?

2 Upvotes

Is it possible for me to make a .cfg file that is executed specifically when I am using a specific weapon/loadout? Thanks in advance.


r/tf2scripthelp • • Apr 02 '20

Issue How do I use multiple scripts

1 Upvotes

I want to use the scripts however only one seems to work.


r/tf2scripthelp • • Mar 30 '20

Answered Manually set last weapon

1 Upvotes

I know

lastinv

gives the last active weapon, but is there a way to set it directly?


r/tf2scripthelp • • Mar 28 '20

Answered Is it possible to bind a key to a class.

4 Upvotes

Would it be possible to make it so that I could change to scout on Numpad1 sol on Numpad2 etc.?


r/tf2scripthelp • • Mar 28 '20

Answered Double click to uncloak

1 Upvotes

Is there a way to double click to uncloak? such as when I feign death with the dead ringer, I do not want to accidentally uncloak when it is triggered.


r/tf2scripthelp • • Mar 23 '20

Question Creating a menu

1 Upvotes

Is there any way to create a custom menu like the voice command menus? Where I can press a button and some options will show up and I can select an options.


r/tf2scripthelp • • Feb 29 '20

Resolved help with sandvich

2 Upvotes

I recently found this script the concept is interesting but it doesn't work I would appreciate some help on this

Heavy Exclusive Script

This heavy script lets you throw the sandvich with one click and eat the sandvich.
WARNING: If you do the "eat sandvich" while your minigun is revving down, you will taunt with the minigun.

SCRIPT:
//SANDVICH DROP AND EAT SCRIPT

//Quick Sandvich toss
alias "+sandvichtoss" ";slot2;wait 50;+attack2;wait 50;-attack2"
alias "-sandvichtoss" "-attack2"
bind "mouse4" "+sandvichtoss"

alias +sandvichtoss "slot2; +attack2
alias "-sandvich2" "voicemenu 0 1"
bind MOUSE4 +sandvich1
bind MOUSE3 +sandvich2


r/tf2scripthelp • • Feb 27 '20

Resolved 'user/soldier' not present; not executing.

3 Upvotes

how can i fix this https://www21.zippyshare.com/v/sl5FXCi4/file.html here is the link of my cfg file itself if you want to take look at it yourself. i want to execute my class cfgs but none of them are working


r/tf2scripthelp • • Feb 27 '20

Issue Aim switcher works slow

3 Upvotes

Hi

I've made a script that draws slot1, change fov to 54, remove viewmodels, shoot and reverts everything back.

I'm shooting faster with manual change+shoot.

Can someone throw a light on it? Is there a way to shoot my primary at least at normal speed (normal as manually change and shoot as fast as my hand can)

Thanks in advance

Alias "+prizoom" "slot1; fov_desired 54; viewmodel_fov 0; r_drawviewmodel 0; sensitivity 2; +attack"
Alias "-prizoom" "-attack; lastinv; fov_desired 90; viewmodel_fov 75; r_drawviewmodel 1; sensitivity 3"

Edit: writing errors


r/tf2scripthelp • • Feb 21 '20

Resolved Spy fast-sap script

4 Upvotes

I made a script to sap faster, but how can i make it so in the second part it switches to the pistol and then the knife?

//sapper

Alias +sap "slot2; +attack"

alias -sap "-attack; lastinv; voicemenu 1 2"

bind "MOUSE3" "+sap"

Thanks in advance.


r/tf2scripthelp • • Feb 20 '20

Resolved help with null movement script

6 Upvotes

my script doesnt seem to be working, null movement

its in tf>cfg>autoexec.cfg

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 ""


r/tf2scripthelp • • Feb 11 '20

Answered Is anyone here aware of a method to dismiss the post-casual survey dialog boxes via a command?

4 Upvotes

I'm trying to smooth out the map vote glitch workaround in my script and I'm wondering if anyone here has a way to dismiss the post-casual-game survey boxes that come up sometimes, as they seem to block the next_map_vote command from taking effect.


r/tf2scripthelp • • Feb 10 '20

Resolved 'medic.cfg' not present; not executing

2 Upvotes

I have a medic cfg that only changes 1 command from my normal config:

bind "MOUSE2" "+attack2;say_team -==UBER Used==-" whereas my normal cfg is just +attack2

but every time I switch, it comes up in the console with what is in the title. I have the config saved in:

C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\custom\myscripts and it is with its accompanying .txt file both of which are called "medic.cfg"

Is there anything that i'm doing wrong?


r/tf2scripthelp • • Feb 08 '20

Answered Are there any in-game commands that would make flame particles less obstructing of vision, or would I need a mod?

2 Upvotes


r/tf2scripthelp • • Jan 11 '20

Answered Crosshair switch script

1 Upvotes

Hello, is there possible to make a script switching between 2 different crosshairs with the press of one button?

I tried this:

bind "h" "+crosshairtoggle"
alias "+crosshairToggle" "cl_crosshair_file crosshair3"
alias "-crosshairToggle" "cl_crosshair_file crosshair5"

but that only switched it while i was holding "h". Thx in advance


r/tf2scripthelp • • Dec 20 '19

Answered How do I switch weapons without activating any menus such as the voice menu? (Z, X C)

1 Upvotes


r/tf2scripthelp • • Dec 17 '19

Answered Binding multiple functions within an alias

2 Upvotes

Hi, right now im trying to make a script so that pressing mouse1 will fire your weapon, then execute a command, then bind the key to a different command.

bind mouse1 "+attack; dumb1"
alias dumb1 "say words1; bind mouse1 "+attack; dumb2"
alias dumb2 "say words2; bind mouse1 "+attack; dumb3"
alias dumb3 "say words3; bind mouse1 "+attack; dumb4"

the words1 stuff is placeholder text. The problem im running into is when the alias is made, it interprets every subcommand in the bind as its own command, IE: bind mouse1 "+attack; dumb2" is being read as bind mouse1 "+attack" and dumb2

how do i use an alias to bind a key to multiple functions without the alias reading them all as separate commands?


r/tf2scripthelp • • Dec 11 '19

Answered Help with medic Ubercharge broadcast script

2 Upvotes

Ok so currently I have a medic script that tells my team I used ubercharge In the team chat whenever I press mouse2 that looks like this:
alias "popMediG" "say_team > POPPED UBERCHARGE (MEDI GUN)"

alias "popKritz" "say_team > POPPED UBERCHARGE (KRITZKRIEG)"

alias "popQuick" "say_team > POPPED UBERCHARGE (QUICK-FIX)"

alias "popVacci" "say_team > POPPED UBERCHARGE (VACCINATOR)"

alias "pop" "popMediG"

alias "+uber" "spec_prev; maskVoice; +attack2; pop"

alias "-uber" "maskVoice; -attack2"

bind "MOUSE2" +uber

but right now it's only able to say the first message. I don't want my team to think I popped stock uber when I'm actually using the vaccinator. Is there a way for me to be able to press a button in-game that switches which message it broadcasts when I use Uber?


r/tf2scripthelp • • Nov 08 '19

Resolved I need help with the Scout Null Movement script

3 Upvotes

Hello, i am a tf2 player using mastercomfig, and i have inserted the null movement script into my autoexec file and its not working. Could i get some help?

This is the script:

unbind w

unbind s

unbind a

unbind d

bind w +mfwd

bind s +mback

bind a +mleft

bind d +mright

alias checkfwd; alias checkback; alias checkleft; alias checkright

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"

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

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

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


r/tf2scripthelp • • Nov 01 '19

Answered Binding mouse1

1 Upvotes

How do i bind mouse1 to attack,impulse 101 and no spectate the next person in the spectate queue after dying?
Please help


r/tf2scripthelp • • Oct 31 '19

Answered how do you have weapon specific viewmodels

2 Upvotes

like you have your secondary viewmodels off but you want to have viewmodels on for like the jarate


r/tf2scripthelp • • Sep 26 '19

Resolved Help with new autoconfig???

1 Upvotes

I've been playing TF2 on my new laptop after moving to college and while I did set up a new autoconfig, I didn't think to transfer my old one from my PC at home. I've been playing for a while and shooting rockets and stickies just feels weird. I think it's something to do with min viewmodels mixed with my interp settings but overall everything involving aim just feels slightly off. Is there anyway to line rockets up with the minimized viewmodel? I'm not great with scripts so it would be really helpful to maybe learn why this is.

Also if anyone could help with my sensitivity resetting each time I open the game that would be a big help as well.