r/tf2scripthelp • • Mar 25 '17

Question A little help on tr_walkway please

2 Upvotes

Hello and thanks in advance. I have a script saved to tr_walkway_rc2.cfg that looks like this:

sv_cheats 1
sv_allow_point_servercommand always

tr_spawn_light
tr_hurt_ON
tr_deployonlp
tr_ramp_full_down
tr_lp_ON
tr_lp_randpow_ON
tr_lp_randtraj_ON

bind f tr_teleport

The scripts loads successfully. I know because the f bind kicks in (it is rebinded on autoexec). However none of the tr_* commands work. It's weird because tr_teleport does function as intended but none of the other do. When I try using any of the other commands in the console i get a "Unkown command" message. How is it that tr_teleport is the only command that works?

This is on a recently downloaded version from TF2Maps.net (which itself is 2 years old).


r/tf2scripthelp • • Jan 13 '17

Question Function of "use" Command

2 Upvotes

Recently, I finally caved and started using a crosshair switcher - namely Broesel's, as I couldn't find any others. However, when I started it up, it didn't work. Now instead of complaining about it somewhere or trying to find a different one, I figured I'd mess with it and MAKE it work. So after a few hours of decoding his "illegible bullshit" to make it easier to tweak in the future and fixing the fatal-error causing code (quite frankly rookie mistakes; he used "alias <command> <encoding>" which screwed up his entire system) (also apparently executing scripts in other directories is gone?), I encountered his nigh-obsessive use of the "use" command i.e. stuff like this excerpt:

alias primary_weapons_demoman     "use tf_weapon_grenadelauncher"
alias primary_weapons_engineer    "use tf_weapon_drg_pomson; use tf_weapon_shotgun_primary; use tf_weapon_sentry_revenge"
alias primary_weapons_heavy       "use tf_weapon_minigun"
alias primary_weapons_medic       "use tf_weapon_syringegun_medic; use tf_weapon_crossbow"
alias primary_weapons_pyro        "use tf_weapon_flamethrower"

I couldn't find a single trace of the command online, and its implementation seemed a bit... unnecessary. So I wanted to know three things:

    1. What was Broesel's beef with just using the weapon slots?

  • 2. Does the use command still work, or should I rework it? (Tried it, turns out I wasn't a smartass who screwed up the script :D)

  • 3. What does the "use" command even DO?

Thanks, ABadHaiku


r/tf2scripthelp • • Jan 11 '17

Question Scripts reset on death

2 Upvotes

Hi /r/tf2scripthelp,

So I know that normally scripts can't detect killing or being killed, so I can't have my scripts reset themselves upon my death.

My question is then, why do they? I have two scripts in particular, one button is bound to turn the volume down to a lower level, and it's always back to volume 1 after respawn somehow, and another is used to turn off viewmodels when I prefer it, but whenever I swap them off upon respawn they're back on.

This, among other strange things that have been happening with my client lately are making me wonder if there's something wrong with my game files, but I verified my game file integrity through steam and nothing odd came up, and the problems didn't stop.

Any idea what I can do to keep my scripts running after death?


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 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 05 '16

Question Is this reset.config script 100% correct and not missing anything or is outdated by any chance ?

2 Upvotes

http://gamebanana.com/scripts/7976

Ok update: everytime i apply this script, w s a d bindings are gone.

EDIT: all my binds are working good now.


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 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 • • Jun 15 '16

Issue Voice mic problems

2 Upvotes

I have comanglia's cfg installed for about 1 year now, I recently re-installed it after re-isntalling tf2 , and now, every time anyone speaks on a mic, it's incomprehensible, just noise, almost like the old tv's white noise (nostalgia alert? c:) , is it anything with the sound part of the cfg, I know it's not my PC, as I clearly understand anything said by mumble and by voice commands in game. It's just other players voice that is making me furious as it's quite annoying to be playing with such sounds.

P.S.: I don't know if this is the most appropriate place to search for help in this a matter, if its not just tell me where to post such issue and I'll go somewhere else for help.


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 23 '16

Resolved Bhop/Surf Toggle Script Problem

2 Upvotes

I found this simple toggle script to switch the mouse wheel from weapon switching to jumping. This script works fine for me.

bind alt bhop
alias bhop "bind mwheeldown +jump; bind mwheelup +jump; bind alt norm"
alias norm "bind mwheeldown invnext; bind mwheelup invprev; bind alt bhop"

I have recently started surfing again and wanted the bhop bind to also change my mouse buttons from "Thanks!" and "Spy!" to turning left and right at default cl_yawspeed. I attempted this by editing the code as follows:

bind alt bhop
alias bhop "bind mwheeldown +jump; bind mwheelup +jump; bind mouse5 +left; bind mouse4 +right; bind alt norm"
alias norm "bind mwheeldown invnext; bind mwheelup invprev; bind mouse5 "voicemenu 1 1"; bind mouse4 "voicemenu 0 1"; bind alt bhop"

When I hit "alt" the "bhop" alias works fine, but when I hit it again to switch back to alias "norm" only the mousewheel resets, and the mouse buttons remain on "+left" and "+right". I have tested switching the mouse buttons to other commands in alias "norm" but they are all permanently overridden by the turning commands.

Any help is greatly appreciated!


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