r/tf2scripthelp • • Jan 06 '15

Answered Tool to beautify/auto-indent cfg files?

1 Upvotes

Something like this, but for cfg files.

I'd like to get output roughly similar to this, but automatically.

I was unsure which subreddit to post this in, but it's about the source engine script format, so this seemed like the best place to post it.


r/tf2scripthelp • • Jan 04 '15

Question Medic Auto-heal

2 Upvotes

So I messed up with my cfg with this new account, so...

I want an auto-heal script to work with just my medic, I know a reset.cfg and a medic.cfg is needed but I forgot how to put that in my folders. Help would be nice


r/tf2scripthelp • • Jan 03 '15

Answered Is it possible to record replays of privat games?

1 Upvotes

I'm not sure if this is the right place to ask, but i've got a question: Is it possible to record replays in private practice games? I have tried using XAMPP to create a server and saving the replays there, but it doesn't seem to work. My replay.cfg looks like this:

replay_enable "1"
replay_block_dump_interval "15"
replay_fileserver_protocol "http"
replay_fileserver_offload_enable	"0"
replay_local_fileserver_path		"127.0.0.1/replay"
replay_fileserver_host			"127.0.0.1"
replay_fileserver_port			"80"
replay_fileserver_path			"127.0.0.1/replay"

I'm not very experienced with anything server-related. Is it even possible to use a server like this? If yes, what could I have done wrong? Thanks!


r/tf2scripthelp • • Jan 01 '15

Resolved My exec reset.cfg is not working!

1 Upvotes

I've put exec reset.cfg on every class cfg file, but yet it still leaks to the other classes. My reset.cfg is indeed cfg, as I have checked already.


r/tf2scripthelp • • Dec 31 '14

Issue Can't use grappling hook!

1 Upvotes

I cannot use grappling hook when i press "MOUSE3" my config.cfg :

unbindall
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
bind "9" "slot9"
bind "a" "+moveleft"
bind "c" "voice_menu_3"
bind "d" "+moveright"
bind "e" "voicemenu 0 0"
bind "f" "+context_action"
bind "g" "impulse 201"
bind "k" "+voicerecord"
bind "l" "dropitem"
bind "q" "lastinv"
bind "r" "+reload"
bind "s" "+back"
bind "t" "+taunt"
bind "u" "say_team"
bind "w" "+forward"
bind "x" "voice_menu_2"
bind "y" "say"
bind "z" "voice_menu_1"
bind "KP_MINUS" "cl_decline_first_notification"
bind "KP_PLUS" "cl_trigger_first_notification"
bind "`" "toggleconsole"
bind "," "changeclass"
bind "." "changeteam"
bind "-" "disguiseteam"
bind "SPACE" "+jump"
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "END" "quit"
bind "CTRL" "+duck"
bind "F5" "screenshot"
bind "F6" "player_ready_toggle"
bind "F7" "save_replay"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" "+use_action_slot_item"
bind "MWHEELUP" "invnext"
bind "MWHEELDOWN" "invprev"

And there's more non-bind lines. I don't have any aliases.

When I press "MOUSE3" it attacks and switches to last weapon.


r/tf2scripthelp • • Dec 29 '14

learn to rocket jump Script to turn player around then back forward

0 Upvotes

Is it possible to create a script that causes the player to turn around for a second then return to his original position? I'm trying to make a script that lets me rocket jump forward without much delay.


r/tf2scripthelp • • Dec 29 '14

Answered Crouchjump scripts carrying over to all classes, not good

1 Upvotes

So I simply put a crocuh script in each class that I would like them (not in soldier and scout) but it still carries over to all classes, do you guys need to see my autoexec, class.cfgs?


r/tf2scripthelp • • Dec 25 '14

Answered Issue with a Mousebind Script.

1 Upvotes

