r/tf2scripthelp • • Jul 31 '15

Answered Need help with Close Captions

1 Upvotes

So im trying to get close captions working on my game, and they are coming up, but they're cut in half and don't show it all at once (It scrolls down after about 0.5 seconds of the first part appearing) I've tried fiddling with the settings but to no avail. My current settings are as followed. I'd like the captions to be around here, having longer text like "Demoman Hurt" stretch to almost the end of the box. Thank you.


r/tf2scripthelp • • May 24 '15

Answered Is it good or bad scripting practice to create more cfgs for other things such as options and graphics settings? I also have ab additional question about spec_mode.

1 Upvotes

Hey guys.

I've noticed sometimes when I'm making my autoexec cfg that it will often times become very full of text, which makes it harder to navigate and edit.

Sometimes when looking at other peoples autoexec cfgs, I've noticed that they will have things at the top, such as

exec graphics
exec settings
exec options

Wouldn't it be better to have seperate cfgs for these things? So i could put all my graphics settings in one place. Or my options settings in another place etc.

Then putting exec (options,settings,graphics) at the top of your autoexec cfg would make it much more clean.

I've seen quite a few other people who do this and I'm just wondering if it's a good or bad thing to do. Is it down to personal preference? I can't really see any downsides too it, but I'm still very new to all of this so I'm just a little unsure.

The other question i had was about spec_mode. I know this is in the wiki/faq and i see this sub has had many questions regarding this, but I'm struggling with this.

Right clicking and left clicking change spectator just fine, It's just spectating in first person which is not working for me. I was told that just binding space to +jump would work fine and that you do not need to add spec_mode to it since it triggers automatically. That's something i had in that past which worked fine. But at the moment i have space bound to crouch jump and now i can't spectate in first person.

I have tried adding/removing spec_mode to the bind, and this did not work. So I'm a little stumped on this one, could anyone help me out? Any help would be appreciated. Here is my reset.cfg. Also, if you see anything bad/wrong about my reset cfg, please let me know.

//[ fixes
// medic fix
-attack
//]


//[ Movement
bind w             +forward             					 
bind s             +back                					 
bind a             +moveleft            					
bind d             +moveright           					 
bind ctrl          "+duck"                				
bind space         +crouchjump; spec_mode  	                   
alias              +crouchjump "+duck;+jump"
alias              -crouchjump "-duck;-jump"
//]
   
	
//[ Combat
bind MOUSE1         +attack
bind MOUSE2         +attack2
bind MOUSE3         +attack3
bind MWHEELUP       invprev             
bind MWHEELDOWN     invnext            
bind q              lastinv             
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 0			    slot10
//]


//[ Viewmodels & FOV
r_drawviewmodel 1
viewmodel_fov 75
fov_desired 90
//]


//[ Reset for other keys
bind G +taunt
bind R +reload
bind f inspect
//]


//[ Voicemenu Script
bind mouse1       +v_attack
bind mouse2       +v_attack2
bind q            v_lastinv
bind shift        +voice

alias voice_m1    "voicemenu 0 6"
alias voice_m2    "voicemenu 0 7"
alias voice_q     "voicemenu 2 6"

alias +eq_attack  "+attack; spec_next"
alias -eq_attack   -attack
alias +eq_attack2 "+attack2; spec_prev"
alias -eq_attack2  -attack2

alias +voice      "alias +v_attack voice_m1;   alias -v_attack ;           alias +v_attack2 voice_m2;    alias -v_attack2 ;            alias v_lastinv voice_q"
alias -voice      "alias +v_attack +eq_attack; alias -v_attack -eq_attack; alias +v_attack2 +eq_attack2; alias -v_attack2 -eq_attack2; alias v_lastinv lastinv"
-voice
//]

r/tf2scripthelp • • May 24 '15

Resolved Viewmodel invisibility issue

1 Upvotes

Before I was aware that I needed to make some new folders in the "tf>custom" file location, I made a script that made the spy's revolver invisible as well as multiple keybinds for other classes. Obviously, these binds trickled into the main config.cfg file. I've fixed almost everything from my original screwup with the exception of one thing. My weapons are invisible on my screen for all classes. I can see other people's weapons, just not my own. I tried adding r_drawviewmodel 1 to my reset.cfg. When the value is 1, my weapons are invisible and their usage can cause the screen to glitch (shake and turn white in some parts resembling a texture with multiple shades extending into dark gray, not the pure white you see with typical errors and glitches. When the value is 0, the weapons are still invisible, but I don't get that glitch upon use. So, simply put, how can I fix this?


