r/tf2scripthelp • • May 17 '16

Question Rescue Ranger Bind Broken

1 Upvotes

I scripted my MOUSE5 button so that it would switch to my rescue ranger, teleport the building to me, and then switch to my wrench crosshair preferences. Whenever I press the button, however, it switches to the rescue ranger and stops there, without teleporting the building to me. Excerpted Script: alias +rescueranger "-attack2; shotgun; +attack2" alias -rescueranger "-attack2; wrench" bind MOUSE4 "+rescueranger" alias wrench "slot3; cl_crosshair_file crosshair7; cl_crosshair_scale 32; cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 255" alias shotgun "slot1; cl_crosshair_file crosshair1; cl_crosshair_scale 32; cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0"

And here is my entire script: http://pastebin.com/jrCiEkTU Please help me and tell me what's wrong, and how to fix it, and thanks in advance.


r/tf2scripthelp • • Feb 10 '16

Question I want to understand some scripts (used by stabby)

1 Upvotes

I tried to use the "last weapon script " but it didn't work. I thought this one would switch disguised weapon as mine is kept continuously.

i.e.: tap down b = changes weapon, tap b = changes weapon, tap b= changes weapon, tap b =changes weapon;

2)In Stabby's everything pack there is a default .cfg As far as I could understand those are just ordinary commands. Why are those simple commands all placed there ? He made all classes run that default.cfg. Wouldn't it be better if they were in autoexec.cfg ?

3) The only commands I wanted (from those )were null-movement/flash crosshair . I placed them all in the autoexec.cfg. Is it ok? Would the game run slower if I stick them all in a default.cfg or is it better that way?

4)I've added the crouch jump script for scout but I don't "feel" it is running (it may be).Will it ruin double jump? I'd like to have it in all non-blast jump classes FOR REFERENCE: http://forums.steampowered.com/forums/showthread.php?t=1591457

https://www.reddit.com/r/tf2/comments/31c65p/stabbys_everything_pack_final_releaseall_the_tf2/


r/tf2scripthelp • • Feb 03 '16

Question I'd like a script that turns viewmodels on when I switch to melee.

1 Upvotes

I use mouse4 to switch to my melee slot usually. I don't know if it's possible to script this, but I don't have much knowledge of it so I probably just haven't looked deep enough. I'd also want it so that it changes back to having viewmodels off when I switch to my secondary or primary slots.


r/tf2scripthelp • • Jan 14 '16

Resolved I am trying to create a chat bind pun generator.

1 Upvotes

Basically I'm doing this: When I press "9", I want the script to choose and send a chat bind out of 50 different messages (at random) that I've saved, but where I can easily add more if I wanted to. The problem being, is that I have no clue of how to get this to work. I know where the auto exec is, and there's nothing on the internet that can help me.

Example: I press "9", it says on the tf2 chat at random "Why did the Spy cross the road? Because he never really was on your side." - I press "9" again and it says on the tf2 chat at random "What is the difference between a Spy and a Medic? The team that is yelling at him." - I press "9" yet again and it says on the tf2 chat at random "How did the Demoman arrive at work? He took the Pain-Train." - see where I'm coming from? Do you think that you could help me out with this please?


r/tf2scripthelp • • Oct 05 '15

Resolved Dropdisguise script(s) not working

1 Upvotes

That's pretty much it, I've tried putting them both into my spy.cfg, autoexec.cfg, and manually executing those scripts in the console. Here are the scripts in question:

1

bind "f" "disguise 8 -2"

2

alias dropdisguise "echo DISGUISE_DROP;disguise 8 -2"

bind "f" "dropdisguise"

EDIT: I think I solved the problem. It was either that i needed to reinstall TF2, or that I needed to make sure the binds in console had quotes around them. Thanks genemilder, but the problem was way more stupid than I thought.


r/tf2scripthelp • • Aug 06 '15

Answered World Model View Sniper Zoom remover wont work

1 Upvotes

alias "sens" "sn" alias "sn" "+attack2; cl_first_person_uses_world_model 0; alias sens sen" alias "sen" "-attack2; cl_first_person_uses_world_model 1" bind "mouse2" "sens"

My attempt at making a script to disable world models while zooming, and enabling when descoping, has failed. Does anyone know how to properly do this? I'm pretty much 100% new to creating my own TF2 CFG scripts.


r/tf2scripthelp • • Jul 18 '15

Answered Help a hapless idiot with setting up class-specific configs.

1 Upvotes

You'd think it wouldn't be possible to screw up this badly and consistently. You'd be wrong. After months of experimenting, all of my scripting attempts so far have ended in soul-crushing failure, disabling Steam Cloud sync, and reinstalling the game.

