r/tf2scripthelp • • Jul 20 '22

Issue Scripts straight up not working at all

1 Upvotes

I don't know why, but i have a problem when i try to rocket jump, a lot of times i press ctrl before space so my jump gets messed up completely, so i decided to get a script for crouch jumping just so that i no longer commit this silly mistake, but i don't want it on other classes because i put the command on console to test and felt annoyed with crouch jumping on other classes(specially scout), so i looked up online and figured I could have it only be active for soldier if i messed with the cfg files

I went to tf/cfg, found the autoexec and all the class files, messed with them but then when i tried in game, it wouldn't work, couldn't crouch jump with soldier

I looked up online and saw people with somewhat similar problems, but most of the "solutions" were just "check if the file is .cfg and not .txt", which i know is not my case

I've tried copying all the files and moving them to custom/*something/cfg and it didn't work once again

When i check the in game console, it always says "user/soldier.cfg not present; not executing", but looking online also doesn't give me a clear answer for anything

Please does anyone have any idea on how to deal with my problem? I feel like I'm losing my mind hitting my head against the wall just to find any functional fix and nothing


r/tf2scripthelp • • Jan 28 '22

Resolved TF2 keeps crashing every time I try to pick a class

1 Upvotes

I don't know why, but I tried to install the null canceling movement thing in my autoexec folder, and now TF2 crashes everytime I pick a class.

Autoexec.cfg: sheens_tint=full

mat_motion_blur_enabled 0

alias game_overrides_once_c hud_reloadscheme

run_modules

lod=ultra

water=low

pyrovision=low

texture_filter=aniso16x

characters=ultra

decals=high

decals_models=high

props=medium

sound=ultra

map itemtest

run_modules

mat_antialias 8

mat_aaquality 2

mat_vsync 0

m_rawinput 1

cl_smooth 0

cl_interp 0.0325

cl_interp_ratio 1

rate 97000

cl_updaterate 66

cl_cmdrate 66

hud_medichealtargetmarker 1

bind q +duck

-novid

alias +mfwd "-back;+forward;alias checkfwd +forward" //stops the user from trying to move both left and right at the same time

alias +mback "-forward;+back;alias checkback +back"

alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"

alias +mright "-moveleft;+moveright;alias checkright +moveright"

alias -mfwd "-forward;checkback;alias checkfwd none"

alias -mback "-back;checkfwd;alias checkback none"

alias -mleft "-moveleft;checkright;alias checkleft none"

alias -mright "-moveright;checkleft;alias checkright none"

alias checkfwd none

alias checkback none

alias checkleft none

alias checkright none

alias none ""

map itemtest

bind w +mfwd

bind s +mback

bind a +mleft

bind d +mright


r/tf2scripthelp • • Jan 17 '22

Question Hide Reload Script (best case without wait commands)

1 Upvotes

hello,

i have tried for many hours now but i couldnt find a script/mod that hides JUST the reload animation of a weapon and not the idle fireing or inspect animations so now please do not send me links to yttriums vm mod or the old stabbystabby script that hid the weapon entirely after fireing

thanks, cya


r/tf2scripthelp • • Aug 30 '18

Issue Modding a rainbow crosshair

1 Upvotes

Hi Guys.

I'm messing around with a rainbow crosshair, but messed too much and nothing works anymore. (I'm too noob to script hard)

This is the original script

Script:
// Bind toggles and set starting speed (Speed 1-4: 1=fastest, 4=slowest).
alias cc_startingSpeed "cc_setSpeed3"
// WARNING: This script cannot be shut down in the middle of a color cycle. Once shut down, wait for the color cycle to complete before restarting.
bind "i" cc_toggleState
bind "o" cc_nextSpeed

// Loop which controls when to go to the next color
alias cc_controlLoop1 "cc_nextColor; wait 127; cc_controlLoopTest"
alias cc_controlLoop2 "cc_nextColor; wait 254; cc_controlLoopTest"
alias cc_controlLoop3 "cc_nextColor; wait 381; cc_controlLoopTest"
alias cc_controlLoop4 "cc_nextColor; wait 508; cc_controlLoopTest"

// States which represent the current color
alias cc_red "alias cc_colorChange cc_redOrange; alias cc_nextColor cc_orange"
alias cc_orange "alias cc_colorChange cc_orangeYellow; alias cc_nextColor cc_yellow"
alias cc_yellow "alias cc_colorChange cc_yellowGreen; alias cc_nextColor cc_green"
alias cc_green "alias cc_colorChange cc_greenBlue; alias cc_nextColor cc_blue"
alias cc_blue "alias cc_colorChange cc_bluePurple; alias cc_nextColor cc_purple"
alias cc_purple "alias cc_colorChange cc_purpleRed; alias cc_nextColor cc_red"

// Loop which cycles through from one color to the next
alias cc_changeLoop1 "cc_colorChange; wait 1; cc_changeLoop"
alias cc_changeLoop2 "cc_colorChange; wait 2; cc_changeLoop"
alias cc_changeLoop3 "cc_colorChange; wait 3; cc_changeLoop"
alias cc_changeLoop4 "cc_colorChange; wait 4; cc_changeLoop"

// Color R G B
// red 255 000 000
// orange 255 127 000
// yellow 255 255 000
// green 000 255 000
// blue 000 000 255
// purple 127 000 127

// Descriptors for how to get from one color to another (as defined in the table)
alias cc_redOrange "incrementvar cl_crosshair_green 0 127 1"
alias cc_orangeYellow "incrementvar cl_crosshair_green 127 254 1"
alias cc_yellowGreen "incrementvar cl_crosshair_red 0 254 -2"
alias cc_greenBlue "incrementvar cl_crosshair_green 0 254 -2; incrementvar cl_crosshair_blue 0 254 2"
alias cc_bluePurple "incrementvar cl_crosshair_red 0 127 1; incrementvar cl_crosshair_blue 127 254 -1"
alias cc_purpleRed "incrementvar cl_crosshair_red 127 254 1; incrementvar cl_crosshair_blue 0 127 -1"


// Wait test
alias cc_controlLoopTest cc_waitTest
alias cc_waitTest "alias cc_action cc_continue; cc_checkWait; cc_action" // script still running
alias cc_checkWait "wait; alias cc_action cc_shutdown"