r/tf2scripthelp • • May 10 '15

Resolved Medic autoheal script issue - autoattack w/ other weps.

1 Upvotes

So I'm rather new to scripting and I decided to try and make some things to help in game. I've found that I spend a lot of time holding down M1 on slot 2 (medigun) and that the beam gets broken/intercepted a lot. As a result I searched for an autoheal script, and although it works, it automatically triggers attacks if I then change weapons using my mousewheel.

http://pastebin.com/5JicvqWF

^ I've pastebinned the code so it is clearer, as it looked a little odd with reddit formatting.

I find that when I use my mouse scroll wheel to change weapons, my medigun does not autoheal. When I use the number keys, my medigun does autoheal. But then, if I change weapons using the mousewheel, the other weapon (needlegun or saw) will also auto attack.

How can I stop it doing this? The autohealing functions well, however I can't seem to get the mouse scrolling option and the number keys to work together instead of seperately.

Thank you in advance.


r/tf2scripthelp • • May 10 '15

Resolved My spy script is not loading

1 Upvotes

I have stabby's spy script which I copy pasted into my cfg, like this guide told me to. The thing is, it isn't loading. Can anyone help?


r/tf2scripthelp • • Apr 14 '15

Answered Why can't I see the rope of the grapple?

1 Upvotes

When playing mannpower mode the rope of the grapple is invisible. This means I can only see the hook itself and the person flying through the air. I do have chris highframes installed, and I assume this is the problem. Which command would I have to change to make this rope visible?


r/tf2scripthelp • • Mar 12 '15

Question How do I create a .cfg file?

1 Upvotes

title


r/tf2scripthelp • • Feb 25 '15

Resolved Need help with an engi script to switch back to the last used item.

1 Upvotes

I currently have this alias sentry "destroy 2; build 2"; alias dispenser "destroy 0; build 0"; alias entrance "destroy 1; build 1"; alias exit "destroy 3; build 3"; bind f sentry; bind F1 dispenser; bind F2 entrance; bind F3 exit exec autoexec.cfg


r/tf2scripthelp • • Feb 14 '15

Answered x-post from /r/tf2. My scripts haven't been working since this new update and I have no idea why but it also deleted my binds.

1 Upvotes