I have read and followed the FAQ for class-specific configs, but there must be something I'm doing wrong, because my binds keep getting carried over to other classes. Moreover, even binds that I deleted in my .cfgs remain, and I have to manually rebind them in the game options.

Here's an in-depth step-by-step of what I've tried to do so far. It'd be great if anyone can help point out where I'm going horribly, horribly wrong.

Scripts I've tried to add

All Class

binding SHIFT to crouch-jumping

Soldier

binding MOUSE2 to rocket-jumping

Medic

binding MOUSE3 to inverted healing (+attack on medigun)

binding MWHEELUP to syringe gun, disabling +attack

binding MWHEELDOWN to bonesaw, disabling +attack

binding Z, X, and C to specific voice commands (help, mask uber call, etc.)

Engineer

binding T to quick-build mini-sentries

My scripting procedure

  1. Open up the config.cfg file in gedit (I'm running Windows 7 on a 64-bit computer, by the way)

  2. Delete everything in it

  3. Add my all-class binds

  4. Save as autoexec.cfg, as "All files"

  5. Delete everything in it (without saving)

  6. Add default binds for the class-specific ones I'm about to do (MOUSE3 to special attack, MOUSE2 to second attack, etc.)

  7. Save as reset.cfg, as "All files"

  8. Delete everything in it (without saving)

  9. For each class:

  • Start with exec reset.cfg in the first line

  • Paste my class-specific scripts (if any) into the file

  • Name it [whatever-class].cfg, as "All files"

  • Delete everything in it (without saving), and do the next class.

  1. Start the game.

When I use the above procedure, all of the scripts appear to have been issued for all classes, regardless of my attempts to make them class-specific. For example, if I start out as Medic, my inverted healing script will work, but if I switch to sniper, I'll keep shooting my primary. My MOUSE2 will cause me to fire my primary and crouchjump (as I would if I were rocketjumping as a soldier). So on and so forth.

In addition, when I tried to erase the scripts in my .cfgs, it seemed that Steam Cloud had them saved, and my problems continued until I went into in-game settings and manually rebound all the keys to their defaults.

I was told that Steam Cloud syncing might have been the problem, so I went to great lengths to have everything reverted to default, and disabled Cloud Sync. When I copy-pasted my old binds into the cfg folder afterwards, it ended up unbinding most of my default keys (WASD, MOUSE1 etc.) except for the ones I specified in the reset.cfg (such as MOUSE3 for special attack, MOUSE2 for secondary, etc.). After this happened, I did this to completely reset everything and disable Steam Cloud, and then I deleted local content and reinstalled.

The goal

So right now I'm working with essentially a factory-new Team Fortress 2, free of any memory of my repeated fuckups. My goal is to get my class-specific configs actually working, and to one day be able to resync them with the Steam Cloud so I can re-enable it (I play singleplayer games across several computers and would like to access cloud saves).

As this will now be my fourth time potentially failing miserably again, I've decided to reach out and get help with this whole process. I know there's an FAQ, I followed it to the best of my ability, but seeing as I failed, I probably didn't follow it correctly. I have no clue where I went wrong, and I really don't want to have to suffer through 10 more installs to figure out what it was.

In the absolute of best cases, I'd like to do a screenshare over Skype so someone experienced can help me go through the procedure over my shoulder. But I value your time greatly and wouldn't expect anyone to do that for me. In lieu of that, if you spotted any sort of glaring error in my above procedure, please let me know.

Thanks, everyone, and happy scripting!


r/tf2scripthelp • • Jul 04 '15

Answered New console commands?

1 Upvotes

Title. What are the console equivilents of the "Open Contract Drawer"?


r/tf2scripthelp • • Jun 15 '15

Resolved Stabby's scripts for mousewheel

1 Upvotes

Hey, I wanna use stabby's viewmodel scripts for amby, but for mousewheel. Does anybody have a way so that you can get ONLY the scripts for viewmodels except for mousewheel?


r/tf2scripthelp • • Jun 05 '15

Resolved Gamepad broke a script?

1 Upvotes

I was recently playing tf2 with a friend when he told me to use my gamepad. I tried it, but I decided I didn't like it, so I unplugged it. As soon as I did, my soldier started rapid firing. I got him to stop, but now one of my scripts has stopped working. I had a rocketjumping script bound to Mouse3. Upon using it now, it jumps, but doesn't fire.

I'm also having an issue with weapon cycling. Normally, if I pressed "3" it would go to my third weapon slot and pull out said weapon. Now, it opens the side gui that displays the weapons and selects #3. However, it doesn't pull it out. I have to click for it to come out. This isn't a major bother, but in the heat of battle, the need to switch is key.

Here's my soldier script: Also, just a note that until I unplugged the gamepad, this script worked fine.

exec reset
alias +soldier_rocketjump "slot1; +jump; +duck; +attack"
alias -soldier_rocketjump "-jump; -duck; -attack"
bind mouse3 "+soldier_rocketjump"

Thanks for any help, NauticalLegacy


r/tf2scripthelp • • May 24 '15

Answered Is it good or bad scripting practice to create more cfgs for other things such as options and graphics settings? I also have ab additional question about spec_mode.

1 Upvotes

Hey guys.

I've noticed sometimes when I'm making my autoexec cfg that it will often times become very full of text, which makes it harder to navigate and edit.

Sometimes when looking at other peoples autoexec cfgs, I've noticed that they will have things at the top, such as

exec graphics
exec settings
exec options

Wouldn't it be better to have seperate cfgs for these things? So i could put all my graphics settings in one place. Or my options settings in another place etc.

Then putting exec (options,settings,graphics) at the top of your autoexec cfg would make it much more clean.

I've seen quite a few other people who do this and I'm just wondering if it's a good or bad thing to do. Is it down to personal preference? I can't really see any downsides too it, but I'm still very new to all of this so I'm just a little unsure.

The other question i had was about spec_mode. I know this is in the wiki/faq and i see this sub has had many questions regarding this, but I'm struggling with this.

Right clicking and left clicking change spectator just fine, It's just spectating in first person which is not working for me. I was told that just binding space to +jump would work fine and that you do not need to add spec_mode to it since it triggers automatically. That's something i had in that past which worked fine. But at the moment i have space bound to crouch jump and now i can't spectate in first person.

I have tried adding/removing spec_mode to the bind, and this did not work. So I'm a little stumped on this one, could anyone help me out? Any help would be appreciated. Here is my reset.cfg. Also, if you see anything bad/wrong about my reset cfg, please let me know.

//[ fixes
// medic fix
-attack
//]


//[ Movement
bind w             +forward             					 
bind s             +back                					 
bind a             +moveleft            					
bind d             +moveright           					 
bind ctrl          "+duck"                				
bind space         +crouchjump; spec_mode  	                   
alias              +crouchjump "+duck;+jump"
alias              -crouchjump "-duck;-jump"
//]
   
	
//[ Combat
bind MOUSE1         +attack
bind MOUSE2         +attack2
bind MOUSE3         +attack3
bind MWHEELUP       invprev             
bind MWHEELDOWN     invnext            
bind q              lastinv             
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
//]


//[ Viewmodels & FOV
r_drawviewmodel 1
viewmodel_fov 75
fov_desired 90
//]


//[ Reset for other keys
bind G +taunt
bind R +reload
bind f inspect
//]


//[ Voicemenu Script
bind mouse1       +v_attack
bind mouse2       +v_attack2
bind q            v_lastinv
bind shift        +voice

alias voice_m1    "voicemenu 0 6"
alias voice_m2    "voicemenu 0 7"
alias voice_q     "voicemenu 2 6"

alias +eq_attack  "+attack; spec_next"
alias -eq_attack   -attack
alias +eq_attack2 "+attack2; spec_prev"
alias -eq_attack2  -attack2

alias +voice      "alias +v_attack voice_m1;   alias -v_attack ;           alias +v_attack2 voice_m2;    alias -v_attack2 ;            alias v_lastinv voice_q"
alias -voice      "alias +v_attack +eq_attack; alias -v_attack -eq_attack; alias +v_attack2 +eq_attack2; alias -v_attack2 -eq_attack2; alias v_lastinv lastinv"
-voice
//]

r/tf2scripthelp • • Apr 25 '15

Answered Bind change script question from primary weapon to secondary weapon

1 Upvotes

Is it possible to make a script where the primary and alternate attacks are changed based on the weapon that is out?

I'm trying to make a script where the bindings for primary and alt attack is set for the primary weapon and when I switch to the secondary weapon the primary and alt attack bindings change to different keys.


r/tf2scripthelp • • Feb 10 '15

Answered What's a good performance-enhancement script I can actually build off of?

1 Upvotes

I've been using a generated script, and the biggest problem I have with it is all the extra features it implements, like changing reticle, null movement, auto-rocket jump- right out of the box. I don't know where anything is, and numerous times I've added a script only to discover a conflict or- in the case of a null movement script I put on Medic and then later discovered via Engie- was already there.

On top of that, the script seems to disable sprays, despite me checking a box on the generator that tells it to force sprays, and its rebinding keys not only makes the Options menu useless for the task, but I can't crouch, manually reload/use the Eureka Effect's teleport, or call a vote because those keys aren't bound.

All I want from it is a framerate increase. I can add things like null movement and remapping keys myself, but I don't know how to increase framerate.

EDIT: The generator I was using is TF2Mate.


r/tf2scripthelp • • Jan 24 '15

Answered Round Start Medigun Checker

1 Upvotes

So backstory: I'm playing scout for my 6s team. I wan't to be able to swap to spy, disguise medic, and check medigun in the pre-round freeze. I can do this fine manually, but felt like scripting it would just ease the pain.

Now maybe I'm overthinking this, but through testing because of how disguise takes a little bit of time, this is what I came up with.

bind z spybutton
alias spybutton spy1
alias spy1 "disguise 5 -1; alias spybutton spy2;"
alias spy2 "slot2;lastdisguise; alias spybutton spy3;"
alias spy3 "join_class scout"

I hit z on scout to join spy. I hit z again to disguise. Then after the disguise is over I can hit z again to go back to scout.

So good news: It works. Bad news: I have to time my presses manually anyway, or the slot2 lastdisguise won't happen while the spy is still disguising. If I do that by accident, my next Z press will rejoin scout.

Is there any way to circumvent this? If no, I'll likely just separate the join_class, so I can spam Z, but would appreciate any input.


r/tf2scripthelp • • Jan 16 '15

Answered 2 Questions, one about targetting players/bots globally, one about refilling charge.

1 Upvotes
  1. How do I target everyone in a server?

So, e.g. if I want to play in training mode, and give all the bots crits or make everyone jump or something. I know that to add crits to myself it's "sv_cheats 1" followed by "addcond 33" but how do I add it to all players/bots on the server?

i.e.

"target_all" addcond 33

2) How do I auto-refill my charge meter as Demoman?

