r/tf2scripthelp • • Dec 09 '16

Question How to change spy disguise kit binds?

2 Upvotes

When playing spy, you have to open disguise kit and press 1-9 to choose your disguise for spy. Is it possible to change the keys instead of 1-9 to something else like, E or R? Because I want to make it easier to pick my disguise. I know there is a concise menu but I don't want to have to press 2 buttons to choose my disguise. Thanks :]


r/tf2scripthelp • • Oct 27 '16

Question Just created my first trade server, need help installing backpack.tf plugin.

2 Upvotes

I've added my site in the developer page and I have the plugins in the server files; the problem is going in my sourcemod.cfg file and not seeing the config file for the plugin in it. It should be there, or I'm doing something wrong.

Anyone had the same problem or that can help? Thank you.


r/tf2scripthelp • • Oct 01 '16

Issue My scripts aren't working.

2 Upvotes

As you can gather by the title, my scripts aren't working, I don't see what's wrong, here's a link if you want to look for yourself.

https://www.mediafire.com/?b3mimmuj1vzr8rl


r/tf2scripthelp • • Sep 24 '16

Resolved This "I have ubercharge" bind is not working

2 Upvotes

I have this bind in my medic.cfg but I can't get it to work:

bind "b" "say_team I have ubercharge !"

I have "b" as last disguise in my default.cfg so it should have been working:

 

exec default
bind MOUSE2 "+attack2; say_team *******UBERCHARGE ACTIVATED! ATAAAACCCKKK!!!*********; -attack2"
bind "b" "say_team ~~~~~~I'm with my ubercharge at 100%. Get ready to push !!!! ~~~~~~";

 

 

I have mouse 2 as "uberchrge popped, attack !!!" but it doesn't sound well with vaccinator (too many messages). For you tf2 medics: do you think i's better to bind "uber popped" to other key other than MOUSE2 ?

EDIT: I figured out what was wrong. This topic can be locked.

Thanks.


r/tf2scripthelp • • Sep 08 '16

Question Need help with my class specific cfg

2 Upvotes

Hey guys, so I've got a new pc and so I had to install tf2 on it again. I saved all my previous configs to a external HD and placed them back on my new pc after the installation was done. BUT for some reason my class specific viewmodels aren't working.

I have a different cfg file for every class so I can select which weapon slot will have a viewmodel and which one won't for each class individually. It was working before on my old pc, but not on my new one. Could anyone help me out? Here's some of my cfg:

Sniper.cfg:

exec clear

exec normalbinds.cfg

sensitivity "1.8"


bind 1 "slot1; r_drawviewmodel 0"
bind 2 "slot2; r_drawviewmodel 1"
bind 3 "slot3; r_drawviewmodel 1"


unbind "mouse4"
unbind "mouse5"
bind "mouse2" +attack2

Normalbinds.cfg:

unbindall

"-forward"

bind "0" "slot10"

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

bind "CTRL" "+duck"

bind "d" "+moveright"

bind "e" "Voicemenu 0 0"

bind "g" "+taunt"

bind "j" "cl_trigger_first_notification"

bind "k" "cl_decline_first_notification"

bind "l" "dropitem"

bind "m" "open_charinfo_direct"

bind "c" "voice_menu_3"

bind "f" "+use_action_slot_item"

bind "p" "pause"

bind "q" "lastinv"

bind "r" "+reload"

bind "s" "+back"

bind "t" "impulse 201"

bind "u" "say_team"

bind "z" "voice_menu_1"

bind "w" "+forward"

bind "y" "say"

bind "`" "toggleconsole"

bind "," "changeclass"

bind "." "changeteam"

bind "v" "disguiseteam"

bind "SPACE" "+jump"

bind "TAB" "+showscores"

bind "ESCAPE" "cancelselect"

bind "CTRL" "+voicerecord"

bind "F3" "askconnect_accept"

bind "F6" "screenshot"