// Overall script states
alias cc_toggleState cc_startup
alias cc_startup "alias cc_toggleState cc_shutdown; cl_crosshair_red 255; cl_crosshair_blue 0; cl_crosshair_green 0; alias cc_nextColor cc_red; cc_setSpeed1; cc_startingspeed; cc_controlLoop; cc_changeLoop; alias cc_controlLoopTest cc_waitTest"
alias cc_continue "cc_setSpeed; cc_controlLoop"
alias cc_shutdown "alias cc_changeLoop; alias cc_toggleState; cl_crosshair_red 255; cl_crosshair_blue 255; cl_crosshair_green 255; alias cc_controlLoopTest cc_ended"
alias cc_ended "alias cc_toggleState cc_startup" // script told to shutdown, has shut down, can now be restarted

// Speed manipulation which modifies which speed will be selected next
alias cc_nextSpeed cc_queueSpeed1
alias cc_queueSpeed1 "alias cc_setSpeed cc_setSpeed1; alias cc_nextSpeed cc_queueSpeed2; play weapons\vaccinator_toggle"
alias cc_queueSpeed2 "alias cc_setSpeed cc_setSpeed2; alias cc_nextSpeed cc_queueSpeed3; play weapons\vaccinator_toggle"
alias cc_queueSpeed3 "alias cc_setSpeed cc_setSpeed3; alias cc_nextSpeed cc_queueSpeed4; play weapons\vaccinator_toggle"
alias cc_queueSpeed4 "alias cc_setSpeed cc_setSpeed4; alias cc_nextSpeed cc_queueSpeed1; play weapons\vaccinator_toggle"

// Speed manipulation which contain the changes to be made when switching speeds
alias cc_setSpeed cc_setSpeed1
alias cc_setSpeed1 "alias cc_controlLoop cc_controlLoop1; alias cc_changeLoop cc_changeLoop1; alias cc_setSpeed; play weapons\vaccinator_charge_tier_04"
alias cc_setSpeed2 "alias cc_controlLoop cc_controlLoop2; alias cc_changeLoop cc_changeLoop2; alias cc_setSpeed; play weapons\vaccinator_charge_tier_03"
alias cc_setSpeed3 "alias cc_controlLoop cc_controlLoop3; alias cc_changeLoop cc_changeLoop3; alias cc_setSpeed; play weapons\vaccinator_charge_tier_02"
alias cc_setSpeed4 "alias cc_controlLoop cc_controlLoop4; alias cc_changeLoop cc_changeLoop4; alias cc_setSpeed; play weapons\vaccinator_charge_tier_01"

I've intented to make a rotation of 3 colors: neon green(57,255,20), fuchsia(255,0,255) and white(255,255,255).

I have no results at all trying to insert my colors.

Can anyone help me at least understand all the references, so I can try by myself, or show me a script that auto-rotates the color of crosshair between my 3 chosen colors?I dont need 4 speeds, just one.

Thanks in advance and sorry for bad english

Edit: mistakenly marked as spoiler


r/tf2scripthelp • • Oct 07 '17

Answered I'm trying to get a script to make reload middle mouse click, whilst also keeping the MvM shield and rage on middle mouse

1 Upvotes

basically the title, i did do some research (I read the tf2 wiki page)

bind mouse3 +attack3; +reload

that's what i came up with, and it sort of worked, i got into an mvm game and it let me change vaccinator resistance one time, and use my shield as much as possible. i didn't test heavy rage or the hitmans heatmaker


r/tf2scripthelp • • Sep 18 '17

Resolved Can't get Auto/Config(s) to work

1 Upvotes

So Earlier Today i tried to setup some Chat-bind thing to Cycle though bunch of Quotes for a Laugh, and also get 'round to setting up some of the UI stuff i always have up, i.e. Vote UI commands, net_graph 1, etc.

Thing being, the auto_config and other Scripts/Configs, just refuses to work, at all, Only 1 chat bind works on the auto_config and thats the one listed first in it, I've tried putting everything into the one Auto_config, doesn't work, put 'em in their own scripts, doesn't work, tried putting 'exec <config>' in the autoexec, nothing.

Bundled the 3 i'm trying to get work right now into this one pastebin file

Currently have 'em in "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\custom\Custom_Configs_Wuff"

I'm Sorry if i've messed up somewhere, either with the configs here or posting in the wrong place.


r/tf2scripthelp • • Sep 09 '17

Question Autoexec not executing all commands

1 Upvotes

I'm trying to make my autoexec run comanglia's graphic config as well as some simple commands for my game but for some reason it only execs the graphic config and not the other cfg, can somebody help?

The code looks like this:

autoexec:

exec stuf
exec gfx

in gfx it's just the comanglia config, however in stuf there's:

tf_colorblindassist 1
fps_max 30
closecaption 1
echo "autoexec loaded"

but it won't load nor show the echo (which i just added so i could see if it responds), could someone help? I've tried putting the commands in autoexec instead but it doesn't help


r/tf2scripthelp • • Jul 28 '17

Question Custom Server Settings/Gamemode

1 Upvotes

I had an idea for a gamemode. I'd like to know how I can pull this off. I figure it's possible, considering things like x10 and randomizer exist.

Anyway, the game mode is meant to resemble a standard fps. Point and shoot, not much more than that. No rocket jumping or any other funny business. I guess you could compare it to CoD or Halo, maybe CS.

Everybody plays as engie. 5v5. A round ends when the an entire team is eliminated. If you are the last person alive on your team and you get a kill, your entire team revives.

You can only build dispensers and teles. No ammo or health pickups on the map.

Everybody starts out using the rescue ranger and the southern hospitality(no secondary). As you get kills, you can earn money to buy weapons for the following rounds. You can buy the pomson, the ambassador, the medic crossbow, the huntsman, the detonator, the smg, the force-a-nature, the sticky jumper, and the half-zatoichi. If you buy the weapon and don't die, you get to keep the weapon.


r/tf2scripthelp • • Jun 19 '17

Question random voice line script?

1 Upvotes

i want a script that randomly activates a voiceline from the "Jeer" and the "Negative" voiceline lists because those are my fav voicelines.


r/tf2scripthelp • • May 31 '17

Issue Engineer Build Script Help

1 Upvotes

I would like for every time I build any new buildings for it to switch to my primary. Right now it switches to my melee, which is kinda annoying. Here is the Script:

