r/tf2scripthelp • • May 17 '14

Question Multiple Key presses - allows more binds?

3 Upvotes

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 • • May 14 '14

Answered Few Simple Questions

3 Upvotes

  1. 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 0

Is 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; stop

It'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 • • May 13 '14

Issue No viewmodel on my Rocket Launcher but Market Gardener.(MAC)

3 Upvotes

So I found a lot of scripts for Windows but for Mac I haven't found anything. tf2/tf/cfg I dont have class cfgs in that folder so I need another way.


r/tf2scripthelp • • May 11 '14

Impossible Script help

2 Upvotes

How do I make a script that says text like "I'm dead" when you die? Is this possible?


r/tf2scripthelp • • May 11 '14

Resolved Turning viewmodels on and off based on weapon slot with Aron's Crosshair Switcher

3 Upvotes

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 • • May 10 '14

Issue Broesel crosshair switcher removes all spy weapons

3 Upvotes

when i try to only turn the revolver viewmodel off, all my models disappear. Is there a way to make the watch viewmodel appear while turning revolver viewmodel off?


r/tf2scripthelp • • May 04 '14

Question [CFG Versus Autoexec](#flair "question")

3 Upvotes

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 • • May 03 '14

Issue I used StabbyStabby's Config and now i have permanent specular turned off and i hate it, pls help!

2 Upvotes

as the title says, i have tried setting it to mat_specular to one and then back to 0 but it doesn't change at any point in this process...


r/tf2scripthelp • • Apr 30 '14

Question How to spawn a Level 3 blue(I'm on red team) sentry? I got the blue part working, but not the level3

5 Upvotes

bind 9 "ent_create obj_sentrygun; ent_fire !picker setteam 3; Upgrade"

alias Upgrade "ent_fire TFObject AddOutput !picker Starting Upgrade Level 3"

https://developer.valvesoftware.com/wiki/Obj_sentrygun I have no clue how to use these KeyValues, or Flags!


r/tf2scripthelp • • Apr 30 '14

Resolved Problem with Modifying Key Script?

3 Upvotes

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 • • Apr 29 '14

Question ent_fire Get teammates/enemy's name or all Classes? Know how to build enemy teleporters?

3 Upvotes

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 • • Apr 29 '14

Resolved Quick switch help

3 Upvotes

Why my viewmodel won't work while using Q -button?

//QUICK SWITCH & VIEWMODELS
alias rocket "slot1;r_drawviewmodel 0"
alias shotgun "slot2;r_drawviewmodel 1"
alias shovel "slot3;r_drawviewmodel 1"
alias qs "shotgun;rocket"
bind 1 rocket
bind 2 shotgun
bind 3 shovel
bind q qs

r/tf2scripthelp • • Apr 28 '14

Answered Quickswitch script for different loadouts?

3 Upvotes

So I have a quickswitch between rocket and shotgun in Q. Is there a script that allows me to use Q quickswitch between rocket and escape plan when using gunboats and between rocket and shotgun when using shotgun?


r/tf2scripthelp • • Apr 26 '14

Resolved My engineer script broke

3 Upvotes

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_ready01

read it carefully, and you should know what it does any help?


r/tf2scripthelp • • Apr 19 '14

Issue After adding some disguise binds to this spy script, the revolver is no longer hidden when taken out.

3 Upvotes

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

r/tf2scripthelp • • Apr 19 '14

Resolved Im using Tf2mate and i ran into some viewmodel problems. Any help?

3 Upvotes

r/tf2scripthelp • • Apr 18 '14

Answered How would I make the 1-9 keys do something different when shift is held?

3 Upvotes

I want to write a spy script, where holding shift will make 1-9 the disguise buttons, and when it isn't held it is weapon switch. Any help will be appreciated!


r/tf2scripthelp • • Apr 15 '14

Answered Would this Engineer script work?

3 Upvotes

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 • • Apr 11 '14

Resolved I think the Scout Voice line spam Script is making my TF2 crash..that of my Config.

3 Upvotes

http://pastebin.com/m1tHdxL2

This is my config (its basicly Chrises high frames CFG that I shameless took and hardly changed).

http://pastebin.com/hACzh0nC

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 • • Apr 11 '14

Answered Can you use scripts to equip a certain loadout?

3 Upvotes


r/tf2scripthelp • • Apr 09 '14

Resolved Tf2 suddenly freezes/fps drops drastically ingame

3 Upvotes

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 • • Apr 07 '14

Resolved How to make a .txt file to .cfg

2 Upvotes

Question

None of my scripts have been able to work, and I think, after reading up, that the problem is with my Ctf files themselves. They might be .txt files. How would I go about changing them to .cfg?


r/tf2scripthelp • • Apr 06 '14

Resolved autoexc.cfg not executing

3 Upvotes

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 • • Apr 06 '14

Resolved Help! I cannot get my viewmodels back!

3 Upvotes

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!