bind "MOUSE1" "+attack"

bind "MOUSE2" "+attack2"

bind "MWHEELUP" "invprev"

bind "MWHEELDOWN" "invnext"

bind "ENTER" "say"

bind "i" "+inspect"

bind "b" "+use_action_slot_item"

bind ";" "show_quest_log"

I also have a autoexec, do I need to to add "exec specificclass.cfg" in there aswell so they get used or something?


r/tf2scripthelp • • Jul 09 '16

Question a script that lets you cycle between normal viewmodel, mini viewmodel, and no viewmodel

2 Upvotes

basically, a bind that lets me cycle through r_drawviewmodel 1, tf_use_min_viewmodels 1, r_drawviewmodel 0 then back around again.


r/tf2scripthelp • • Jul 05 '16

Question Need a script for spy

2 Upvotes

  1. On Mouse Wheel up, it should bring gun

  2. On Mouse Wheel Down, it should bring Knife

  3. Shift Key for Sapper.

Can anyone give me this script ?


r/tf2scripthelp • • Jul 02 '16

Timing of different methods of running scripts?

2 Upvotes

I'm trying to make a randomizing script using the main menu, and I was wondering if the following methods of automatically running scripts execute at different stages during the games loading time:

+exec example.cfg

autoexec.cfg

config.cfg

Thanks in advance.


r/tf2scripthelp • • Jun 30 '16

Resolved Spy Script: Toggling between "fov on" and "fov off" modes

2 Upvotes

I tried making a script where I could press one button "mouse3" which would toggle between two modes. In the first mode selecting the primary weapon decreases fov and selecting other weapons increases fov. In the second mode the fov remains constant regardless of which weapon is selected. However the script didn't work, and I haven't really made scripts before so I came here to ask for help.

This is what I made:

alias zoom "fovsmall"
alias fovsmall "pickabassador; picksapper; pickknife; pickdisguisekit; alias zoom fovbig"
alias fovbig "defaultrevolver; defaultsapper; defaultknife; defaultdisguisekit; alias zoom fovsmall"
bind "mouse3" "zoom"

alias pickambassador "bind 1 slot1; fov_desired 75"
alias picksapper "bind 2 slot2; fov_desired 90"
alias pickknife "bind 3 slot3; fov_desired 90"
alias pickdisguisekit "bind 4 slot4; fov_desired 90"

alias defaultrevolver "bind 1 slot1; fov_desired 90"
alias defaultsapper "bind 2 slot2; fov_desired 90"
alias defaultknife "bind 3 slot3; fov_desired 90"
alias defaultdisguisekit "bind 4; fov_desired 90"

r/tf2scripthelp • • Jun 25 '16

Question Demoman stickybomb launcher charge up sound

2 Upvotes

Is there any commands to disable the demoman stickybomb launcher charge up sound? I think I'd be better off just looking at the bar than listen for that wooooshhh sound for like half the game.


r/tf2scripthelp • • Jun 24 '16

Question Any way to change fonts in the menu?

2 Upvotes

Hey so I'm playing with 1280x720 resolution and for some reason the smaller text in the menus, like weapon descriptions get weird with that resolution to the point where they become hard to read (some lines on some letters are just missing), so I was wondering if it was possible to change the font to something that doesn't have this bug?


r/tf2scripthelp • • Jun 18 '16

How would I create a script that alerts teammates when I'm at 100% Uber?

2 Upvotes

title, I'd like to make a script that says a small "got full uber" in team chat when I get 100% uber.

unsure how to code that in my medic.cfg


r/tf2scripthelp • • Jun 17 '16

Issue Incrementvar maxvalue first?

2 Upvotes

I'm trying to build a simple script to toggle all communication off and on in CS:GO. In previous Source games, chat could be toggled with hud_saytext_time, but that command does not exist in GO unfortunately. There is another command that does what I want, but incrementvar is apparently not going to work with it because the value I want it to use first is the maxvalue.