//Sentry alias SentryBuild "build 2; alias Sentry SentryDestroy" alias SentryDestroy "destroy 2; alias Sentry SentryBuild; slot1" //Dispenser alias DispenserBuild "build 0; alias Dispenser DispenserDestroy" alias DispenserDestroy "destroy 0; alias Dispenser DispenserBuild; slot1" //Teleporter Entrance alias Teleporter1Build "build 1; alias Teleporter1 Teleporter1Destroy" alias Teleporter1Destroy "destroy 1; alias Teleporter1 Teleporter1Build; slot1" //Teleporter Exit alias Teleporter2Build "build 3; alias Teleporter2 Teleporter2Destroy" alias Teleporter2Destroy "destroy 3; alias Teleporter2 Teleporter2Build; slot1"

what should I put in to make it that I switch to my primary after placing down a building.


r/tf2scripthelp • • Mar 24 '17

Question Embedded quotes (mixing double and single)

1 Upvotes

I'm trying I'm trying to use quotes like in python but it's not working too well. Can someone give me a lead? Do I have to, instead, use many layers of nested aliases?

Just so you know what I'm talking about,

"outer 'inner stuff' stuff"

alias foo 'alias boo "invnext"; invprev'

and what I want to do is to use one alias to redefine other aliases, with the end goal of keeping track of which slot you're on while still supporting invnext, invprev, and lastinv


r/tf2scripthelp • • Feb 24 '17

Issue Trying to use the wait command to auto cycle through many binds to record for a youtube video

1 Upvotes

So pretty much I want to record tf2 chat spitting out the entire My Twisted World Elliot Rodger Manifesto.
I have this so far http://pastebin.com/UF1Nrd1K
That's just part of the cfg I have, the full size one is 6000 lines and way too big for pastebin.

I can't seem to figure out how to get the desired effect of spamming a line having it wait a few seconds then spamming the next one. I'm using a listen server with sv_cheats 1 and have confirmed the wait command working.


r/tf2scripthelp • • Aug 29 '16

Issue I need help with my fps boosting script

1 Upvotes

So i installed a fps boosting script and it really helped me ingame, but since i installed it i started seeing invisible players (not invisible spies but just players lacking body model) here is a link to the script on pastebin http://pastebin.com/D2TpZa4S if anybody has found a command that could cause it and help me i'll be thankful and will appreciate very much.


r/tf2scripthelp • • Aug 17 '16

Answered Play recorded voice over voice chat via. bind.

1 Upvotes

Hello Lads and Lords,

I am here to ask a short question,

Well lets make it short. I wanna implement in a script some binds to certain keys.

The function of theses binds would toggle to play a recorded soundfile in voicechat.

For example:

bind <key> "play vo/say_fall_back" // say in voicechat to get more defensive
bind <key> "play vo/say_medic_popped" //say in voicechat that the enemy medic popped

and on and on. I hope you guys get the idea what I am going to try/want to implement.

Thanks for the help in near future ;)

Great Greetings

Graru1


r/tf2scripthelp • • Apr 08 '16

Question Is there a way to set your spray without going into the settings? like with a config or something?

1 Upvotes

im working on a plug in where i just install the file and i don't have to do anything else


r/tf2scripthelp • • Apr 06 '16

Answered weapon specific toggleable viewmodel control

1 Upvotes

I already have some version of chris config installed, so I have an alias I can add to that executes every time I use a weapon of any class, so I only need a viewmodel control script. To clarify, what I want is so when I press ALT using for example my rocket launcher as soldier, then the viewmodel will toggle off, and when I press alt and again it will toggle back on. But then if I toggle it off, and switch to my shotgun, the shotgun will show its viewmodel, but if I switch back to my rocket launcher, it will remember that its viewmodel is off. If you need me to clarify what I mean or what I already have further, just ask. EDIT: This should work for all weapons on all classes except spy and engie