I want to try practicing ramping/charge jumping but I don't like having to wait for the charge meter to refill after every jump... is there a way to get it to refill automatically?

I probably have other questions too after this because scripting looks like it can do loads of cool stuff... but just these 2 for now. Thanks!


r/tf2scripthelp • • Dec 23 '14

Answered Stopping partner taunts

1 Upvotes

I binded space as something else and then when i use a partner taunt i can't stop until someone comes because pressing space doesn't stop it. the thing that i used space as is +jumo and +use_action_slot_item. Is there like a commad to stop partner taunts?


r/tf2scripthelp • • Oct 17 '14

Question My untouched cfg folder is already full of stuff

1 Upvotes

I'm extremely new to scripts, and so I have a few scripts I'd like to try out, but when I open my cfg folder, I see no autoexec.cfg or any of the class.cfg files, just a ton of random stuff that a can't make of. Should I delete all of it or ignore it? Here's a picture of it all.


r/tf2scripthelp • • Sep 13 '14

Question Enemies Sodden counter?

1 Upvotes

Is it possible to tell how many enemies you've hit with jarate or mad milk in one throw?

I don't know if there's a script or such for it, but I figure since it instantly adds to a strange count, there should be -some- way of viewing it real time.

Sorry if this is the wrong place to ask.


