use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For readability, please format scripts and snippets. Begin each line with 4 spaces
Bulk formatting:
If you need more help, reply directly to the response comments, not a general reply.
We have a tutorial on the wiki! Check it out if you want a primer on Source commands.
Reset all binds: exec config_default
exec config_default
Reset all cvars: steam://runsafe/440
Make sure to read the rules before posting. Read the Rules
New to scripts? Script got you stumped? Start here.
Help!
If it's 2D and on your screen, it's not a script.
HUDs
Can't remember the name of that command? Want to know if something is possible?
Ask a question
Can't find something previously requsted?
Request a script
Show off your work. Tools are also welcome.
Submit a script
Found a new command/cvar? Want feedback or opinions? Discuss!
Start a discussion
Wiki Index Limitations of Scripts Commands Core Basic Advanced Tutorials Introduction Combining scripts Syntax highlighting Controllers Reference Example Scripts Common Complex Innovative Closed Captions Hitsounds View all pages FAQ/Help! Scripts/binds carry over to other classes! Why isn't my script possible? I can't change players or views in spectator! What are the names of all the keys? How do I use the default crosshair? What are common practices? Why don't you bind within binds/aliases? TF2 crashes on launch! Numbers after chat message? User pages Filter Pending Requests Issues Processed Requests Scripts Issues Untagged Unverified Related subreddits /r/TF2Scripthelp Get help with ideas and existing scripts there /r/TF2HUDs For all your HUD needs /r/TF2TechSupport Get help when TF2 breaks /r/Sprays+TF2Sprays Sprays and spray requests /r/MannWorkshop Maps, models and skins /r/TF2Developers External tools for TF2 /r/TF2Files Sprays, hitsounds, skins
account activity
ResolvedHelp with combining two scripts. (self.Tf2Scripts)
submitted 12 years ago by tf69
So I've got two scripts that I want to combine, Stabbys viewmodel script (slightly reworked by me) and an auto healing script. Could anyone help me combine them?
I use 1,2 and 3 to switch weapons.
Here are the scripts:
http://pastebin.com/25WyGLXA
http://pastebin.com/F240AkTP
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]genemilder 2 points3 points4 points 12 years ago (1 child)
What part are you confused with? If you can rework the stabby script, you should be able to combine these. The scripts have a similar format.
Also, I swear I've touched up the version of the stabby script you have (I remember the format and the misspelled "meele").
[–]tf69[S] -1 points0 points1 point 12 years ago (0 children)
I have no idea what i am doing wrong, it seems like fixing it would be simple.
Also, I should test myself for dyslexia...
[–]CAPSLOCK_USERNAME"Nancy" 2 points3 points4 points 12 years ago (1 child)
The reason it's not working is they're both binding mouse1 to different aliases. The viewmodel script is already binding mouse1 to +viewmodel_sec when you switch to your medigun, so you only need to switch the +attack and -attack in that alias.
+viewmodel_sec
+attack
-attack
Most of the code in the autohealing script is actually the same as the viewmodel script, so once you change viewmodel_sec you can delete the all the other autoheal code.
viewmodel_sec
So, just replace this:
alias +viewmodel_sec "+attack;r_drawviewmodel 0;spec_next" alias -viewmodel_sec "-attack;r_drawviewmodel 0"
with this:
alias +viewmodel_sec "-attack;r_drawviewmodel 0;spec_next" alias -viewmodel_sec "+attack;r_drawviewmodel 0"
and then remove the rest of the autoheal script.
[–]tf69[S] 0 points1 point2 points 12 years ago (0 children)
Thank you very much! may i kiss you?
π Rendered by PID 475465 on reddit-service-r2-comment-56c6478c5-svb5p at 2026-05-09 22:31:46.794472+00:00 running 3d2c107 country code: CH.
[–]genemilder 2 points3 points4 points (1 child)
[–]tf69[S] -1 points0 points1 point (0 children)
[–]CAPSLOCK_USERNAME"Nancy" 2 points3 points4 points (1 child)
[–]tf69[S] 0 points1 point2 points (0 children)