EDIT: What I have already: (it's part of chris config and will execute when I change to those weapons

alias scout_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90;      disable_autoheal"
alias scout_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; disable_autoheal"
alias scout_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1;   viewmodel_fov 90; disable_autoheal"
alias soldier_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; disable_autoheal"
alias soldier_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias soldier_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias pyro_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias pyro_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias pyro_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias demoman_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias demoman_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias demoman_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias heavy_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias heavy_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias heavy_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias engineer_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias engineer_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias engineer_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias medic_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias medic_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias medic_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias sniper_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias sniper_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias sniper_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias spy_primary "cl_crosshair_scale 24; ring; cl_crosshair_red 20; cl_crosshair_green 180; cl_crosshair_blue 20; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias spy_secondary "cl_crosshair_scale 32; ring; cl_crosshair_red 180; cl_crosshair_green 0; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"
alias spy_melee "cl_crosshair_scale 32; ring; cl_crosshair_red 200; cl_crosshair_green 200; cl_crosshair_blue 0; r_drawviewmodel 1; viewmodel_fov 90; cl_interp 0.0152; disable_autoheal"

r/tf2scripthelp • • Jan 31 '16

Resolved Started using a stabbystabby config for spy, now can't attack with other classes

1 Upvotes

//sapper alias vmsap "bind mouse1 +sap" alias +sap "+attack;r_drawviewmodel 1;sapalert" alias -sap "-attack" alias sapalert "say_team Sapping."

alias +sapper "slot2;r_drawviewmodel 1" alias -sapper "dotxhairtype;dotxhaircolor" bind "MWHEELDOWN" "+sapper;vmsap" //rebind to liking

//knife alias vmon "bind mouse1 +viewmodelon" alias +viewmodelon "+attack;r_drawviewmodel 1;spec_next" alias -viewmodelon "-attack;r_drawviewmodel 1"

alias +equip3 ";vmon;slot3;r_drawviewmodel 1;alias wpn slot3" alias -equip3 "r_drawviewmodel 1" bind "q" +equip3 //rebind to liking

//gun alias vmoff "bind mouse1 +viewmodeloff" alias +viewmodeloff "+attack;r_drawviewmodel 0;spec_next" alias -viewmodeloff "-attack;r_drawviewmodel 0"

alias +equip1 ";slot1;r_drawviewmodel 1" alias -equip1 "r_drawviewmodel 0;vmoff" bind "mwheelup" +equip1 //rebind to liking

//watch bind "mouse2" "+spycustomattack2" alias +spycustomattack2 ";+attack2;r_drawviewmodel 1;spec_prev" alias -spycustomattack2 "-attack2;r_drawviewmodel 1"

I recently put this in my spy.cfg and it works perfectly fine when I play spy. I modified it a bit to take out xhair mods + some other stuff I didn't like and change binds.

However, now when I try to play any of the other 8 classes I cannot attack. I tried following the FAQ by putting "exec reset" in all those class cfg files and then making a reset.cfg containing the following:

bind mwheelup slot1

bind mwheeldown slot2

bind q slot3

bind 4 slot4

bind 5 slot5

bind mouse1 +attack1

bind mouse2 +attack2

But no dice. The mousewheel stuff is working fine but I just can't attack at all. Any help would be appreciated.


r/tf2scripthelp • • Jan 22 '16

Question Folder Tree

1 Upvotes

GH Hello i am realatively new to scripting, i play on MAC and i have read the guide. I was trying to implement some scripts for spy and medic. Problem is that most of the times the scripts don't work or carry over to other classes yes i know about the reset.cfg and i have created one but doesn't seem to work


r/tf2scripthelp • • Jan 01 '16

Issue Bind for my toggle with not work...

1 Upvotes

I dont know whats wrong with it.. Typing ragdolltoggle into the console works but the bind doesnt work at all..

alias ragdolloff1 "cl_ragdoll_fade_time 0; cl_ragdoll_forcefade 1" 
alias ragdolloff2 "cl_ragdoll_physics_enable 0; g_ragdoll_fadespeed 0; g_ragdoll_lvfadespeed 0"
alias ragdolloff3 "ragdoll_sleepaftertime 0; cl_phys_props_enable 0; cl_phys_props_max 0"
alias ragdolloff4 "props_break_max_pieces 0; r_propsmaxdist 1; violence_agibs 0; violence_hgibs 0"

alias ragdollon1 "cl_ragdoll_fade_time 15; cl_ragdoll_forcefade 0" 
alias ragdollon2 "cl_ragdoll_physics_enable 1; g_ragdoll_fadespeed 600; g_ragdoll_lvfadespeed 100"
alias ragdollon3 "ragdoll_sleepaftertime 5.0f; cl_phys_props_enable 1; cl_phys_props_max 128"
alias ragdollon4 "props_break_max_pieces -1; r_propsmaxdist 1000; violence_agibs 1; violence_hgibs 1"

alias ragdolloff "ragdolloff1; ragdolloff2; ragdolloff3; ragdolloff4; alias ragdolltoggle ragdollon; echo ragdolls off" alias ragdollon "ragdollon1; ragdollon2; ragdollon3; ragdollon4; alias ragdolltoggle ragdolloff; echo ragdolls on"

alias ragdolltoggle ragdolloff

bind ] ragdolltoggle


r/tf2scripthelp • • Dec 15 '15

Answered Basic Question

1 Upvotes

I'm having trouble creating an autoexec.

From what I read on through the link on the sidebar, it seemed like all I needed was a text document named autoexec in

%PROGRAMFILES(x86)%/Steam/steamapps/common/Team Fortress 2/tf/custom/<mod>/cfg/

I tried putting commands in that folder and they didn't ever work, help?


r/tf2scripthelp • • Sep 15 '15

Resolved Mask voice script + inspect on same KEY

1 Upvotes

I want to use "F" for +inspect and mask voice (uber for example)

I'm using this script but adding +inspect to the bind won't help.

  //==========================================
  // Mask voice script
  //==========================================
  alias confuse_speech1 "voicemenu 2 6; bind f confuse_speech2"
  alias confuse_speech2 "voicemenu 2 2; bind f confuse_speech3"
  alias confuse_speech3 "voicemenu 2 4; bind f confuse_speech4"
  alias confuse_speech4 "voicemenu 2 7; bind f confuse_speech1"
  bind "f" "confuse_speech1"

r/tf2scripthelp • • Sep 01 '15

Question Is there a command to enable the developer console?

1 Upvotes

Every time I restart the game, my ~ does not open the dev console. I have to enable that option in the advanced menu options. I would prefer it if the console didn't open on startup.


r/tf2scripthelp • • Aug 11 '15

Resolved bad config file keeps coming back, as well as spy.cfg not working fully

1 Upvotes

I'll post my default config, bad config and my spy.cfg at the bottom. hey all so i had my scripts working and all of a sudden after dinner everything was broken. "i think my C:\ drive is dying and corrupted the cloud sync file" but either way i need some help. main 2 thing are the spy.cfg and the config that keeps coming back. config issue is literally that i delete it or overwrite it and when i load the game it comes back up. i have cloud sync off both on tf2 and in steam in general. if i need to i can corrupt the cloud again and get it clean but this is rediculous. is it stored somewhere else i dont know about? then for the spy the quick disguises work but the weapon switch only selects the item in the hud i still have to mouse1 to equip it, which is not what i used to have to do. its not the end of the world but i would prefer it the way it was where i could press "f" and immediately have the sapper out and ready

//Broken Config