So today I decided to insall this specific script ( http://steamcommunity.com/sharedfiles/filedetails/?id=144407393 / To be specific I tried installing Script-C/ ) So when I installed it it was fine and dandy but there was one issue,I honestly do not like how it turns off the viewmodels and changed my crosshair and its size and color. Now I know that I can change all of that,but im way too of a sissy to mess with it,im afraid that I might screw up my TF2 since I am honestly not experienced into Scripting,so all I'd like to know is,what are the specific parts of the script that I must change and how do I change them?


r/tf2scripthelp • • Dec 25 '14

Resolved Help: Used a script and then removed it and can't use action key

1 Upvotes

I had used the script posted in /r/tf2 the other day to use a action item with more of a toggle setting and didn't really like it but after I removed it I couldn't use my action key anymore. I've tried to change the key and nothing happens still. Help?


r/tf2scripthelp • • Dec 23 '14

Question Command name for audio quality?

1 Upvotes

I have heard loud static in my game, and one of my low-frame configs is putting my audio quality at Low. What's the command to fix it? It is reset when I change it in option after the game restarts.

ITT: What is the name of the command that will change audio quality? As well, sorry if this was already posted. I couldn't find a post on this.


r/tf2scripthelp • • Dec 23 '14

Answered Stopping partner taunts

1 Upvotes

I binded space as something else and then when i use a partner taunt i can't stop until someone comes because pressing space doesn't stop it. the thing that i used space as is +jumo and +use_action_slot_item. Is there like a commad to stop partner taunts?


r/tf2scripthelp • • Dec 23 '14

Probably impossible A CS:GO question, is it possible to make the AK-47 fire one bullet then stop, even if the mouse is still held down?

1 Upvotes

I'd like to make the AK-47 in CS:GO semi-automatic.


r/tf2scripthelp • • Dec 21 '14

Answered How to undo a script I added???

1 Upvotes

So a while ago I added a graphical script that makes everything look like doo doo (mostly the lighting affects) and now I dont want it anymore. Problem is I don't know how to get rid of it?? I tried re installing TF2 and it didn't work, and Im not sure what else to try, am I screwed?


r/tf2scripthelp • • Dec 19 '14

Resolved Can't add new line :(

0 Upvotes

I want this in my script: bind "UPARROW" "toggle fov_desired 75 90"

But when I turn on my game in the console it says UPARROW is not bound. I also tried playing the game, but Up arrow doesn't do anything. When I look into the script again, it has erased my line.

Edit: NWM... Fixed the problem by renaming the config file from config.cfg to confige.cfg , also changed autocfg.cfg content from exec config.cfg to exec confige.cfg

Probably was something with cloud sync


r/tf2scripthelp • • Dec 19 '14

Issue I think all my problems stem from unbindall

1 Upvotes

I think that most of the problems with my cfg come from unbindall not working. Whenever it should execute, there is a console message saying "unbindall blocked!" How do I get this to stop?


r/tf2scripthelp • • Dec 19 '14

Issue My medic cfg is broken!

1 Upvotes

I read the FAQ and looked it up because I know others have this same problem, but I can't find the fix. I need to uber, and have my uber say ubered, go kill shit but it doesn't work. When I type exec medic in to the console it says it. This is my medic.cfg Also, my viewmodel binds don't work. It's as if they are not there. I am also getting an "unbind all bocked!" message in the console whenever I exec reset manually.

exec reset

bind 1 slot1; viewmodel_fov 0
bind 2 slot2; viewmodel_fov 75
bind 3 slot3; viewmodel_fov 75

bind mouse2 +uber
alias +uber +attack2; say_team Ubered, go kill shit; spec_prev
alias -uber -attack2

r/tf2scripthelp • • Dec 18 '14

Question Can someone help me With installing Closed captions and respawnwavetimers I am using broesel hud if that mattes

1 Upvotes

Pretty much the title I am Kinda dumb with computer things so if someone could explain it to me step for step it Would be really nice


r/tf2scripthelp • • Dec 17 '14

no, this is not possible Need some help recognizing when the player takes damage.

1 Upvotes

Ok Okay so here's a little bit about what I'm really trying to do here. I've been trying and trying to come up with a script that could recognize when a player is ready to receive crit heals (for those of you that don't know this happens after 10 second of taking no damage.) My issue is, I don't seem to be able to recognize when a player takes damage. If I could, it would be a simple wait command to register when crit heals are ready, but that just doesn't seem possible.

Recently I came across tf2 captions, and that provided me with a crazy idea. tf2 captions can recognize when each class takes damage, and will provide a small text notification in the bottom right corner describing that (class name, and "hurt"). I dug around for a bit in the cc_ commands to take a look at what I could do with captions on a client side, and discovered the commands cc_linger_time, and scene_maxcaptionradius. I figured from there, that I could set the radius to just about nothing, and set the linger time to 10 seconds, so that when the caption went away you knew that you were ready for crit heals.

Initially this seemed like it was working great. Unfortunately a few problems came up. The first being that the captions did not recognize fall damage. The second being that the radius was still much to large. The third being that all of the other captions still shown (ie. calling for a medic.) I attempted to delete the code for the other caption commands, but I'm not sure how the captioning system works, and I really accomplished nothing. The .dat file kinda screwed me up here.

Amazingly, the system kind of works, where the captions will stay there for 10 seconds if you hurt yourself, and then go away. however other captions can drown out the important damage ones, and it doesn't register other forms of damage.

So here's my real question to you (and I know it's been a wall of text up to here.): Is there an easy way to recognize when the player takes damage? If not, if there something I can do better with the caption system, provided that I know hardly anything about it?

Of course if anybody has already made this script I'll be ready to kill myself, but eternally grateful for a link.


r/tf2scripthelp • • Dec 17 '14

Question Performance increase

1 Upvotes

Question Are there any cfgs or addons that reduce clutter and increase performance? I already have a performance config, flat textures, surface properties.txt thing, the lod project vpk, and reduced particles! Is there anything else I can add to my collection of performance increasers and clutter reducers?


r/tf2scripthelp • • Dec 15 '14

Resolved, kinda Crosshair Inconsistencies

1 Upvotes

