r/tf2scripthelp • u/Krystallios • May 18 '14
r/tf2scripthelp • u/Ryvm • May 17 '14
Question Multiple Key presses - allows more binds?
Basically, I'd like a script which, when shift is held down, "a" and "d" both turn the view left (for "a") and right (for "d") as well as strafing.
I'd like, if possible of course for you to explain how it works? The example on the wiki for the medic didn't work for me, so I'm lost at what to do!
Thanks in advance!
r/tf2scripthelp • u/jeffspins • May 14 '14
Answered Few Simple Questions
I have two keys that are respectively
cl_first_person_uses_world_model 1; tf_taunt_first_person 1
and
cl_first_person_uses_world_model 0; tf_taunt_first_person 0Is there a way to converge them both into one key? Meaning that I don't need 2 keys to turn it on and off, I can just use one key to control on/off.
2. I don't have many fancy scripts, but I often trade and I don't really have enough keys for my binds. I understand that using aliases can theoretically give me an infinite amount of binds, but how do I do so? Say, I want to bindsay different stuff to keys in different situations (trading/playing for instance), how do I do so?
3. Right now I have my ' key bound as
hud_reloadscheme; record fix; stopIt's my "if the game is acting stupid hit this" key, but what else can I add to this? I don't use any custom HUDs.
Thanks!
r/tf2scripthelp • u/Lostwoodswarrior • May 13 '14
Issue No viewmodel on my Rocket Launcher but Market Gardener.(MAC)
r/tf2scripthelp • u/AnArmedPenguin • May 11 '14
Resolved Turning viewmodels on and off based on weapon slot with Aron's Crosshair Switcher
First off, here is the program I am talking about. Up until now, I have used a BindToggle command to turn my viewmodels on and off, which I usually did between classes and sometimes between melee and primary/secondary. Since I have started using the ambassador, this has become a hassle and has confused me a few times as I switch between primary and melee in crucial moments.
I want to preserve the crosshairs that the program provides while including a setting that turns viewmodels off for all weapons except melee, but this seems very difficult to do with my inability to find the crosshairs that the program uses by default and to change the viewmodel settings of those crosshairs within the program. Can someone help me do this manually? Thanks.
Side note, I switch between scroll wheel, q, and using numbers to switch weapons. Because of this I can't just make a bind for each of the numbers.
EDIT: I've found a solution.
r/tf2scripthelp • u/captainbligh0101 • May 10 '14
Issue Broesel crosshair switcher removes all spy weapons
r/tf2scripthelp • u/platypus_dissaproves • May 04 '14
Question [CFG Versus Autoexec](#flair "question")
I have a working autoexec, but I'm always afraid to put binds in to it, because I don't really understand where they are supposed to go, or if they are going to mess something else up. I have a custom folder, and I have my hud, as well as my autoexec doc in there too. But I also have a config folder with a file named cfg in it. This has all of my binds as well as a lot of other stuff. Does making a bind in autexec override the other one? What is the difference between the two? If I downloaded a cfg for something, which folder would I put it in?
r/tf2scripthelp • u/weps1330 • Apr 30 '14
Resolved Problem with Modifying Key Script?
I'm working on a fairly simple script for my spy that would make pressing "7" disguise me as a demoman unless shift is held. If shift is held, I want pressing 7 to change my loadout to "itempreset 0".
I took the the modifying key script template from the commonscripts section of the wiki and modified it to look like this:
//Loadout Key Modifier (Shift)//
alias "loadout0" "load_itempreset 0"
alias "disguise" "disguise 4 -1"
alias "+modify" "alias disguise/bind loadout0"
alias "-modify" "alias disguise/bind disguise"
bind "7" "disguise/bind"
bind "SHIFT" "+modify"As it stands, I can use "7" to disguise but I can't seem to get that shift key to actually modify the command in order to change the itempreset to 0.
Any advice on what I'm doing wrong? Thanks in advance.
r/tf2scripthelp • u/GuKingOfHeart • Apr 29 '14
Question ent_fire Get teammates/enemy's name or all Classes? Know how to build enemy teleporters?
https://developer.valvesoftware.com/wiki/Ent_fire
I don't get how the npc_, bob_the_soldier, counter_combat, etc works. I know how to use !picker.
I was expirementing in a MVM game I hosted to see what I could do. So, for starters. Can you teach me how to Ignite all scouts? Then, ignite demoknights. Lastly, ignite just a single bot, without using !picker
r/tf2scripthelp • u/Jopiii • Apr 28 '14
Answered Quickswitch script for different loadouts?
r/tf2scripthelp • u/[deleted] • Apr 26 '14
Resolved My engineer script broke
So I tried to add something to my script, but it completely broke for some reason here's the script:
//Advanced Engineer Script //A combination crosshair/viewmodel switcher, insta-build/destroy script, and sentry-jumping script //This file should be saved as "engineer.cfg" so that it only executes when you play Engineer //Note: This is heavily modified and contains little unedited content
bind mouse2 "+rightclick"
alias +rightclick "+attack2"
alias -rightclick "-attack2"
bind backspace "say Every 60 seconds in Africa, a minute passes. Together we can stop this. Please spread the word."
bind 6 "load_itempreset 0"
bind 7 "load_itempreset 1"
bind 8 "load_itempreset 2"
bind 9 "load_itempreset 3"
//Unbinds the Build and Destruct PDAs, which can mess up the script and are no longer needed anyway
unbind 4
unbind 5
//The various keybindings; F1 builds/destroys a sentry, F2 builds/destroys a dispenser, F3 builds/destroys a teleporter entrance, F4 builds/destroys a teleporter exit, and T begins the sentry-jumping script. Holding Shift will allow you to use the voicemenus, spray your decal, and inspect loadouts again; releasing Shift will return to the bindings you see here. You can edit these keybinds, but you'll have to edit the "undo script" at the bottom as well.
bind f1 "sent"
bind f2 "disp"
bind f3 "tele1"
bind f4 "tele2"
bind t "jumpscript"
bind shift "+oldfunc"
alias "primary" "r_drawviewmodel 0; slot1; bind MWHEELUP destroy; bind MWHEELDOWN secondary"
alias "secondary" "r_drawviewmodel 1; slot2; bind MWHEELUP primary; bind MWHEELDOWN melee"
alias "melee" "r_drawviewmodel 1; slot3; bind MWHEELUP secondary; bind MWHEELDOWN build"
alias "build" "r_drawviewmodel 1; slot4; bind MWHEELUP melee; bind MWHEELDOWN destroy"
alias "destroy" "r_drawviewmodel 1; slot5; bind MWHEELUP build; bind MWHEELDOWN primary"
//The "hold shift" script; there are some binds involved here so if you have edited any other binds, be sure to edit these as well
alias +oldfunc "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3; bind f inspect; bind t spray"
alias -oldfunc "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3; bind f inspect; bind t jumpscript"
alias spray "impulse 201"
alias sent "destroy 2 0; build 2 0"
alias disp "destroy 0 0; build 0 0; say_team Building/Destroying a Dispenser!"
alias tele1 "destroy 1 0; build 1 0; say_team Building/Destroying a Teleporter Entrance!"
alias tele2 "destroy 1 1; build 1 1; say_team Building/Destroying a Teleporter Exit!"
//The sentry-jumping script; press T then press M1 then M2 in quick succession when near your sentry with your crosshair pointed at the ground. If you press T accidentally or want to quit the script, just press and release M2. You will naturally need the Wrangler in your loadout and a level 3 sentry in order for this to work, as well as a wrench that isn't the Eureka Effect.
alias jumpscript "bind mouse1 +cjump; bind mouse2 +grab; slot2; "
alias +cjump "+jump; +duck; +attack2"
alias -cjump "-attack2; -jump"
alias +grab "slot3; +attack2; crosscombo3; bind q qswitch2"
alias -grab "-attack2; -duck; bind mouse1 +attack; bind mouse2 +rightclick"
//A confirmation that the script successfully executed.
echo
echo -------------------------
echo Engineer script executed!
echo -------------------------
echo
play vo/engineer_mvm_say_ready01read it carefully, and you should know what it does any help?
r/tf2scripthelp • u/TheLightSeba • Apr 19 '14
Issue After adding some disguise binds to this spy script, the revolver is no longer hidden when taken out.
Hey guys, I recently wrote the disguise part of this script, and since that, it no longer hides the spy's revolver viewmodel. I can't seem to get it to work.
bind mouse1 vmon
fov_desired 90
//knife
alias vmon "bind mouse1 +viewmodelon"
alias +viewmodelon "+attack;r_drawviewmodel 1;spec_next"
alias -viewmodelon "-attack;r_drawviewmodel 1"
alias +equip3 ";vmon;slot3;sensitivity 3;cl_autoreload 1;m_yaw .0220000000;viewmodel_fov 80;r_drawviewmodel 1;alias wpn slot3"
alias -equip3 "fov_desired 90;r_drawviewmodel 1"
bind "3" +equip3
//gun
alias vmoff "bind mouse1 +viewmodeloff"
alias +viewmodeloff "+attack;dotxhairtype;dotxhaircolor;r_drawviewmodel 0;spec_next"
alias -viewmodeloff "-attack;dotxhairtype;dotxhaircolor;r_drawviewmodel 0"
alias +equip1 "slot1;sensitivity 1;viewmodel_fov 80"
alias -equip1 "sensitivity 3;r_drawviewmodel 0;vmoff"
bind "1" +equip1
//watch
bind "mouse2" "+spycustomattack2"
alias +spycustomattack2 ";+attack2;r_drawviewmodel 1;spec_prev"
alias -spycustomattack2 "-attack2;r_drawviewmodel 1"
//disguise
bind 1 esco
bind 2 esol
bind 3 epyr
bind 4 edem
bind 5 ehwg
bind 6 eeng
bind 7 emed
bind 8 esni
bind 9 espy
bind shift +disg
alias +disg "alias esco disguise 1 -1;alias esol disguise 3 -1;alias epyr disguise 7 -1;alias edem disguise 4 -1;alias ehwg disguise 6 -1;alias eeng disguise 9 -1;alias emed disguise 5 -1;alias esni disguise 2 -1;alias espy disguise 8 -1"
alias -disg "alias esco slot1;alias esol slot2;alias epyr slot3;alias edem slot4;alias ehwg slot5;alias eeng slot6;alias emed slot7;alias esni slot8;alias espy slot9"
-disgr/tf2scripthelp • u/Oplivion • Apr 19 '14
Resolved Im using Tf2mate and i ran into some viewmodel problems. Any help?
r/tf2scripthelp • u/TheLightSeba • Apr 18 '14
Answered How would I make the 1-9 keys do something different when shift is held?
r/tf2scripthelp • u/ToxicFeline • Apr 15 '14
Answered Would this Engineer script work?
Hi, first post here. So like that title says, I'm wondering if this bind would work.
bind "q" "destroy 2 0; build 2 0; voice_menu_3 7"
What this is supposed to do is destroy a sentry, if there's one build, build a sentry, and say the voice command Good Job! to mask the sound of the Engineer saying "SENTRY GOING UP!!!"
Thanks! I don't know how to make the script look like a code, sorry ;c
r/tf2scripthelp • u/[deleted] • Apr 11 '14
Resolved I think the Scout Voice line spam Script is making my TF2 crash..that of my Config.
This is my config (its basicly Chrises high frames CFG that I shameless took and hardly changed).
This is the Scout Voice Line spam that I have been trying to use in my Scout cfg, when ever I start playing scout and trying to move around I crash and thats the end of me playing scout.
I don't know whats happening all I can tell you is that my TF2 grinds to a halt and I'm stuck with an image of what I was very last doing like the games just crashes the instant that I start playing scout and moving around.
EDIT
This was where I originally got the VL spam Script from.
http://www.reddit.com/r/Tf2Scripts/comments/2169gn/can_someone_make_it_so_that_when_i_press_m1_or/
r/tf2scripthelp • u/Swift789 • Apr 11 '14
Answered Can you use scripts to equip a certain loadout?
r/tf2scripthelp • u/captainbligh0101 • Apr 09 '14
Resolved Tf2 suddenly freezes/fps drops drastically ingame
I have recently started to use chris's configs. It worked surprisingly well, raising my fps to about 100. Sometimes the fpa would suddenly drop to about 20 and I could feel the lag happening. Some times tf2 would freeze for a few seconds, this also happens when I open settings. I have very good internet connection and low ping, so it wont be the internet. I was wondering what could have caused it. I might have slightlymodified the config by removing the showfps part as it caused my screen to flash white continually, and whenever I boot up tf2 and enter the main menu tf2 would black out for a few seconds and the character on the menu would change. Can anyone help me?
EDIT: sorry for typo, I am on mobile
r/tf2scripthelp • u/captainbligh0101 • Apr 06 '14
Resolved autoexc.cfg not executing
I have had this issue for a long time. My autoexc will not work. It is located in Steam/SteamApps/common/tf2/tf/custom/MahScripts/ So i wrote in my autoexc to bind v to toggle autoreload, (as everytime i close tf2 the bind seems to reset) but It did not work. Also I tried using chris's configs by coping the contents of the maxframes file into my autoexc.cfg, But the ragdolls won't disappear. So i was wondering, would it be because the autoexc is in a different location?
r/tf2scripthelp • u/captainbligh0101 • Apr 06 '14
Resolved Help! I cannot get my viewmodels back!
I was trying to turn viewmodels off by setting the viewmodel fov to 0. then i found out an alternate script to remove viewmodels as I needed the melee viewmodel. I tried turning the viewmodel fov back to 90, and it show in the console that it IS 90. But i get no viewmodel for melee or secondary. Please help me!
r/tf2scripthelp • u/[deleted] • Apr 04 '14
Issue Im running a max fps script and was wondering if there was something i could change to make them shiny.
r/tf2scripthelp • u/throwaway111011100 • Mar 04 '14
Resolved Don't use tags in the title, your post will be tagged automatically after you submit. Delete this message
Hi. I was redirected here from /r/NewToTf2. I'm still not sure if this is the right place to be posting but basically im looking for some help. I more than often now play without viewmodels, and wanted to start using crosshair scripts to be able to tell different slots apart. Basically I'm just looking for a way for my primary slot to have a certain crosshair of a certain color, my secondary to have a different crosshair of a different color, and my melee to have another varying crosshair of another color, and for those to change despite whatever method i use to change weapon (lastinv, slots 1-3, mousewheel, etc). Is this at all possible through scripting? If I'm posting in the wrong place or something doesn't make sense please redirect me. Thank you in advance.
EDIT so i did the dumbest thing i could possibly do and didn't delete the message in the post title feel free to shame me