Github Link: [Lyrositor/TF2-Scripts](https://github.com/Lyrositor/TF2-Scripts


r/tf2scripthelp • • Jan 28 '15

Answered How do I make a certain voice command activate when I kill someone?

1 Upvotes

I'm new to TF2 scripting, and I want to know how to bind voice commands to activating when killing someone. Such as "Good job!". What are the commands to do something such as this?


r/tf2scripthelp • • Jan 26 '15

Resolved Help, spy script causing watch bug.

1 Upvotes

I am having a bug with my spy scripts. When I attack with any weapon and bring up my watch quickly (doesn't matter witch) the watch will not come down until ether I click mouse1 or switch weapons. It will also on occasion not let me bring the watch up until I click mouse1 or switch weapons.

I have tried a couple things to try and fix this deleting my cfg folder, rewriting my scripts, using default settings, removing my custom Hud, and using in game setting for key binds.

As of so far nothing has worked please help.


r/tf2scripthelp • • Jan 26 '15

Resolved Sprays are not appearing in Game

1 Upvotes

I've been playing TF2 for 1100+ hours having a blast and trying a whole bunch of custom files and mods.

But I've been having this problem that I haven't been able to get rid of on my own for a while now.

Sprays from other players will not show up for me while in the game. I can spray my image just fine. But I can hear other players spray images but it comes up invisible for me. The game even shows me "Sprayed by: [Player Name]" where I lay my crosshair on the wall.

I've tried using google, steam forums, and /tf2g/ to solve my problem but I am getting no luck.

I have no doubt that a script I am using is causing this to happen. I use a few simple scripts + stabbystabbycompetative.cfg. I also checked the integrity of my game files in steam and had no issues.

So my question is what are some lines of code that would interfere with the upload of other player's sprays? I know I can't be the only one with this issue.


r/tf2scripthelp • • Jan 24 '15

Answered Medic script - text messages for individual mediguns

1 Upvotes

SOLVED

My medic.cfg is slightly large, but these are the areas I'm having a slight trouble with:

alias +uber "dropitem; medigun; +attack2;voicemenu 2 5; activated"
alias -uber "-attack2"

alias usinguber "load_itempreset 0; say_team USING UBER; bind "MOUSE2" "+uber""
alias ubertext "bind "MOUSE2" "+uber; say_team UBER POPPED;""

alias usingkritz "load_itempreset 1; say_team USING KRITZ; bind "MOUSE2" "+uber""
alias kritztext "bind "MOUSE2" "+uber; say_team KRITZ POPPED;""

alias usingquick "load_itempreset 2; say_team USING QUICKFIX; bind "MOUSE2" "+uber""
alias quicktext "bind "MOUSE2" "+uber; say_team QUICKFIX POPPED;""

alias usingvac "load_itempreset 3; say_team USING VACCINATOR; bind "MOUSE2" "+uber""
alias vactext "bind "MOUSE2" "+uber; say_team Resist Used;""

bind "KP_END" "usinguber; ubertext;"
bind "KP_DOWNARROW" "usingkritz; kritztext;"
bind "KP_PGDN" "usingquick; quicktext;"
bind "KP_LEFTARROW" "usingvac; vactext;"

I want to make it so that when I right click, I output a team message corresponding to the medigun I'm using. I usually only have it say "CHARGE POPPED" as I never found a workaround it, until now. So I came here for help.

--- EDIT -- SOLVED

alias +uber "dropitem; medigun; +attack2;voicemenu 2 5; ubertext"
alias -uber "-attack2"

bind MOUSE2 +uber

alias usinguber "load_itempreset 0; say_team USING UBER; alias ubertext say_team UBER POPPED"

alias usingkritz "load_itempreset 1; say_team USING KRITZ; alias ubertext say_team KRITZ POPPED"

alias usingquick "load_itempreset 2; say_team USING QUICKFIX; alias ubertext say_team QUICKFIX POPPED"

alias usingvac "load_itempreset 3; say_team USING VACCINATOR; alias ubertext say_team Resist Used!"

cl_autoreload 1;
r_drawviewmodel 1;

bind "1" "slot1;r_drawviewmodel 1"
bind "2" "slot2;r_drawviewmodel 0"
bind "3" "slot3;r_drawviewmodel 1"
bind "4" "slot4;r_drawviewmodel 1"
bind "5" "slot5;r_drawviewmodel 1"

bind "KP_END" "usinguber"
bind "KP_DOWNARROW" "usingkritz"
bind "KP_PGDN" "usingquick"
bind "KP_LEFTARROW" "usingvac"

bind "MOUSE1" "+attack"

r/tf2scripthelp • • Jan 24 '15

Answered Chat bind won't go away

1 Upvotes

So, my mouse comes with 2 buttons, and I bound MOUSE5 to say a thing in chat (because I spit dank memes left and right in order to acquire large amounts of females), but having forgotten to take my ADD medication that day, I realized I had accidentaly bound it to my push-to-talk button in mumble, so I deleted it. But now, whenever I press that button, it says the thing in chat even though I removed it from my autoexec. Please help!

TL;DR I had a bind to say things in chat, I deleted it, and it won't go away.


r/tf2scripthelp • • Jan 21 '15

Issue simple makeshift 'binocular' script

1 Upvotes

I'm trying to make a key that will toggle between zoomed in view and invisible weapon models for all classes(basically same as ambassador script) and i've tried something like this: bindtoggle r "r_drawviewmodel 0 1;viewmodel_fov 0 85;fov_desired 75 90" I know I'm probably making some rookie mistake, but any help would be very much appreciated thank you!


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 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 • • Oct 05 '14

Resolved Is there any way to toggle on/off a script?

1 Upvotes

Hey there! First time posting here and I was wondering if there's any way to toggle on/off a script. I want to use the Demoknight script from Reima [link here] (Don't know if it still works, but would like to give a try, and even if it doesn't, the command might be valuable in the future), but I would like to be able to choose when I want to use it with a key binding, like whenever I press 0 on the keyboard it switches to those bindings and back when I press it again (or any other binding).

Anyway, thanks and have a nice day!


r/tf2scripthelp • • Jul 03 '14

no Is it possible to raise the volume for specific in game sounds?

1 Upvotes

The sounds I'm looking at increasing the volume of specifically are reloading sounds and footsteps. Can I do this and is it allowed (wont get me vac banned)?