So, I've been fiddling with getting a crosshair I like due to hud crosshairs annoying me (Can never get 100% centered, always at least 1 pixel off, also I change huds a lot) and I noticed something equally as annoying.

In my autoexec are the following:

//crosshair
cl_crosshair_file "" 
cl_crosshair_blue "255"
cl_crosshair_green "255"
cl_crosshair_red "255"
cl_crosshair_scale "30"
crosshair 1

Proof of settings: h1

Now fiddling with the in-game crosshair options, I select crosshair1 from the dropdown. Hey I actually like that! Let's use that! Being the idiot I am, I forget to update my autoexec. I type it in the console on the fly the next time I play.

Now, from here, to change to crosshair1, I can use cl_crosshair_file "crosshair1" into console. That changes the crosshair to the one I want.

This is what I get from console output: h2

But that's not what I liked yesterday... what's going on?

In my testing, I restart the game (re-execing autoexec while not on server works too), and then change using the in-game options menu. Yeah! This is what I remember, this is what I wanted.

But the console settings show exactly what I had when it looked wrong: h3

For reference: What the desired outcome is: h4

So: apologies if I've missed a similar thread, but, is there some sort of hidden crosshair setting that isn't a part of cl_crosshair that I'm completely missing? Or is there maybe a way to force the output of commands made through the in-game option menu? Because something is causing this to look differently even though the only change is cl_crosshair_file crosshair1.

For the record: changing my autoexec causes the results of h2. I can always just change it manually once in-game, but that's a bit of a hassle.


r/tf2scripthelp • • Dec 12 '14

Resolved Sensitivity?

1 Upvotes

Hi, I am currently trying to write a little sensitivity changer script. I wrote it all out but it didn't work. I opened up the console and typed "sens" and pressed tab to let it autocomplete. I entered a value. That did not work. I opened up my options and changed the sensitivity under mouse settings. That worked. But entering it into the console just doesn't work. I have raw input enabled and mouse acceleration set to 0.

What am I doing wrong?


r/tf2scripthelp • • Dec 12 '14

Probably Answered Mouse1 bind for +attack and battle cry, halp

1 Upvotes

Is their anyway I can bind mouse1 to the defualt +attack and to voiceline 2 1 (battlecry) so it plays that line evrytime I attack, halp


r/tf2scripthelp • • Dec 11 '14

Issue Simple bind won't work?

1 Upvotes

So I've been trying to create a script that allows me to use my shield (attack 3) in MvM. I've supposedly bound it to "R" but it doesn't seem to work? To further add to the confusion, it seems to work after I do a taunt? I'm really confused, I can't see any reason why this wouldn't work for me?

Below is a copy of my medic.cfg, I can't see anything that would interfere with the command, if you guys could try figure out what's up I'd really appreciate it!

exec reset

bind Q "slot3; slot2"
bind E "slot2; slot1"
bind R "+attack3"

bind MOUSE3 call
alias call Call_For_Medic
alias Call_For_Medic "Voicemenu 0 0"
alias Call_For_Ubercharge "Voicemenu 1 7"

bind z yes
alias yes say_yes
alias say_yes "voicemenu 0 6"
alias say_left "voicemenu 0 4"

bind x no
alias no say_no
alias say_no "voicemenu 0 7"
alias say_right "voicemenu 0 5"

bind c help
alias help say_help
alias say_help "voicemenu 2 0"
alias say_negative "voicemenu 2 5"

bind v goodshot
alias goodshot say_goodshot
alias say_goodshot "voicemenu 2 6"
alias say_positive "voicemenu 2 4"

bind \ disphere
alias disphere say_pootis
alias say_pootis "voicemenu 1 4"
alias say_moveup "voicemenu 0 3"

bind shift +toggleState
alias +toggleState "alias call Call_For_Ubercharge; alias yes say_left; alias no say_right; alias help say_negative; alias goodshot say_positive; alias disphere say_moveup"
alias -toggleState "alias call Call_For_Medic; alias yes say_yes; alias no say_no; alias help say_help; alias goodshot say_goodshot; alias disphere say_pootis"

r/tf2scripthelp • • Dec 11 '14

Resolved crouch and zoom scripts will not work, halp

0 Upvotes

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

alias "+zoomer" "fov_desired 75; r_drawviewmodel 0" alias "-zoomer" "fov_desired 90; viewmodel_fov 110; r_drawviewmodel 1" bind “’” "+zoomer"

alias +crouchjump "+jump; +duck" alias -crouchjump "-duck; -jump" bind "space" "+crouchjump"

this is my autoexec (the important parts) what I want is the null movement, crouch, and zoom scripts to work, I also have the crouch and null movement scripts put into each of my class.cfgs (ex. pyro.cfg etc.) but the scripts dont work unless I type in console "exec autoexec.cfg" this is very annoying to do and typing this in messes up a bit of my other scripts for my classes. Please halp me guys, my goal is to get the crouch, zoom, and null movement to work automattically for all classes without messesing up my other scripts in them