unbindall
bind "0" "dropdisguise; slot10"
bind "1" "e_scout"
bind "2" "e_soldier"
bind "3" "e_pyro"
bind "4" "e_demoman"
bind "5" "e_hwguy"
bind "6" "e_engineer"
bind "7" "e_medic"
bind "8" "e_sniper"
bind "9" "e_spy"
bind "a" "+moveleft"
bind "b" "lastdisguise"
bind "c" "voice_menu_3"
bind "d" "+moveright"
bind "e" "revolver"
bind "f" "sapper"
bind "g" "+taunt"
bind "h" "+use_action_slot_item"
bind "i" "showmapinfo"
bind "j" "cl_trigger_first_notification"
bind "k" "cl_decline_first_notification"
bind "l" "dropitem"
bind "m" "open_charinfo_direct"
bind "n" "open_charinfo_backpack"
bind "p" "vr_reset_home_pos"
bind "q" "revolver1"
bind "r" "+reload"
bind "s" "+back"
bind "t" "impulse 201"
bind "u" "say_team"
bind "v" "+voicerecord"
bind "w" "+forward"
bind "x" "voice_menu_2"
bind "y" "say"
bind "z" "voice_menu_1"
bind "'" "+moveup"
bind "`" "toggleconsole"
bind "," "changeclass"
bind "." "changeteam"
bind "/" "+movedown"
bind "-" "disguiseteam"
bind "SPACE" "+jump"
bind "TAB" "+showscores"
bind "ESCAPE" "cancelselect"
bind "INS" "+klook"
bind "END" "centerview"
bind "PGUP" "+lookup"
bind "PGDN" "+lookdown"
bind "PAUSE" "pause"
bind "ALT" "+f_disg"
bind "CTRL" "+duck"
bind "F1" "+showroundinfo"
bind "F2" "show_quest_log"
bind "F3" "askconnect_accept"
bind "F5" "screenshot"
bind "F6" "save_replay"
bind "F7" "abuse_report_queue"
bind "F9" "vr_toggle"
bind "F10" "quit prompt"
bind "F12" "replay_togglereplaytips"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" "+attack3"
bind "MWHEELUP" "invprev"
bind "MWHEELDOWN" "knife"
replay_editor_camera_length "15"
youtube_http_proxy ""
replay_movie_reveal_warning "1"
replay_movie_export_last_dir ""
replay_renderqueue_first_add "0"
replay_rendersetting_exportraw "0"
replay_rendersetting_renderglow "0"
replay_quitmsg_dontaskagain "0"
replay_editor_fov_mousewheel_multiplier "5"
replay_editor_fov_mousewheel_invert "0"
replay_replayeditor_rewindmsgcounter "0"
replay_enablerenderpreview "1"
youtube_username ""
cl_first_person_uses_world_model "0"
cl_flipviewmodels "0"
cl_rumblescale "1.0"
cl_debugrumble "0"
cl_thirdperson "0"
cl_team "default"
cl_class "default"
vr_activate_default "0"
vr_moveaim_mode "3"
vr_moveaim_mode_zoom "3"
vr_moveaim_reticle_yaw_limit "10"
vr_moveaim_reticle_pitch_limit "30"
vr_moveaim_reticle_yaw_limit_zoom "0"
vr_moveaim_reticle_pitch_limit_zoom "-1"
vr_hud_max_fov "60"
vr_hud_forward "500"
vr_hud_display_ratio "0.95"
vr_hud_axis_lock_to_world "0"
vr_zoom_multiplier "2.0"
vr_force_windowed "0"
hud_takesshots "0"
hud_freezecamhide "0"
r_drawtracers_firstperson "1"
glow_outline_effect_enable "1"
cl_showhelp "1"
hud_draw_fixed_reticle "0"
hud_achievement_description "1"
hud_achievement_count "8"
cl_chatfilters "63"
cl_chatfilter_version "1"
cl_mute_all_comms "1"
cc_linger_time "1.0"
cc_predisplay_time "0.25"
cc_subtitles "0"
cc_lang ""
crosshair "1"
cl_observercrosshair "1"
cl_hudhint_sound "1"
g15_update_msec "250"
cam_snapto "0"
cam_ideallag "4.0"
cam_idealdelta "4.0"
cam_idealyaw "0"
cam_idealpitch "0"
cam_idealdist "150"
cam_idealdistright "0"
cam_idealdistup "0"
cam_collision "1"
c_maxpitch "90"
c_minpitch "0"
c_maxyaw "135"
c_minyaw "-135"
c_maxdistance "200"
c_mindistance "30"
c_orthowidth "100"
c_orthoheight "100"
joy_name "joystick"
joy_advanced "1"
joy_advaxisx "4"
joy_advaxisy "2"
joy_advaxisz "0"
joy_advaxisr "1"
joy_advaxisu "3"
joy_advaxisv "0"
joy_forwardthreshold "0.15"
joy_sidethreshold "0.15"
joy_pitchthreshold "0.15"
joy_yawthreshold "0.15"
joy_forwardsensitivity "-1"
joy_sidesensitivity "1"
joy_pitchsensitivity "1"
joy_yawsensitivity "-1"
joy_response_move "1"
joy_response_look "0"
joy_lowend "1"
joy_lowmap "1"
joy_accelscale "0.6"
joy_accelmax "1.0"
joy_autoaimdampenrange "0"
joy_autoaimdampen "0"
joy_diagonalpov "0"
joy_display_input "0"
joy_wingmanwarrior_turnhack "0"
joy_inverty "0"
joy_movement_stick "0"
joy_xcontroller_cfg_loaded "0"
lookspring "0"
lookstrafe "0"
joystick "0"
m_pitch "0.022"
m_filter "0"
sensitivity "3"
m_side "0.8"
m_yaw "0.022"
m_forward "1"
m_customaccel "0"
m_customaccel_scale "0.04"
m_customaccel_max "0"
m_customaccel_exponent "1"
m_mousespeed "1"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
m_rawinput "0"
cl_mouselook "1"
cl_idealpitchscale "0.8"
net_scale "5"
net_graphpos "1"
net_graphsolid "1"
net_graphtext "1"
net_graphmsecs "400"
net_graphshowlatency "1"
net_graphshowinterp "1"
net_graph "0"
net_graphheight "64"
net_graphproportionalfont "1"
viewmodel_fov "90"
mat_viewportscale "1.0"
mat_viewportupscale "1"
cl_software_cursor "0"
mat_software_aa_strength "0.000000"
mat_software_aa_quality "0"
mat_software_aa_edge_threshold "1.0"
mat_software_aa_blur_one_pixel_lines "0.5"
mat_software_aa_tap_offset "1.0"
mat_software_aa_strength_vgui "1.000000"
pyro_vignette "2"
pyro_vignette_distortion "1"
pyro_min_intensity "0.1"
pyro_max_intensity "0.35"
pyro_min_rate "0.05"
pyro_max_rate "0.2"
pyro_min_side_length "0.3"
pyro_max_side_length "0.55"
pyro_min_side_width "0.65"
pyro_max_side_width "0.95"
r_drawviewmodel "1"
pyro_dof "1"
voice_modenable "1"
hud_fastswitch "0"
cl_loadondemand_default "1"
store_version "1"
cl_showbackpackrarities "0"
cl_show_market_data_on_items "1"
tf_explanations_backpackpanel "0"
tf_backpack_page_button_delay "0.5"
cl_notifications_show_ingame "1"
cl_notifications_max_num_visible "3"
cl_notifications_move_time "0.5"
tf_time_loading_item_panels "0.0005"
tf_store_stamp_donation_add_timestamp "0"
cl_trading_show_requests_from "3"
hud_classautokill "1"
overview_health "1"
overview_names "1"
overview_tracks "1"
overview_locked "1"
overview_alpha "1.0"
spec_scoreboard "0"
cl_spec_mode "1"
cl_disablehtmlmotd "0"
ifm_steadycam_rotaterate "60"
ifm_steadycam_zoomspeed "1.0"
ifm_steadycam_zoomdamp "0.95"
ifm_steadycam_armspeed "0.5"
ifm_steadycam_rotatedamp "0.95"
ifm_steadycam_mousefactor "1.0"
ifm_steadycam_mousepower "1.0"
ifm_steadycam_2dspringconstant "33.0"
ifm_steadycam_2ddragconstant "11.0"
ifm_steadycam_noise "0.0"
ifm_steadycam_sensitivity "1.0"
sixense_weapon_select_sensitivity "1.65"
sixense_crouch_sensitivity "1.5"
sixense_jump_sensitivity "1.2"
sixense_reload_sensitivity "1.5"
sixense_left_handed "0"
sixense_sensitivity_level "2"
sixense_controller_angle_mode "0.0f"
sixense_roll_correct_blend "0.965f"
sixense_exit_one_to_one_dot "0.85"
sixense_exit_metroid_blend "0.95f"
sixense_max_charge_spin "3.0f"
sixense_zoom_momentary_time "500"
sixense_base_offset_x "0.0"
sixense_base_offset_y "0.0"
sixense_base_offset_z "-20.0"
sixense_trigger_threshold "0.05"
sixense_tilt_gesture_angle_threshold "35.0"
sixense_point_gesture_angle_threshold "15.0"
sixense_mouse_enabled "1.0"
sixense_mouse_sensitivity "1.0"
sixense_spring_view_enabled "1.0f"
sixense_spring_view_min_spring "0.025f"
sixense_spring_view_max_spring "0.9999f"
sixense_spring_view_min_angle "1.0f"
sixense_spring_view_max_angle "45.0f"
sixense_aim_freeaim_heading_multiplier "1.750000"
sixense_aim_freeaim_pitch_multiplier "1.750000"
sixense_aim_freeaim_dead_zone_radius "0.000000"
sixense_aim_freeaim_accel_band_size "15"
sixense_aim_freeaim_max_speed "12.000000"
sixense_aim_freeaim_auto_level_rate "1.0"
sixense_aim_freeaim_accel_band_exponent "1.0"
sixense_aim_freeaim_switch_blend_time_exit "0.25"
sixense_aim_1to1_ratchet_vertical "1.0"
sixense_aim_1to1_heading_multiplier "3.0"
sixense_aim_1to1_pitch_multiplier "3.000000"
sixense_feet_angles_offset_stick_spin_horiz_multiplier "7.500000"
sixense_feet_angles_offset_stick_spin_vert_multiplier "4.500000"
sixense_feet_angles_offset_stick_spin_invert_pitch "1.0"
sixense_feet_angles_offset_stick_spin_exponent "1.0"
sixense_aim_scope_heading_multiplier "0.6"
sixense_aim_scope_pitch_multiplier "0.6"
sixense_melee_pitch_blend_val "0.99"
sixense_crosshair_horiz_multiplier "1.0"
sixense_crosshair_vert_multiplier "1.0"
sixense_always_draw_crosshair "1"
sixense_walking_dead_zone_percent "10.0"
sixense_walking_exponent "1.0"
sixense_enabled "0"
sixense_filter_level "0.5"
sixense_mode "0"
cl_playerspraydisable "0"
muzzleflash_light "1"
tf_chargedfriends ""
cl_autorezoom "1"
tf_remember_activeweapon "0"
tf_remember_lastswitched "0"
cl_autoreload "1"
tf_respawn_on_loadoutchanges "1"
sb_dontshow_maxplayer_warning "0"
sb_close_browser_on_connect "1"
tf_spectate_pyrovision "0"
tf_replay_pyrovision "0"
tf_romevision_opt_in "0"
tf_romevision_skip_prompt "0"
tf_medieval_thirdperson "0"
tf_inspect_hint_count "0"
fov_desired "90"
tf_highfive_hintcount "0"
cl_steamscreenshots "1"
cl_hud_minmode "0"
viewmodel_fov_demo "54"
tf_hud_no_crosshair_on_scope_zoom "0"
cl_ask_favorite_opt_out "0"
cl_ask_blacklist_opt_out "0"
tf_halloween_bonus_ducks_cooldown "20"
tf_coach_request_nevershowagain "0"
tf_particles_disable_weather "0"
hud_combattext "0"
hud_combattext_healing "1"
hud_combattext_batching "0"
hud_combattext_batching_window "0.2"
hud_combattext_doesnt_block_overhead_text "1"
tf_dingalingaling "0"
tf_dingaling_volume "0.75"
tf_dingaling_pitchmindmg "100"
tf_dingaling_pitchmaxdmg "100"
tf_dingalingaling_repeat_delay "0.0"
hud_achievement_count_engineer "3"
tf_hud_num_building_alert_beeps "2"
cl_crosshair_red "200"
cl_crosshair_green "200"
cl_crosshair_blue "200"
cl_crosshair_file ""
cl_crosshair_scale "32.0"
cl_hud_killstreak_display_time "3"
cl_hud_killstreak_display_fontsize "0"
cl_hud_killstreak_display_alpha "120"
tf_contract_progress_show "1"
tf_recent_achievements "0"
tf_training_has_prompted_for_training "0"
tf_training_has_prompted_for_offline_practice "0"
tf_training_has_prompted_for_forums "0"
tf_training_has_prompted_for_options "0"
tf_training_has_prompted_for_loadout "1"
cl_ask_bigpicture_controller_opt_out "0"
tf_last_store_pricesheet_version "19941"
cl_mvm_wave_status_visible_during_wave "0"
tf_build_menu_controller_mode "0"
tf_simple_disguise_menu ""
tf_disguise_menu_controller_mode "0"
tf_hud_notification_show_count_kart_controls "0"
tf_hud_notification_show_count_ghost_controls "0"
tf_hud_show_servertimelimit "0"
cl_hud_playerclass_use_playermodel "1"
cl_hud_playerclass_playermodel_showed_confirm_dialog "1"
tf_spectator_target_location "0"
tf_hud_target_id_disable_floating_health "0"
tf_hud_target_id_alpha "100"
tf_hud_target_id_offset "0"
tf_hud_target_id_show_avatars "2"
tf_healthicon_height_offset "10"
tf_weapon_select_demo_start_delay "1.0"
tf_weapon_select_demo_time "0.5"
tf_rd_finale_beep_time "10"
tf_colorblindassist "0"
tf_halloween_kart_pitch "10"
tf_halloween_kart_pitch_slow_follow_rate "0.5"
tf_halloween_kart_pitch_fast_follow_rate "2"
tf_quickplay_pref_community_servers "0"
tf_quickplay_pref_increased_maxplayers "0"
tf_quickplay_pref_disable_random_crits "0"
tf_quickplay_pref_enable_damage_spread "0"
tf_quickplay_pref_respawn_times "0"
tf_quickplay_pref_beta_content "0"
tf_quickplay_lastviewedmode "0"
tf_matchgroups "0"
tf_mvm_tabs_discovered "0"
tf_steam_workshop_import_icon_path ""
tf_steam_workshop_import_model_path ""
tf_steam_workshop_import_material_path ""
publish_file_last_dir ""
tf_explanations_charinfo_armory_panel "0"
tf_explanations_charinfopanel "0"
tf_show_preset_explanation_in_class_loadout "1"
tf_show_taunt_explanation_in_class_loadout "1"
tf_explanations_craftingpanel "0"
tf_quest_turn_in_confirm_opt_out "0"
tf_quest_notification_line_delay "1.2"
tf_testitem_recent ""
replay_replaywelcomedlgcount "0"
tf_mvm_classupgradehelpcount "0"
tf_scoreboard_mouse_mode "0"
tf_matchmaking_join_in_progress "0"
tf_matchmaking_ticket_help "0"
cl_spec_carrieditems "1"
cl_use_tournament_specgui "0"
tf_spec_xray_disable "0"
cl_training_completed_with_classes "0"
cl_warbook_last_seen_points "0"
tf_medigun_autoheal "0"
hud_medicautocallers "0"
hud_medicautocallersthreshold "75"
hud_medichealtargetmarker "0"
tf_sniper_fullcharge_bell "0"
cl_crosshaircolor "0"
cl_dynamiccrosshair "1"
cl_scalecrosshair "1"
cl_crosshairalpha "200"
tf_explanations_discardpanel "0"
tf_explanations_store "1"
r_eyegloss "1"
commentary_firstrun "0"
vgui_message_dialog_modal "1"
scene_showfaceto "0"
ai_report_task_timings_on_limit "0"
ai_think_limit_label "0"
npc_height_adjust "1"
sv_pvsskipanimation "1"
scene_showlook "0"
scene_showmoveto "0"
scene_showunlock "0"
commentary "0"
xbox_throttlebias "100"
xbox_throttlespoof "200"
xbox_autothrottle "1"
func_break_max_pieces "15"
suitvolume "0.25"
option_duck_method "1"
sk_autoaim_mode "1"
sv_noclipaccelerate "5"
sv_noclipspeed "5"
sv_specaccelerate "5"
sv_specspeed "3"
sv_specnoclip "1"
sv_backspeed "0.6"
sv_skyname "sky_goldrush_01"
sv_loadondemand_default "0"
tf_skillrating_update_interval "180"
tf_server_identity_token ""
tf_server_identity_account_id "0"
tf_server_identity_disable_quickplay "0"
replay_enableeventbasedscreenshots "0"
replay_dodiskcleanup "1"
replay_voice_during_playback "0"
replay_flushinterval "15"
windows_speaker_config "4"
snd_legacy_surround "0"
snd_pitchquality "1"
volume "1.0"
snd_musicvolume "1.0"
snd_mixahead "0.1"
adsp_debug "0"
snd_ducktovolume "0.55"
snd_duckerattacktime "0.5"
snd_duckerreleasetime "2.5"
snd_duckerthreshold "0.15"
dsp_slow_cpu "0"
dsp_volume "1.0"
dsp_enhance_stereo "0"
snd_mute_losefocus "1"
voice_scale "1"
voice_enable "1"
voice_forcemicrecord "1"
name "captianirish -TPF-"
password ""
cl_clanid "0"
sv_unlockedchapters "99"
tv_nochat "0"
cl_showpluginmessages "1"
cl_timeout "30"
cl_logofile "materials/decals/spraylogo.vtf"
cl_soundfile "sound/player/jingle.wav"
cl_forcepreload "0"
cl_allowdownload "1"
cl_downloadfilter "all"
con_enable "1"
r_eyemove "1"
r_eyeshift_x "0"
r_eyeshift_y "0"
r_eyeshift_z "0"
r_eyesize "0"
r_ambientboost "1"
r_ambientmin "0.3"
r_ambientfactor "5"
r_drawmodelstatsoverlaymin "0.1"
r_drawmodelstatsoverlaymax "1.5"
mp_decals "200"
mat_color_projection "0"
sv_logsdir "logs"
sv_logfile "1"
sv_logflush "0"
sv_logecho "1"
sv_log_onefile "0"
sv_logbans "0"
sv_logfilename_format ""
sv_logfilecompress "0"
sv_voiceenable "1"
sv_forcepreload "0"
bugreporter_uploadasync "0"
rate "80000"
cl_cmdrate "30"
cl_updaterate "20"
closecaption "0"
skill "1"
net_maxroutable "1260"
cl_allowupload "1"
engine_no_focus_sleep "50"
mat_powersavingsmode "0"
budget_bargraph_background_alpha "128"
budget_peaks_window "30"
budget_averages_window "30"
budget_show_peaks "1"
budget_show_averages "0"
budget_show_history "1"
budget_history_numsamplesvisible "100"
budget_history_range_ms "66.666666667"
budget_panel_bottom_of_history_fraction ".25"
budget_bargraph_range_ms "16.6666666667"
budget_background_alpha "128"
budget_panel_x "0"
budget_panel_y "50"
budget_panel_width "512"
budget_panel_height "384"
texture_budget_panel_x "0"
texture_budget_panel_y "450"
texture_budget_panel_width "512"
texture_budget_panel_height "284"
texture_budget_panel_bottom_of_history_fraction ".25"
texture_budget_background_alpha "128"
vprof_graphwidth "512"
vprof_graphheight "256"
vprof_verbose "1"
vprof_unaccounted_limit "0.3"
vprof_warningmsec "10"
video_quicktime_encode_gamma "3"
    video_quicktime_decode_gamma "0"
    r_rootlod "0"
    mat_monitorgamma_tv_enabled "0"
    r_waterforceexpensive "1"
    mat_queue_mode "-1"
    mat_queue_report "0"
    mat_managedtextures "1"
    mat_spewalloc "0"
    mat_texture_list_content_path ""
    joy_axisbutton_threshold "0.3"
    joy_axis_deadzone "0.2"
    joy_gamecontroller_config ""
    mat_disable_d3d9ex "0"
    mat_hdr_level "2"