Here's the script so far:

bind "[" "incrementvar cl_mute_all_but_friends_and_party 1 0 1; incrementvar voice_scale 0 .3 .3"

voice_scale works just fine, but the mute all won't cycle back to 0, it just stays at 1.


r/tf2scripthelp • • Jun 15 '16

Question Doubts on Comanglia'S CONFIG

2 Upvotes

I have added comanglia's config in my tf2 and I have to say? it surprised me a lot ! The game runs smoothly (I didn't know how bad my fps was ) and I don't miss many things in-game that are now gone .It just became something I will recommend to anyone. I have added for personal preference:

  • -dxlevel 81 -full -w WIDTH -h HEIGHT -console -novid "

  • Faces config on

  • mat_phong 1 & mat_bumpmap 1, for australium

However I have questions:

  • For instance: How do I revert my game back to the prior state ? I removed the autoexec.cfg from steamapps\common\Team Fortress 2\tf\custom\mycfg\cfg and did "exec config_default", I have also done the - dxlevel 98 to launch options , but the models are not still "basic" What should I do in order to have the game in "graphic mode" again?

 

  • Then : Is there a way to run this "performance mode" and "graphic mode" easily ? I mean switching them back and forth with the least effort possible ?

 

  • My sister plays TF2 on the very same notebook. Is there entire the config made to all steam users ? If not, which ones can be customized for each player? Would there be a need for individual .cfg scripts in order to customize our preferences or you don't recommend we do that.

 

  • The only one thing I miss is skins ( after playing my first MvM tour I've won an Aussie Black Box last week). Aussie looks ugly. Is there a way to run "performance mode" ( aka Comanglia ) and have good looking skins/australium ? I know I'd have to run the game in Directx 9... Is the FPS drop huge ? Tough decision.

Reference:

   https://dl.dropboxusercontent.com/u/92187841/stability.cfg

   http://www.teamfortress.tv/25328/comanglia-s-config-fps-guide

r/tf2scripthelp • • May 24 '16

Issue No accidental upward double jump script

2 Upvotes

A year ago I requested a script that prevents accidental straight up double jumps as scout. I tried to make a modification to it that allows it when holding crouch.

  1. I can't make it work

  2. The original script itself has a problem: When I hold my jump crouch button and crouch button at the same time, and then release crouch, it jumps.

here is the script: http://pastebin.com/HBhqFa4m


r/tf2scripthelp • • May 21 '16

Question Sublime Text syntax highlighter?

2 Upvotes

Can anyone make me a syntax for Sublime Text or is there a preexisting one? I use Notepad++ but I would really like to switch to Sublime but the syntax is really hard to understand.


r/tf2scripthelp • • May 19 '16

Resolved Need Help with an Engineer Script

2 Upvotes

Hey, just grabbed a script off the web. My goal was to hide the viewmodel for my shotgun and show everything else, as well as set up binds for placing buildings. The issue I have is whenever I place a building something weird happens. On my avatar is shows me with my wrench out but the viewmodel doesn't show up like it should. And when I scroll up, I take out the wrench again this time with the viewmodel. Its as if it has a second slot for wrench or something, not sure what to do.

bind 1 pri
bind 2 sec
bind 3 mel
bind 4 dis
bind 5 eng
bind q switcher
bind mwheelup s_u
bind mwheeldown s_d
bind mouse1 +s_attack
bind mouse2 +attack2

//building

alias buildsentry "build 2 0; say_team Building Sentry"
bind F9 buildsentry
alias builddispenser "build 0 0; say_team Building Dispenser"
bind F10 builddispenser
alias buildtele1 "build 1 0"
bind F11 buildtele1
alias buildtele2 "build 1 1; say_team Building Tele Exit"
bind F12 buildtele2

//text binds
bind KP_END "say_team I'm dead, please watch my buildings"
bind KP_DOWNARROW "say Are we spamming binds now?"
bind KP_PGDN "say Sometimes I can't sleep at night. Then I remember how good I am at pregame."

alias pri_mode "r_drawviewmodel 0"
alias sec_mode "r_drawviewmodel 1"
alias mel_mode "r_drawviewmodel 1"

alias +pri_attack "+attack;r_drawviewmodel 0;spec_next"
alias -pri_attack "-attack;r_drawviewmodel 0" 
alias +sec_attack "+attack;r_drawviewmodel 1;spec_next"
alias -sec_attack "-attack;r_drawviewmodel 1" 
alias +mel_attack "+attack;r_drawviewmodel 1;spec_next"
alias -mel_attack "-attack;r_drawviewmodel 1"

alias prima "slot1; pri_mode; alias +s_attack +pri_attack; alias -s_attack -pri_attack"

alias pri_sec "prima; alias switcher sec_pri; alias pri prima; alias sec sec_pri; alias mel mel_pri; alias dis pda_pri_sec; alias eng pda2_pri_sec; alias s_u mel_pri; alias s_d sec_pri"
alias pri_mel "prima; alias switcher mel_pri; alias pri prima; alias sec sec_pri; alias mel mel_pri; alias dis pda_pri_mel; alias eng pda2_pri_mel; alias s_u mel_pri; alias s_d sec_pri"

alias secon "slot2; sec_mode; alias +s_attack +sec_attack; alias -s_attack -sec_attack"

alias sec_pri "secon; alias switcher pri_sec; alias pri pri_sec; alias sec secon; alias mel mel_sec; alias dis pda_sec_pri; alias eng pda2_sec_pri; alias s_u pri_sec; alias s_d mel_sec"
alias sec_mel "secon; alias switcher mel_sec; alias pri pri_sec; alias sec secon; alias mel mel_sec; alias dis pda_sec_mel; alias eng pda2_sec_mel; alias s_u pri_sec; alias s_d mel_sec"

alias melee "slot3; mel_mode; alias +s_attack +mel_attack; alias -s_attack -mel_attack"

alias mel_pri "melee; alias switcher pri_mel; alias pri pri_mel; alias sec sec_mel; alias mel melee; alias dis pda_mel_pri; alias eng pda2_mel_pri; alias s_u sec_mel; alias s_d pri_mel"
alias mel_sec "melee; alias switcher sec_mel; alias pri pri_mel; alias sec sec_mel; alias mel melee; alias dis pda_mel_sec; alias eng pda2_mel_sec; alias s_u sec_mel; alias s_d pri_mel"

alias pda   "slot4"

alias pda_pri_sec "pda; alias switcher pri_sec"
alias pda_pri_mel "pda; alias switcher pri_mel"
alias pda_sec_pri "pda; alias switcher sec_pri"
alias pda_sec_mel "pda; alias switcher sec_mel"
alias pda_mel_pri "pda; alias switcher mel_pri"
alias pda_mel_sec "pda; alias switcher mel_sec"

alias pda2  "slot5"

alias pda2_pri_sec "pda2; alias switcher pri_sec"
alias pda2_pri_mel "pda2; alias switcher pri_mel"
alias pda2_sec_pri "pda2; alias switcher sec_pri"
alias pda2_sec_mel "pda2; alias switcher sec_mel"
alias pda2_mel_pri "pda2; alias switcher mel_pri"
alias pda2_mel_sec "pda2; alias switcher mel_sec"

pri_sec

r/tf2scripthelp • • Apr 07 '16

Question Script to loop a command?

2 Upvotes

I'm trying to make a script that has a loop inside. When I press "w", I want to move forward and I want "+moveright" to be spammed as quickly as possible. I know this involves the wait command, but let's just assume wait is enabled. Here is the script I've built so far:

// speed strafe
bind w +speedstrafe
alias +speedstrafe 	"+forward; +moveright; wait 20; -moveright; speedstrafe2"
alias speedstrafe2 +speedstrafe
alias -speedstrafe	"-forward; -moveright"

As it stands, when I press "w", I move forward and I move right. But it never stops. When I stop pressing "w", I continue moving forward and moving right. Executing -forward and -moveright in console do nothing. I have to remove the script from my .cfg and re-exec it to get it to stop, outside of rebooting the game. Help?


r/tf2scripthelp • • Jan 11 '16

Question As a dead engie, is it possible to switch directly to spectating your buildings without having to switch through all of your team-mates/objective viewpoints?

2 Upvotes

This is mainly related to "troll", or delaying engie loadouts especially those involving the eureka effect. I find the eureka effect is really fun when on defense with multiple engies, but switching though 9+ spectate P.O.V.'s can be a huge pain in pubs.

Is this even possible? If so, any config should work. I don't have any configs set at the moment, so there wouldn't be any conflicts, assuming the game engine even allows it.


r/tf2scripthelp • • Jan 07 '16

Issue [Help] I can't stop airblasting with this script!

2 Upvotes

So I asked someone here on Reddit to make me a script that has my Pyro say "No" every time he aiblasts and it works! Oly issue, I have to type -attack2 into console to stop airblasting. What can I do to fix this script?

alias nope "spec_prev; voicemenu 0 7; +attack2"
bind 1 "slot1; bind mouse2 nope"
bind 2 "slot2; bind mouse2 +attack2"
bind 3 "slot3; bind mouse2 +attack2"

r/tf2scripthelp • • Jan 03 '16

Question Problems with no Explosion Smoke Script

2 Upvotes

I've recently installed this script designed to remove the smoke and sound from explosives. The problems I've ran into thus far are:

  • Being unable to switch between the Demoman's Stickybomb and Grenade launcher (it appears that with the script active both weapons are bound to 1)

  • The hud no longer displays how much reserve ammo I have, instead it will only show how many rockets/pipes I have in the clip like so. The amount of reserve ammo will occasionally flash in place of the remaining clip as I am reloading.

I am using the latest version of Rays Hud; I have also disabled it and found the problem persists withthe default hud. Any help would be greatly appreciated.


r/tf2scripthelp • • Dec 30 '15

Question Need help with a bind that changes other binds by using one key

2 Upvotes

Hi all. I have a Question:

I'm using a scout script that binds my M1 to equip my Scattergun and M2 to equip the pistol. //Binds //----- bind "MOUSE1" "+Scatter" bind "MOUSE"" "+Pistol" bind "mwheelup" "WheelScatter" bind "mwheeldown" "WheelPistol"

//Scattergun
//----------
alias "+Scatter" "slot1;r_drawviewmodel 0;+attack"
alias "-Scatter" "-attack;+reload"

//Pistol
//------
alias "+Pistol" "slot2;r_drawviewmodel 0;+attack"
alias "-Pistol" "-attack;+reload"

//Mousewheel
//----------
alias "WheelScatter" "slot1;r_drawviewmodel 0"
alias "WheelPistol" "slot2;r_drawviewmodel 0"

That means that I can't use the Sandman because my second attack is unbinded. I want to know if it's possible to use one key to change between my current script an this: bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2"

Thank you


r/tf2scripthelp • • Dec 22 '15

Question Is this script still good?

2 Upvotes

r/tf2scripthelp • • Dec 17 '15

Question Does this script still work

2 Upvotes

I went to the 'other' tf2 wiki and found this script, I'm currently having problems with my computer but does this script still work *It's probably really old).

