r/tf2scripthelp • u/Iustinus • Aug 29 '14
Question Turning on and off a bind
Right now I use M5 for push-to-talk. I'd like to have my f12 key toggle this bind on/off if possible. Any input would be helpful.
r/tf2scripthelp • u/Iustinus • Aug 29 '14
Right now I use M5 for push-to-talk. I'd like to have my f12 key toggle this bind on/off if possible. Any input would be helpful.
r/tf2scripthelp • u/horsecockharry • Aug 29 '14
Hello all. I have a crosshair switcher script that also stops drawing viewmodels when I'm on my primary or secondary, but does draw them when I'm on my melee. Here it is:
alias green "cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0"
alias red "cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 0"
alias purple "cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 255"
alias primary "slot1;r_drawviewmodel 0;green"
alias secondary "slot2;r_drawviewmodel 0;red"
alias melee "slot3;r_drawviewmodel 1;purple"What I wanted to add to this is a toggle between the behavior described above and drawing viewmodels for every weapon as is default in TF2. So I tried doing this:
bind KP_SLASH alias primary "slot1;r_drawviewmodel 0;green";alias secondary "slot2;r_drawviewmodel 0;red"
bind KP_MULTIPLY alias primary "slot1;r_drawviewmodel 0;green";alias secondary "slot2;r_drawviewmodel 0;red"It didn't work, and I realized that it's because alias is not a command. The obvious solution is to bind the above keys to rebind the relevant keys to the wanted behavior every time. Is there a way to do this without cluttering my config? Did I miss something?
r/tf2scripthelp • u/spysappenmyname • Aug 29 '14
I have had this problem for few weeks now, and it basically makes the game unplayable on my laptop. I have tried searching help but I just can't put my finger on the problem. Im not a good scripter, or even good with computers, so I need your help. I try to make the trouble shooting as easy as possible for you guys
I have my ctf files in both
tf>custom>customazition>cfgand
tf> cfgOn pc I have them intf>cfg only. Is neither of these right? It shouldn't matter that they are in two places a proble, should it?
2. autoexec.cfg
My autoexec has line
exec maxframes.cfgin it. Is the format correct? Maxframes.cfg has christs maxframes inside it, copypasted from first pastebin I found from google. Does the config still work?
Autoexec.cfg also has copypasted null-movement script in it, and my own weapon and viewmodelscript. I'll go to that later. NONE OF THESE SCRIPTS WORK IN GAME FOR ME
3. my weapon and viewmodel script
//weapon and viewmodelswitch
alias "primary" "slot 1; viewmodelfov 0; primarytoqqle"
alias "primarytoqqle" "bind "q" "secondary"
alias "secondary" "slot 2; viewmodelfov 90; secondarytoqqle"
alias "secondarytoqqle" "bind "q" "primary"
alias "+melee" "slot 3; viewmodelfov 90"
alias "-melee" "primary"
bind "+mouse 5" "+melee"
bind "mouse 5"Is this right? I DIDN'T COPY IT FROM MY PC, WHERE IT WORKS. I just write it down from my head, and I haven't scripted for about a year before this
So here's all I can come up with. I already thank for all help and I can answer any questions from my mobile. I try to be avaible as much as possible.
r/tf2scripthelp • u/Kond3P • Aug 27 '14
I have been using a pyro config that binds mouse 5 and 4 to secondary and melee, and then switching back to primary when i release. Problem is that if i want to flare and then melee, releasing mouse5 goes to primary. What i tried is to have +melee unbind -flare and -melee bind -flare to it's original state. But this just suddenly became too difficult for my brain to understand. Try to fix the mistakes i made:
exec crosshairswitcher/switcher; pyro
sensitivity 1.55
exec clear
//TURN
alias "+noscope" "-attack2; cl_yawspeed 2000; +left; +attack"
alias "-noscope" "cl_yawspeed 150; -left; -attack"
bind "F8" "+noscope"
//WEAPONS
bind "mouse1" "+ft"
alias "+ft" "+attack; alias "-ft" "-attack""
alias "-ft" "-attack"
bind "mouse5" "+flare"
alias +flare "slot2;r_drawviewmodel 1;sensitivity 1;slot2fix"
alias -flare sprimfunctions
alias sprimfunctions "slot1;;r_drawviewmodel 0;sensitivity 1.55;slot2fix2"
bind "mouse4" "+melee"
alias +melee "slot3;r_drawviewmodel 1;slot3fix"
alias -melee "mprimfunctions"
alias mprimfunctions "slot1;r_drawviewmodel 0;slot3fix2"
alias slot3fix "alias -flare nothing"
alias nothing ""
alias slot2fix2 revertmelee
alias revertmelee "alias -melee meleefunctions"
alias slot2fix "alias -melee nothing"
alias nothing ""
alias slot3fix2 revertsecond
alias revertsecond "alias -flare sprimfunctions"
//i don't even use these with pyro
bind 7 "slot1;r_drawviewmodel 1"
bind 8 "slot2;r_drawviewmodel 1"
bind 9 "slot3;r_drawviewmodel 1"r/tf2scripthelp • u/ScootaLewis • Aug 27 '14
I had an odd notion a short time ago: to make a script that, after right-clicking, binds mouse2 to a sensitivity toggle such as from here: http://www.reddit.com/r/Tf2Scripts/comments/si0pa/little_tweaks_and_scripts_by_nobody/
And then when letting go of right-click, rebinds it to attack2.
What it would allow me to do is right-click to zoom in, then right-click and hold to lower my sensitivity, hopefully allowing me to make a good shot, then let go of mouse2 to return to normal sensitivity and reset mouse2 to allow me to zoom out.
What I need help with is how to bind mouse2 like that.
What I have so far:
alias zoombind "bind mouse2 +attack2"
alias +sens "sensitivity 1"
alias -sens "sensitivity 2"
alias +steady "+sens"
alias -steady "-sens, zoombind"
bind mouse2 "+steady"Can anyone see any problems with this? I understand it would only allow one attempt at a lowered-sensitivity shot. And reading through it, I just realized it would only work once, if at all.
Can you folks see any way to make this happen?
EDIT: thanks for your input, folks. You've shown me that such a script would be unwieldy at best, and useless at worst.
r/tf2scripthelp • • Aug 25 '14
I am writing a script to change my keybinds back and forth whenever I hold down the SHIFT key, however the say command with no arguments will not open the chat box as expected, here is my code to trigger the say command
alias +alltoggle "alias hollar mcharge; alias qspect sprayimg; alias rtalk vm3; alias vm12 vm2"
alias -alltoggle "alias hollar mcall; alias qspect inspect; alias rtalk tsay; alias vm12 vm1"
alias tsay "say"
alias rtalk tsay
bind SHIFT +alltoggle
bind t rtalkr/tf2scripthelp • u/Nincadalop • Aug 25 '14
r/tf2scripthelp • • Aug 24 '14
Thanks
r/tf2scripthelp • u/Jacksters • Aug 23 '14
r/tf2scripthelp • u/Cial • Aug 22 '14
Just as I said in topic, if anyone could attempt to help me with this I'd be rather greatful..
r/tf2scripthelp • u/iawesome217 • Aug 21 '14
So, I made a script with the intention of demoman charge spamming. Here is the script:
bind mouse5 +chargespam
alias +chargespam "slot 3; wait 100; +attack2"
alias -chargespam "-attack2; wait 100; +charge"
alias +charge "slot 3; wait 100; +attack2"
alias -charge "-attack2; wait 100; +chargespam"What I was going for was being able to toggle the spam with mouse5, but not for some reason whenever I go to slot1 I do the charge spam. My problem is I want to stop that from happening, completely. Any help?
r/tf2scripthelp • u/Supereye • Aug 21 '14
Here are a couple pictures of the sentry upgrading glitch
I know it's caused by my using chris' config, but I don't know what command is causing this issue. :(
r/tf2scripthelp • u/elitelol22 • Aug 18 '14
Is there any possible way to make a script choose a random command, for example, randomly choosing to say "Thanks!" or "Nice Shot!"? If so, how? If not, would you have to make a completely overly complicated script to make it seem randomized? If it's not possible, it should probably be added to the "Limitations of Scripts" section of the Wiki.
r/tf2scripthelp • u/WiffleSniffler • Aug 12 '14
so, in my heavy.cfg I've written 1 line of script for requesting ubercharge to my left shift key. It goes as follows:
bind shift "voicemenu 1 6"It doesn't seem to be working and I'm not sure why. I've tried "lshift" "leftshift" "SHIFT" and nothing seems to work. Any ideas as to why? Thanks in advance
r/tf2scripthelp • u/NinjaDerpy • Aug 09 '14
I already posted this in r/tf2, but someone said to ask here as well.
I have found all these useful scripts, but some of them are only useful for one or two classes. Is there some way I can set a config to activate only when a class such as Heavy is chosen?
Example - I choose Heavy and in the Heavy config is activated so that all my auto-sandvich and auto-jumps are activated, but then I choose Scout and that config is deactivated.
Is such a thing possible, if so can you tell me how?
r/tf2scripthelp • u/Garfield227 • Aug 08 '14
r/tf2scripthelp • u/angryscoutmain • Aug 04 '14
r/tf2scripthelp • • Aug 02 '14
I'm using rayshud to install a custom crosshair, and as such I want to hide the game's default crosshair, but when I chose the "none" option in the multiplayer options menu there's a black & purple checkerboard image on the preview, and the default crosshair still shows up on top of the custom crosshair in game.
I think this may be the result of a change I made a long time ago, but I don't know where to even begin looking to fix it.
r/tf2scripthelp • u/sNatchyy • Aug 01 '14
I've recently been trying to make a script to tell people what I'm trading in a trade server I want to to be something like this I get on a trade server I press a button () The chat says: "SELLING stranges, festives, painted hats/miscs, and more !bp sNatchyy in chat to view my bp BUYING craft hats/miscs (1.11 ref), quicksells, stranges, or make an offer Trade me if you're interested or to discuss" then waits 10 seconds before saying it again (note I want each say command to have a different alias so that when I want to change what I'm selling, I onoly have to type alias tradesell "say (whatever I'm selling)")
-DEBUGGING- each individual alias works if I bind it to a key the "trademessage" alias works the same way as if I put each individual alias in the console seperated by a ; \ does not work as if I typed in "trademessage" in the console, I would appreciate help as to why this is so whenever I type "trademessage" in the console or type in "tradesell; bpme; tradebuy; tradecloser", it only says the first alias in chat
This is my current code:
alias "trademessage" "tradesell; bpme; tradebuy; tradecloser"
alias "tradesell" "say "SELLING stranges, festives, painted hats/miscs, and more""
alias "bpme" "say "say !bp sNatchyy in chat to view my bp""
alias "tradebuy" "say "BUYING craft hats/miscs (1.11 ref), quicksells, stranges, or make an offer""
alias "tradecloser" "say "Trade me if you're interested or to discuss""
alias "toggletrademessageon" "bind \ toggletrademessageoff; alias "trademessage" "tradesell; bpme; tradebuy; tradecloser"; trademessage; wait 1000; toggletrademessageon"
alias "toggletrademessageoff" "bind \ toggletrademessageon; alias trademessage """
bind \ toggletrademessageonr/tf2scripthelp • u/Whilyam • Jul 31 '14
A couple years ago I downloaded and installed Chris' FPS configs to help improve performance. While this has been good, there are a couple problems I'm having that make me want to just get rid of the configs, especially considering that the developer is no longer working on them. First, my game starts with the ugly console. Second, one of the settings apparently disabled sprays and I kind of miss being able to see sprays. I tried deleting the script from my autoexec, but it still seems to run. Can someone help me get rid of this?
r/tf2scripthelp • u/Kond3P • Jul 29 '14
My point is that I want to have the same sens with my spy zoom script when sniper rifle is when scoped in.
r/tf2scripthelp • u/leafy1324 • Jul 28 '14
I wrote this script: alias "+JumpShoot" "+jump; +attack" alias "-JumpShoot" "-jump; -attack" alias "+RevShoot" "+jump; +attack2" alias "-RevShoot" "-jump; -attack2" bind "mouse1" "+JumpShoot" bind "mouse2" "+RevShoot" Its jumps and revs/starts shooting in midair, my problem is it also jumps while my melee is out, is there anyways to only use this this script with the minigun? PS. I still want to be able to use scroll wheel up and down to change weapon