//good cfg

unbindall

bind "`"			"toggleconsole"
bind "w"			"+forward"
bind "s"			"+back"
bind "a"			"+moveleft"
bind "d"			"+moveright"
bind "SPACE"			"+jump"
bind "CTRL"			"+duck"
bind "TAB"			"+showscores"
bind "'"			"+moveup"
bind "/"			"+movedown"
bind "PGUP"			"+lookup"
bind "PGDN"			"+lookdown"
bind "END"			"centerview"
bind "ALT"			"+strafe"
bind "INS"			"+klook"
//bind "SEMICOLON"		"+mlook"
bind "r"			"+reload"
bind "MOUSE1"			"+attack"
bind "MOUSE2"			"+attack2"
bind "MOUSE3"			"+attack3"
//bind "z"			"saveme"
bind "z"			"voice_menu_1"
bind "x"			"voice_menu_2"
bind "c"			"voice_menu_3"
bind "e"			"dropitem"
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 "0"			"slot10"
bind "MWHEELUP"			"invprev"
bind "MWHEELDOWN"		"invnext"
bind "q"			"lastinv"
bind "F5"			"screenshot"
bind "F6"			"save_replay"
bind "F7"			"abuse_report_queue"
bind "F10"			"quit prompt"
bind "F12"			"replay_togglereplaytips"
bind "PAUSE"			"pause"
bind "ESCAPE"			"escape"
bind "t"			"impulse 201"
bind "y"			"say"
bind "u"			"say_team"
bind "v"			"+voicerecord"
bind "."			"changeteam"
bind ","			"changeclass"
bind "F1"			"+showroundinfo"
bind "g"			"+taunt"
bind "h"			"+use_action_slot_item"
bind "e"			"voicemenu 0 0"
bind "b"			"lastdisguise"
bind "l"			"dropitem"
bind "i"			"showmapinfo"
bind "-"			"disguiseteam"
bind "m"			"open_charinfo_direct"
bind "n"			"open_charinfo_backpack"
bind "f"			"+inspect"
bind "j"			"cl_trigger_first_notification"

