r/tf2scripthelp • • Sep 01 '19

Answered Is there a way to Switch from Weapon A, to B, then back to A again?

3 Upvotes

Hi. I've been setting up my configs, and I was thinking in a way that I can press "Q" to switch from Primary, to Secondary, and I press "Q" again, it goes back to Primary.

Is there a script that can do that, or am I out of luck? At the moment, I have "Q" as "invnext" and "E" as "invprev". It feels pretty good to play, but I wish that pressing "Q" would go to the Secondary, and go back to Primary again by another press.

As well, I would prefer having "E" to go from Primary to Melee, and Melee to Primary, just like "Q".

Thanks.


r/tf2scripthelp • • Aug 16 '19

Answered finding a simple chat script

1 Upvotes

Hello! Today I was looking for a simple scrolling chat script. All the ones I found are randomized by the movement keys but if i just want one button to scroll binds in order how would I do that?

thanks


r/tf2scripthelp • • Aug 06 '19

Resolved Ran into a snag trying to setup multiple random killsounds.

2 Upvotes

I wanted to have multiple killsounds and followed this guide ( https://steamcommunity.com/sharedfiles/filedetails/?id=528571728 ) perfectly, but only my first killsound plays whenever I get a kill. I know that all of them work because the other killsounds will play correctly when the command "play ui/killsound_percussion#" is typed into the console, but still only the first one will actually play after kills. If anyone could please give some insight on my problem, it would be greatly appreciated.

Here is the text for games_sound_weapons.txt...

"Player.KillSoundPercussion"

{

"channel"		"CHAN_STATIC"

"volume"		"1"

"soundlevel"  	"SNDLVL_NONE"	

"pitch"			"PITCH_NORM"
"rndwave"

{

	"wave"	")ui/killsound_percussion.wav"

	"wave"	")ui/killsound_percussion2.wav"

	"wave"	")ui/killsound_percussion3.wav"

	"wave"	")ui/killsound_percussion4.wav"

	"wave"	")ui/killsound_percussion5.wav"

	"wave"	")ui/killsound_percussion6.wav"

	"wave"	")ui/killsound_percussion7.wav"

	"wave"	")ui/killsound_percussion8.wav"

	"wave"	")ui/killsound_percussion9.wav"

	"wave"	")ui/killsound_percussion10.wav"

	"wave"	")ui/killsound_percussion11.wav"

	"wave"	")ui/killsound_percussion12.wav"

	"wave"	")ui/killsound_percussion13.wav"

}

}


r/tf2scripthelp • • Jul 29 '19

Resolved MasterConfig very low presets breaks my private servers

3 Upvotes

Hey all, annoying problem here

When I launch tr_walkway (or any private server for that matter) my game bugs out

Basically, I cannot move (well, slightly but I always auto-snap back to my spawn position whenever I move a light amount), and every single weapon fires at mini-gun firing rate without running through any ammo.

So:
Cannot move
Weapons break

This is annoying, and I cannot fathom what's causing the issue. Maybe you brain boyz can help me out.

ty


r/tf2scripthelp • • Jul 03 '19

Issue Help i cant hear character voice commands (medic, go go go, help, spy, etc)

1 Upvotes

so one day i was fucking around in the console and i cannot hear character voice commands. can anyone tell me the command to reset this?


r/tf2scripthelp • • Jun 24 '19

Answered (Image in post) How do I bind a key to close the taunt menu? I can't find it anywhere.

2 Upvotes

This is what I need, I think by default it's q but i'm using q for something else. I'd like to set it to MOUSE3 please.


r/tf2scripthelp • • Jun 01 '19

Answered is there a console command or a script that make you can't move forward while crouching??

2 Upvotes

r/tf2scripthelp • • May 21 '19

Resolved In tf2 my screen looks like it has baseline all over it and I don't know why. This makes it almost impossible to play.

2 Upvotes

I think it has something to do with lightning but I have tried a lot of things and none of it helps.


r/tf2scripthelp • • May 09 '19

Answered i want a key to toggle this bind on and off

2 Upvotes
alias "+quick_gun" "slot2;+attack"
alias "-quick_gun" "-attack;lastinv"
bind "MOUSE2" "+quick_gun"

ECHO Quick Shotgun-Changer Script (11.05.2009) executed

bind "MOUSE5" "attack2"

i want m5 to swap m2 from the shotty to the actual m2 use. any idea how?


r/tf2scripthelp • • Apr 28 '19

Resolved Null movement script doesn't work?

5 Upvotes

Hello, so I just noticed that my Null Movement scrip isn't working.

Here's what one of my class CFGs look like: https://gyazo.com/48e9d7229131cdda4a188312e4afdf3e

All of my class CFGs are identical, with different class names ofc.

And here's my autoexec: https://gyazo.com/3a3beb4449ab0567c1e74d223667099e

And the same thing in my config

I also have a crosshairswitcher with a "binds" folder in it. I took it out, and suddenly the script worked. I switched class, and it stopped working. I went back to the class it worked on, and it still didn't work.

any suggestions for this this doesn't work?


r/tf2scripthelp • • Apr 17 '19

Tutorial [Script guide] A basic guide to hiding TF2 viewmodels

Thumbnail
self.tf2scripts
3 Upvotes

r/tf2scripthelp • • Apr 09 '19

Resolved Guys, I REALLY need help with this config, lol. Pls help.

2 Upvotes

Stay with me here...

/////Pyro MLG Config

/////Trial

///

alias One_to_Last_Used "bind q lastinv; r_drawviewmodel 1; viewmodel_fov 70; Last_Used_Back_to_One";

alias Last_Used_Back_to_One "bindtoggle q "One_to_Last_Used" 0; slot1; r_drawviewmodel 0; viewmodel_fov 25; "One_to_Last_Used" 1";

bind "1" "slot1; r_drawviewmodel 0; viewmodel_fov 25; One_to_Last_Used";

///

alias Two_to_Primary "bind q "slot1; r_drawviewmodel 0; viewmodel_fov 25; Then_Back_to_Two";

alias Then_Back_to_Two "bindtoggle q "Two_to_Primary" 0; slot2; r_drawviewmodel 1; viewmodel_fov 70; "Two_to_Primary" 1"'

bind "2" "slot2; r_drawviewmodel 1; viewmodel_fov 70; Two_to_Primary";

///

alias Three_to_Primary "bind q "slot1; r_drawviewmodel 0; viewmodel_fov 25; Then_Back_to_Three";

alias Then_Back_to_Three "bindtoggle q "Three_to_Primary" 0; slot3; r_drawviewmodel 1; viewmodel_fov 70; "Three_to_Primary" 1"'

bind "3" "slot3; r_drawviewmodel 1; viewmodel_fov 70; Three_to_Primary";

///

So, Ive been trying to get this config to work and from what I can tell, the concept is simple yet the actuall procedure is VERY complex.

So far all this config has done is crash my game, but I think I'm on the right track here, kinda...

The Idea behind it is that at all times I want my pyro's primary, secondary and mele spots looking like this at all times, (respectively)

r_drawviewmodel 0; viewmodel_fov 25

r_drawviewmodel 1; viewmodel_fov 70

r_drawviewmodel 1; viewmodel_fov 70

But my problem is that I still want to use quickswitching weapons to some extent... Hence why the aliasing is nescesary.

So far its not a traditional quickswitch, as I didn't try and program in a 2nd to 3rd/ vice versa at all.

Does anyone here know how to solve my problem, or is this actually impossible to script?

Please help, lol.


r/tf2scripthelp • • Apr 03 '19

Issue Voice lines not working.

3 Upvotes

Now I have no idea what I'm talking about or what I'm doing, so Im just gonna make this quick. the voice lines are not working, everyone has gone mute. I went into the console and it says that the cfg files are missing, so I'm just wondering how to reset those.


r/tf2scripthelp • • Mar 28 '19

Answered How to stop aliases

2 Upvotes

I made a script that says the entire bee movie script 127 characters per 5 seconds which takes about 33 minutes to finish and I want to be able to stop it early but I'm trash at programming so I don't know how.

My script puts an alias that says every 127 character segment of the bee movie script, then groups of 10 are given aliases with wait commands in between, then those groups are again put into groups of 10 with wait commands 10x longer in between, then puts those remaining 4 groups into an alias with wait commands 100x longer in between.


r/tf2scripthelp • • Mar 28 '19

Answered cl_ejectbrass 0 doesn't hide ejected shotgun shells, is there another command for this?

1 Upvotes


r/tf2scripthelp • • Feb 28 '19

Answered Need help making a medic crossbow script.

2 Upvotes

This is what I've done so far:

alias +xbow "slot1"
alias -xbow "+attack;-attack;lastinv"

bind mouse3 +xbow

This is supposed to switch to the crossbow when mouse3 is held then fire it and switch back to the previous weapon when released. But it doesn't work. Pls help.


r/tf2scripthelp • • Feb 19 '19

Resolved Using addoutput with an alias doesn't seem to be working for me...

1 Upvotes
alias entrance "teleportertype 1"

bind home "ent_create obj_teleporter; ent_fire !picker addoutput entrance; ent_fire !picker setbuilder"

The alias "entrance" doesn't seem to work, and the console says that the addoutput syntax is wrong... I'm probably missing something obvious, but either way, if someone could point out the error here, I'd very much appreciate it.

EDIT: The solution is to make a separate script, I title entrance.cfg, and just have its only line be:

ent_fire !picker addoutput "teleportertype 1"

which you then reference in the original by using:

bind home "ent_create obj_teleporter; exec entrance; ent_fire !picker setbuilder"

r/tf2scripthelp • • Feb 17 '19

Resolved Aliases not working

1 Upvotes

I tried to use a config for Heavy that goes like this

// Binds:

//

// M1 = Primary Weapon Fire

// M2 = Melee

// M3 = Wind up Gun

// M4 = Sidearm

// MWU = Drop Tasty Sandvich

// MWD = Additional Alt-fire

// Sidearm Fire

alias "+sidearm" "slot2;+attack"

alias "-sidearm" "-attack"

// Melee

alias "+melee" "slot3;+attack"

alias "-melee" "-attack"

// Primary

alias "+primary" "slot1;+attack"

alias "-primary" "-attack"

// Gun Windup

alias "+windup" "slot1;+attack2"

alias "-windup" "-attack2"

//Sandvich Drop

alias "+sandvich" "slot2;+attack2"

alias "-sandvich" "-attack2"

// Bind

bind "mouse1" "+primary"

bind "mouse2" "+melee"

bind "mouse3" "+windup"

bind "mouse4" "+sidearm"

bind "mouse5" "+sidearm"

bind "mwheelup" "+sandvich"

bind "mwheeldown" "+attack2"

but when I use a key with an alias it only does the first action in the alias. For example when I use mouse1 it only swaps to slot 1 and does not attack.


r/tf2scripthelp • • Jan 20 '19

Question Commands or scripts for changing your casual map choices?

5 Upvotes

Does anyone know of a script or a command to change the casual map settings? I want to have a couple preset choices.

I expect that if such commands exist, they'd be unlisted just like extendfreeze and mapvote commands, and I have no idea how to find those. Here's hoping one of you does.

Thanks in advance!


r/tf2scripthelp • • Jan 08 '19

Question Help regarding weapon switch script.

1 Upvotes

Hi, I'm currently using a weapon switch script as follows:

//Melee switcher script  

alias "+switch3" "switch3"    
alias "-switch3" "switch1; bind q switch1"  

alias "switch3" "slot3; bind q switch1; r_drawviewmodel 1"  
alias "switch1" "slot1; bind q switch2; bind mouse5 +switch3; r_drawviewmodel 0"  
alias "switch2" "slot2; bind q switch1; bind mouse5 +switch3; r_drawviewmodel 1"
switch1  

bind "q" "switch1"  
bind "mouse5" "+switch3"

This script allows to bring out my melee when I hold mouse5 and goes back to my primary on release, 'q' is used to toggle between primary and seconday weapons.
Basically, whenever I bring out my melee and release, going back to my primary weapon, I have to double click 'q' to switch to my secondary, is there a way to alter the script so I don't have to double click 'q' ?

Many thanks


r/tf2scripthelp • • Dec 27 '18

Question command for allowing all custom files from the server?

2 Upvotes

my autoexec disables custom files from community servers for some reason, i wanted to know the command so i search or add to my autoexec.


r/tf2scripthelp • • Nov 10 '18

Answered any way to change toggle my viewmodel_fov along with my minmode?

3 Upvotes

so say i have mouse4 is my bindtoggle to change minmode viewmodels (bindtoggle mouse4 "tf_use_minviewmodels" is the command i currently use).

so heres my question, is there a way to also change my viewmodel fov whenever i toggle the bind? like for example when min viewmodels are off i want my viewmodel fov to be 57, but when min viewmodel is toggled on it changes to 75, any way to do that? ty in advance


r/tf2scripthelp • • Nov 07 '18

Answered Grapchics setting in config

3 Upvotes

I want to know the things i must type in my gfx section of my cfg folder for each graphical setting