----------------------------------------­----------------------------------------­--------------------------------------------
//Very fast build/destroy/move/upgrade script for the Engineer
//by Fede-lasse, with help from Icehawk, vincister, Metroid48, and [HvC]Terr

//Controls:
//Build and destroy with F1-4. After you've placed a building, keep holding the
//left mouse button to immediately speed up building time. Hold the right mouse 
//button to upgrade. Press the middle mouse button to pick up (move) a building.
//Press F to enable/disable these binds. When disabled, you can instantly rocket
//jump using the middle mouse button.

//Description:
//This script makes it fast to place and upgrade buildings by using the F1-4 buttons
//to bring up any building, and thereafter allow you to start hammer away without
//As a bonus, there's a "power jump" implemented into the
//middle mousebutton when you disable these Engineer binds, which makes it much
//eaiser to rocket jump or use the Force-a-Nature to fly around the place.

//Tip 1: Press F1-4 quickly to remove buildings before the enemy can destroy your
//       buildings before or after countdown reaches zero.
//Tip 2: If lag somehow causes you to repeatedly shoot, then press 1 to restart
//       the key binds.
//Tip 3: Use F1 to build a sentry outside your spawn, then pick it up using the
//       middle mouse button and move it to the frontlines.
//Tip 4: If you use the Gunslinger, then you can play hide-and-seek with the enemy
//       by constantly building, moving, and placing a Mini-Sentry to the annoyance
//       of the enemy. They'll eventually become so hurt that you or your teammates
//       will be able to take them down.