r/tf2scripthelp • • Aug 25 '14

Question Is it possible to make a "togglable" mouse2 script?

1 Upvotes

I want a script that can toggle mouse2 on and off and would act similar to holding it down. This is for the gunslinger so that it can store the hits for the 3rd crit hit. Useful so you don't have to run around the map holding mouse2 just to find someone to crit. Is it possible?


r/tf2scripthelp • • Aug 04 '14

Resolved script to pull a random phrase from a pool

1 Upvotes

Im looking for a script that when you press a key post a random phrase from a large pool into chat. I couldnt find anything from searching around and would appreciate help even if its just knowing if this is possible to do


r/tf2scripthelp • • Jul 28 '14

Resolved How do I run a script with only certain weapon out

1 Upvotes

I wrote this script: alias "+JumpShoot" "+jump; +attack" alias "-JumpShoot" "-jump; -attack" alias "+RevShoot" "+jump; +attack2" alias "-RevShoot" "-jump; -attack2" bind "mouse1" "+JumpShoot" bind "mouse2" "+RevShoot" Its jumps and revs/starts shooting in midair, my problem is it also jumps while my melee is out, is there anyways to only use this this script with the minigun? PS. I still want to be able to use scroll wheel up and down to change weapon


r/tf2scripthelp • • Jul 26 '14

Issue Need help with Spy autoreloading script.

1 Upvotes

r/tf2scripthelp • • Jul 01 '14

Issue SCRIPT DON'T WANT TO GO :(

1 Upvotes

Hi guys. Ive installed a script : when i bind "c" it says ENEMY MED DOWN. But i don't know why, but when i press the bind for set up my sound on my laptop, it do the same thing : ENEMY MED DOWN. I change my sound often so it's a bad thing. So i erase it from my spy.cfg, but it still work :( when i press "c" or the loud sound key it says that... So how to fix it ? Seriously, i'm borred how to unstall it ? Thx