r_maxdlights 12
cl_phys_timescale 0.8

// spy.cfg

alias revolver "slot1;r_drawviewmodel 0;viewmodel_fov 0;fov_desired 75"    // this switches to revolver slot with lower fov (75)
alias revolver1 "slot1;r_drawviewmodel 0;viewmodel_fov 0;fov_desired 90"   // this switches to revolver slot with normal fov (90)
alias sapper "slot2;r_drawviewmodel 1;viewmodel_fov 90;fov_desired 90"
alias knife "slot3;r_drawviewmodel 1;viewmodel_fov 90;fov_desired 90"

bind q revolver1
bind e revolver
bind f sapper
bind mwheeldown knife

alias e_scout "disguise 1 -1; playgamesound scout.yes01"
alias e_sniper "disguise 2 -1; playgamesound sniper.yes03"
alias e_soldier "disguise 3 -1; playgamesound soldier.yes04"
alias e_demoman "disguise 4 -1; playgamesound demoman.yes01"
alias e_medic "disguise 5 -1; playgamesound medic.yes03"
alias e_hwguy "disguise 6 -1; playgamesound heavy.yes03"
alias e_pyro "disguise 7 -1; playgamesound pyro.moveup01"
alias e_spy "disguise 8 -1; playgamesound spy.yes02"
alias e_engineer "disguise 9 -1; playgamesound engineer.yes03"