//Original upgrade script by Icehawk
//Fixed upgrade by vincister
//Lag-compensating auto-repair by Metroid48
//Toggle on the same button by [HvC]Terr
//Everything else by Fede-lasse



//Left mouse upgrade script
alias +upgrade1 "+attack2; slot3; -attack2; +attack"
alias -upgrade1 "-attack; lastinv; bind mouse1 +attack"

//Right mouse upgrade script
alias +upgrade2 "+attack2; slot3; -attack2; +attack"
alias -upgrade2 "-attack; lastinv; bind mouse1 +attack"



//Sentry building script
alias verify_sentry "+attack; complete_sentry" //2. verify it's on a valid point
alias complete_sentry "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2" //3. start hammering away
alias build_sentry "destroy 2; build 2; bind mouse2 +attack2; bind mouse1 verify_sentry" //1. rotate/place sentry

//Dispenser building script
alias verify_dispenser "+attack; complete_dispenser"
alias complete_dispenser "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_dispenser "bind mouse2 +attack2; bind mouse1 verify_dispenser"

//Entrance building script
alias verify_entrance "+attack; complete_entrance"
alias complete_entrance "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_entrance "bind mouse2 +attack2; bind mouse1 verify_entrance"

//Exit building script
alias verify_exit "+attack; complete_exit"
alias complete_exit "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_exit "bind mouse2 +attack2; bind mouse1 verify_exit"



