Toggle shoutbox
Shoutbox
|

TF2 Scripts
Started by SmashedFish, May 10 2011 05:09 PM
2 replies to this topic
#1
Posted 10 May 2011 - 05:09 PM
I'm not sure if anyone else even plays TF2, but here are some awesome scripts if you do. Put all this into SteamApps/yourname/team fortress 2/tf/cfg/autoexec.cfg, and make any files/folders that aren't already there.
CODE |
alias +cfirepri "slot1; +attack" alias -cfirepri "-attack; lastinv" alias +cfiresec "slot2; +attack" alias -cfiresec "-attack; lastinv" alias +cfiremel "slot3; +attack" alias -cfiremel "-attack; lastinv" bind i +cfirepri bind o +cfiresec bind p +cfiremel alias devtog devtog1 alias devtog1 "developer 1; alias devtog devtog2" alias devtog2 "developer 0; alias devtog devtog1" bind [ devtog alias +rebind "bind 1 cfirepri; bind 2 cfiresec; bind 3 cfiremel" alias -rebind "bind 1 slot1; bind 2 slot2; bind 3 slot3"" bind shift +rebind |
What it does:
Shift: switches 1, 2, and 3 to do something else while Shift is being held. They go back after. Shift can still be bound to something else at the same time.
i or hold Shift and press 1: Takes out your primary and shoots it until you let go. Then it switches back to whatever you were holding before. Doesn't work well for Heavy.
o or hold Shift and press 2: Ditto, with secondary. Good luck with food/thrown secondaries.
p or hold Shift and press 3: Ditto with your melee. That is surprisingly stable.
[: Toggles developer, which overlays the top-left corner of your screen with console text. It can be useful when you're testing scripts, but it's of occasional usability elsewhere.
Images - 11/22 Writing - 5/17 FE: Immortal Shrine
Spoiler
Need help with hacking? Post in the subforum, or Skype me (smashedfish76).
#2
Posted 10 May 2011 - 07:58 PM
TEAMFORTRESS2
I know some people who play it but I don't. Still, scripting, for a game? Sounds intense. O-o
I know some people who play it but I don't. Still, scripting, for a game? Sounds intense. O-o
Signature thanks to Shu.
#3
Posted 10 May 2011 - 09:00 PM
It's really not, actually. My only prior experience to code when I started doing TF2 scripts was half a year in C++, and I don't even use that.
I'll give you the basics because I'm bored. The basics are as follows:
1. You can put commands into your console or scripts to make them run. If you don't know a certain command, there are a bunch of list to get to know some useful ones.
2. By binding a key to a command, you make it so that hitting the key does the command. (For example, I could type "kill" into the console to die at whim, or I could bind, say, G to kill me whenever I press it.)
3. Then, you can go and make aliases, which are strings of commands that execute in order when the allias is called. (If I had an alias called "lol" which made me taunt and then explode when executed, I could type "lol" into my console or bind a key to lol to execute it whenever.)
Scripting is just making clever aliases and binding them to keys that aren't halfway across the keyboard, all the while learning and following new rules of grammar.
TL;DR Go and read it you nerd, I spent a good five minutes typing that.
I'll give you the basics because I'm bored. The basics are as follows:
1. You can put commands into your console or scripts to make them run. If you don't know a certain command, there are a bunch of list to get to know some useful ones.
2. By binding a key to a command, you make it so that hitting the key does the command. (For example, I could type "kill" into the console to die at whim, or I could bind, say, G to kill me whenever I press it.)
3. Then, you can go and make aliases, which are strings of commands that execute in order when the allias is called. (If I had an alias called "lol" which made me taunt and then explode when executed, I could type "lol" into my console or bind a key to lol to execute it whenever.)
Scripting is just making clever aliases and binding them to keys that aren't halfway across the keyboard, all the while learning and following new rules of grammar.
TL;DR Go and read it you nerd, I spent a good five minutes typing that.
Images - 11/22 Writing - 5/17 FE: Immortal Shrine
Spoiler
Need help with hacking? Post in the subforum, or Skype me (smashedfish76).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users