alias a_scout "disguise 1 -2; playgamesound scout.no02"
alias a_sniper "disguise 2 -2; playgamesound sniper.no01"
alias a_soldier "disguise 3 -2; playgamesound soldier.no02"
alias a_demoman "disguise 4 -2; playgamesound demoman_no03"
alias a_medic "disguise 5 -2; playgamesound medic.no01"
alias a_hwguy "disguise 6 -2; playgamesound heavy.no03"
alias a_pyro "disguise 7 -2; playgamesound pyro.no01"
alias a_spy "disguise 8 -2; play vo\spy_no03"
alias a_engineer "disguise 9 -2; play vo\engineer_no01"

alias dropdisguise "echo DISGUISE_DROP;disguise 8 -2"

bind 1 e_scout
bind 2 e_soldier
bind 3 e_pyro
bind 4 e_demoman
bind 5 e_hwguy
bind 6 e_engineer
bind 7 e_medic
bind 8 e_sniper
bind 9 e_spy
bind "0" "dropdisguise; slot10"

alias +f_disg "bind 1 a_scout; bind 2 a_soldier; bind 3 a_pyro; bind     4 a_demoman; bind 5 a_hwguy; bind 6 a_engineer; bind 7 a_medic;     bind 8 a_sniper; bind 9 a_spy"    
alias -f_disg "bind 1 e_scout; bind 2 e_soldier; bind 3 e_pyro; bind 4 e_demoman; bind 5 e_hwguy; bind 6 e_engineer; bind 7 e_medic; bind 8 e_sniper; bind 9 e_spy"

bind alt +f_disg

sorry if formating is off had to make a macro for adding spaces in the code.


r/tf2scripthelp • • Aug 04 '15

Question Demo quickswitch script

1 Upvotes

When trying to make scripts for demo, I realized that because I played w/ three very different load outs, and would require three different exec files. To fix this, I figured hey - lets make it so that in my demo man.cfg, I have an option to select them.

bind "f1" "load_itempreset 0; exec demobomb; echo EXPLOSIVE DEMO LOADED"

bind "f2" "load_itempreset 1; exec demohalf; echo HALF-DEMO LOADED"

bind "f3" "load itempreset 2; exec demosword; echo DEMOKNIGHT   LOADED"

This is what I came up with, yet it doesn't work. Like, at all.