//At this point you might think: why have 4 different alias when they do the same
//thing? Well, you can't bind a single alias to multiple keys. That's why.
alias sentry "destroy 2; build 2; build_sentry"
alias dispenser "destroy 0; build 0; build_dispenser"
alias entrance "destroy 1; build 1; build_entrance"
alias exit "destroy 3; build 3; build_exit"



//Bind fixer, in case lag causes script instability
alias fixBinds "-attack; -attack2; slot1; bind mouse2 +upgrade2; bind mouse1 +attack"

//Jumping high using Soldier/Scout
alias +powerJump "+jump; +duck; +attack"
alias -powerJump "-jump; -duck; -attack"

//Moving buildings using middle mouse button
alias complete_move "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias +build_move "+attack2; bind mouse2 +attack2; bind mouse1 complete_move"
alias -build_move "-attack2"


//Engineer script toggle
alias engieEnable "bind mouse2 +upgrade2; bind mouse3 +build_move; bind f1 sentry; bind f2 dispenser; bind f3 entrance; bind f4 exit; bind 1 fixBinds; alias engieToggle engieDisable"
alias engieDisable "bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 +powerJump; bind 1 slot1; unbind f1; unbind f2; unbind f3; unbind f4; alias engieToggle engieEnable"
alias engieToggle engieEnable

//Enable toggling on F key
bind f engieToggle
----------------------------------------­----------------------------------------­--------------------------------------------