List of TF-exclusive commands (for scripts)

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Teflon23 points.
  • Post: Give Teflon23 your thoughts on this Tutorial.
  • Vote: Help Teflon23 win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

This is a listing of TF-exclusive commands taken from http://www.planetfortress.com/scripts/commands-tf.html. det5 This is a quick alias TF Software already setup for you. Bind a key to this and as a demolition man you will begin setting a detpack. The detpack takes 4 seconds to set and will detonate in 5 seconds. If you let go of the binded key before the msg "det pack set" appears then you will halt setting a det pack. +det20 This is a quick alias TF Software already setup for you. Bind a key to this and as a demolition man you will begin setting a detpack. The detpack takes 4 seconds to set and will detonate in 20 seconds. If you let go of the binded key before the msg "det pack set" appears then you will halt setting a det pack. +det50 This is a quick alias TF Software already setup for you. Bind a key to this and as a demolition man you will begin setting a detpack. The detpack takes 4 seconds to set and will detonate in 50 seconds. If you let go of the binded key before the msg "det pack set" appears then you will halt setting a det pack. +gren1 Bind this to a key. When you press the key a normal hand grenade (same as typing "primeone") will be prepared (you pull the trigger). But when letting go of the key, the -gren1 is activated and it uses the "throwgren" command to toss the grenade. So basically you press then let go of the button and a grenade will be thrown (if you have one). +gren2 Bind this to a key. When you press the key a special grenade (same as typing "primetwo") will be prepared (you pull the trigger). Each class has a special grenade: Scout: Flash Grenade Heavy Weapons Guy: Mirv Grenade Sniper: Flare Grenade Pyro: Napalm Grenade Soldier: Nail Grenade Spy: Hallucinogen Gas Grenade Demolition Man: Mirv Grenade Engineer: EMP Grenade Medic: Concussion Grenade But when letting go of the key, the -gren2 is activated and it uses the "throwgren" command to toss the grenade. So basically you press then let go of the button and a grenade will be thrown (if you have one). autozoom Although some perfer to use customized scripts, autozoom is the standard sniper zoom tool that comes with TF. It can be accessed and turned off by typing either "autozoom" or "special" in the console IF you are a sniper. Autozoom is useless to any other class. What autozoom does is when you hold down the attack key with the sniper rifle, your screen slowly zooms in until it reaches its maximum distance. At that point your sniper rifle is fully powered and ready to gib. After shooting the autozoom quickly zooms out. build An engineer command which prompts a menu to build either a sentry gun or an ammo/armor dispensor. If you have already built one or both of the items, the menu-item is then replaced with the option to remotely destroy what you have built. This will be handy in case what you build some how fell out of the level or you are just to far away to manually dismantle it. This build menu for the engineer can also be accessed using the "special" command. changeclass This will popup a menu of all the available classes you can change to if allowed on this server. If you use this command while alive and pick another class, the next time you respawn you will be that class. It is the same class-pick menu you see when first joining the server. demoman When you type this on a capable server the next time you respawn, you will be a Demolition Man. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. det5 This forces a demolition man to set a det pack of 5 seconds. The only way to stop setting a det using this command is to type "impulse 169" in the console. This is already on key release using the "+det5" command which I recommend using instead. det20 This forces a demolition man to set a det pack of 20 seconds. The only way to stop setting a det using this command is to type "impulse 169" in the console. This is already on key release using the "+det20" command which I recommend using instead. det50 This forces a demolition man to set a det pack of 50 seconds. The only way to stop setting a det using this command is to type "impulse 169" in the console. This is already on key release using the "+det50" command which I recommend using instead. detpipe A Demolition Man has pipebombs as a weapon (impulse 7 to select it). After laying down the maximum pipebombs allowed, the demolition man must use the "detpipe" command to detonate them. TF game has a maximum of 10 pipebombs on a map. So if their are 2 teams, then the number of pipebombs are evenly divided among that number, giving each team a maximum of 5 pipebombs. discard A medic (and any other class) can pick up rockets in hope to get a grenade, but since the medic doesn't need the rockets themselves, similar to a soldier doesn't need nails, and many other classes can pick up uneeded ammo, this command will drop a backpack of all the ammo that the player cannot use. So if you run into the resupply room of 2fort4 and grab all the rockets as a sniper, be friendly to your teammates and use this command to drop all the ammo that you don't need. disguise This alias is for the spy. It can also triggered using the "special" command when you are a spy, and selecting it from the menu. If a server has the variable "spyinvis" set to "on" (the alias for "spyinvis" is "s") then when you use the disguise command, instead of getting a menu to choose a new skin and color, it will automatically turn you invisible, making it an easy one step process. To find out if the server is using "spyinvis" instead of team and class changing for spys, in the server console type "serverinfo" or simply from the Qspy server variable dialog if you see a something that shows "spyinvis" "on" then spyinvis is on that server. Changing Skin and Team Color: Some people have not figured it out yet, but you CAN change color AND skin both... If you change your skin then quickly use the disguise command again, you will find that you get the message "You stop going undercover". This is because you haven't let yourself finish changing your skin, or color or whatever you did first. To do both, first choose from the menu to either change skin or color. When you see the message "You skin has changed..." then you will notice that you appear "invisible". You actually are not invisible unless the server is using spyinvis, it's just to show you that you are still undercover. A note is also on the status bar to show you how you are disguised. When you see the message, you can then go ahead and change the other now, your color if you changed skin first. It's a two step process. See also: feign dropammo 1: 20 Shells 2: 20 Nails 3: 10 Rockets 4: 10 Cells 5: Nothing This command returns a center printed menu requesting which type of ammo to drop, which an example menu is at the left. There are quick easy ways to use one button press to do each item on the menu instead of pulling the menu up and reading it then choosing from the list. For example, you can bind an alias to 'N' and when you press 'N' key it drops 20 nails... primarily if you want to give a Medic 10 nails. To read more about doing this, look at the "Other Custom Impulses" section. When you choose from the list, it drops the specified ammount of ammo on the right you selected from the list (if you have any). dropkey This command only works in coop mode of a TF game. When you retreive a flag and you want to drop it so you can give it to another player, use this command. For example, if you and a friend are playing E1M3 in coop mode and you have the yellow key from the swamp. But you want him to open the door (for what reason I don't know) type this in the console and you throw the key in front you of, for any player to grab. This command will not work in deathmatch mode, matter of a fact, it will only drop Quake's standard keys. dropitems If you are carrying an item_tfgoal (a flag or something) and the map maker gave the drop ability to it, by using this item in deathmatch mode, you can drop the flag. It is similar to the coop mode dropkey command except for keys in deathmatch mode which allow it. engineer When you type this on a capable server the next time you respawn, you will be an Engineer. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. feign Another special spy command. Every run into a dead player on the floor that you can't jump on? And then you look down on the floor and the dead player is spinning in circles?! Well it's most likely a spy feigning (playing dead) on the ground. It takes no ammo to feign, after all, the spy is only lying on the ground. Enemy players still can kill you if you are feigning, but its pretty tricky if you have it assigned straight to a key and you think somebody is coming, wham, nobodys there ;) flaginfo On maps that are capable, this command will return what the state of specifed (up to four) flags are. It works the same as CTFs "impulse 23". Most mapmakers from TFv2.5 onwards that has flags will probably be in the map. Some older maps that have flags does not use this command in the info_tfdetect, because it simply did not exist. hwguy When you type this on a capable server the next time you respawn, you will be a Heavy Weapons Guy. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change commands will be disabled on this server. id A cool command which was implemented in a beta of TFv2.5. When this is typed in the console (works best if you bind it to a key) it shoots an invisible bullet (same way you shoot a shotgun) and if the bullet hits anybody, the name of that player is centerprinted to your screen, and you are told if the player is an "enemy" or a "friend". When you shoot a sentry gun or a dispenser with this command, it centerprints the name of the player who made them. Spies work differently. If you shoot a disguised spy, and the spy is an enemy, the QC looks for all the players on the team who have the same color and skin and randomly centerprints the name of one of those players. If by chance there are no other players on the team with the skin the spy is using, then the QC randomly centerprints anybody on the team the spy is disguised as. And it is possible that you id a spy and it centerprints your name because the spy is disguised as you. imin1 You will not very likely need to use this because TeamFortress has menus setup when you first join the server. When you see the menu "1... Team 1" the number is actually a pre-impulse to "imin1". So if you want to be a player on Team1 and there is an option for Team1, you can either join Team1 by pressing 1 at the menu or type "imin1" at the console. imin2 You will not very likely need to use this because TeamFortress has menus setup when you first join the server. When you see the menu "2... Team 2" the number is actually a pre-impulse to "imin2". So if you want to be a player on Team2 and there is an option for Team2, you can either join Team by pressing 2 at the menu or type "imin2" at the console. imin3 You will not very likely need to use this because TeamFortress has menus setup when you first join the server. When you see the menu "3... Team 3" the number is actually a pre-impulse to "imin3". So if you want to be a player on Team3 and there is an option for Team3, you can either join Team3 by pressing 3 at the menu or type "imin3" at the console. imin4 You will not very likely need to use this because TeamFortress has menus setup when you first join the server. When you see the menu "4... Team 4" the number is actually a pre-impulse to "imin4". So if you want to be a player on Team4 and there is an option for Team4, you can either join Team4 by pressing 4 at the menu or type "imin4" at the console. impulse 21 This impulse directly selects the grappling hook on capable maps and servers. If you are using "impulse 1" to toggle between your axe weapon and the grappling hook, this tool provides a quick and sure way to immediately select the grappling hook on maps which would be very helpful on some maps like "Volcano!". If the server variable "g" is "on" then the TF QC looks in the info_tfdetect of the map and checks to see if the map wants to use the grappling hook. For example: the map "Volcano!" needs the grappling hook so the entities in the map tell the QC that it wants the grappling hook. On maps like "2fort4" the entities tell the QC that it won't allow the grappling hook in this map, even though the server has it turned on. If the server variable "g" is "off" or non-existant then all maps will not be allowed to use the grappling hook, even if the entities in the map ask it. To check the "g" server variable, connect to the server and type "serverinfo" or just look in the QSpy Server Variable list window. impulse 40 If the grappling hook is enabled on the server, then it may be very difficult to switch between the axe weapon for your class and the grappling hook just by using "impulse 1". Impulse 40 directly selects the axe for your class. (Knife for Spy, Spanner for Engineer, BioWeapon for Medic, Axe for everyone else.) inv Short for "Invetory", this command displays how many grenades you have left, how much special stuff (detpacks etc..) and other cool details such as what type of armor you are using. Just type it in the console... maphelp For maps that are capable, type this in the console and you will get a very breif description of how to play the map, or credits, or any little note that the map maker wishes. Older maps do not have this option simply because it was not implemented then. medic When you type this on a capable server the next time you respawn, you will be a Medic. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change commands will be disabled on this server. nextskin Servers have the option to use "ClassSkin" or "MultiSkin" by specifying the "t_skin" alias. If the server has "MultiSkin" on you can select the next skin in the "player.mdl" and use it instead of the skin you are currently using. To find out if "MultiSkin" is on, type "showtf" at the console to display the toggle flags of the TF Server. prevskin Servers have the option to use "ClassSkin" or "MultiSkin" by specifying the "t_skin" alias. If the server has "MultiSkin" on you can select the previous skin in the "player.mdl" and use it instead of the skin you are currently using. To find out if "MultiSkin" is on, type "showtf" at the console to display the toggle flags of the TF Server. primeone This was the first alias that prepared a normal hand grenade. Basically, it pulls the trigger of a hand grenade (if you have one), and beware, because you are still holding it. It will blow up in your hand in 4 seconds if you don't use the "throwgren" command which throws the grenade in front of you. primetwo This was the first alias that prepared a special grenade for your class. There is a list of what class has what special grenade under the "+gren2" alias. Basically, it pulls the trigger of a grenade (if you have one), and beware, because you are still holding it. It will blow up in your hand in 4 seconds if you don't use the "throwgren" command which throws the grenade in front of you. pyro When you type this on a capable server the next time you respawn, you will be a Pyro. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. query TeamFortress does Team Equalisation. Basically, Team Equalisation subtely alters the "toughness" of team members based upon how well that team is doing. The TF QC calculates how well a team is doing based upon two things: 1) The number of players in each team 2) The total teamscore of each team For each team the TF QC calculates an equalisation value, and then all damage done by this team is multiplied by that value, and all damage taken is divided by the value. You can see the values for all teams by using the "query" alias. randompc When you type this on a capable server the next time you respawn, you will be a Random Player Class. This randomly chooses a class for you, and it always changes when you respawn. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. reload TeamFortress weapons use "clips" for weapons that should have in real life. The "status bar" shows how much ammo you have left in your current clip. When you clip is empty, you need to reload, and it takes a couple seconds. So if your clip is almost empty and you have a couple seconds to spare, the reload command will fill that clip up instead of having to do it in the middle of a fight. This is very useful to soldiers and their rocket launcher. saveme Saveme flashes lightning around your player and yells "medic!". Only medics or engineers on your team, or spies on both teams, can see this lightning. It is used for if you need armor or health and there is somebody near by to help you out. scan10 Using the Scout's Scanner, this scan's a radius using 10 cells. See The Motion Detector on how the cellss are used according to this distance the scanner scans. Note it only scans for motion, so if there is a camper in the 2fort4 flag room, this will not detect them because they aren't moving around. scan30 Using the Scout's Scanner, this scan's a radius using 50 cells. See The Motion Detector on how the cellss are used according to this distance the scanner scans. Note it only scans for motion, so if there is a camper in the 2fort4 flag room, this will not detect them because they aren't moving around. scan100 Using the Scout's Scanner, this scan's a radius using 250 cells. See The Motion Detector on how the cellss are used according to this distance the scanner scans. Note it only scans for motion, so if there is a camper in the 2fort4 flag room, this will not detect them because they aren't moving around. scane The Scout Class has a motion detector called "The Scanner". This scanner can scan either friends or enemies, and of course, they can only scan people who are in motion, not camping. Using the "scane" command will toggle the scanner to scan for enemies. scanf The Scout Class has a motion detector called "The Scanner". This scanner can scan either friends or enemies, and of course, they can only scan people who are in motion, not camping. Using the "scanf" command will toggle the scanner to scan for friends (teammates). scout When you type this on a capable server the next time you respawn, you will be a Scout. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. showclasses This command is executed when you first join a team. It tells you the name and class of every team member. The format is simple, you see it everytime you join a team...: nick1 : class1 nick2 : class2 Network : Pyro Like that, and you can use it at anytime. So if you didn't get to id that shmo pyro that killed the president on Hunted, just use this and maybe there is only one pyro ;) showloc Very handy if you are planning on adding some entities in a map that already exists. Type this in the console when you are connected to a server or playing single player, whatever, and it returns your 3 coordinate location of the map, in (X Y Z) form. Coordinate planes stretch from -4095 to 4096. Example output would be: 562 323 902 showscores The quake command that you press tab to see the list of players and frag count is "+showscores". That command withouth the plus returns the team scores in a TeamFortress game. Example output is like: "Darkblue : 5 Red : 10" You don't need this if you use the Status Bar, but it would probably come in handy if you don't. showtf This doesn't stand for "Show TeamFortress", it stands for "Show Toggle Flags". Servers use toggle flags to indicate how it will run. The toggleflag aliases all begin with "t_". When reading the ON/OFF of the toggle flags, this is what you are reading (and quoted from the readme.txt). This command may or may not be removed in the latter versions of TeamFortress: Multiskin/Classkin: This option switches between Multiskin, where each player can use the skin commands to cycle through all the available skins and choose one they like, and Classkin, where each player has his/her skin chosen for them based on their class. Class Persistence On/Off: This option allows you to turn on Class persistence between levels. E.g. If it's on, when you go to a new level each player will stay the same class they were in the last level. Cheat Checking On/Off: This option toggles whether you want speed checking of players in an attempt to catch people tinkering with their maxspeed. It's not an elegant way of checking, and is by no mean foolproof, so you may wish to turn it off. If you're playing with friends, turn it off and save some of the server's computing time. If you're playing on the net, you might want to leave it on. It's better than nothing... FortressMap On/Off: This option turns on the use of effects which only work on maps built specifically for TeamFortress. I'd advise against turning it on in maps that aren't built for TeamFortress. If you play on a TeamFortress Map, TeamFortress will detect this, and set this setting On, but you're welcome to turn it off if you want to deathmatch. AutoTeam On/Off: Then on, AutoTeam will automatically assign players to the team with the least number of people in it, when the player chooses his/her class. Respawn Delay Cycle: You can cycle through various respawn delay times. Respawn delay time is the amount of time a player is unable to respawn for after they die. This is useful in Team Games to prevent players from killing themselves to get back to their Fortress quickly. TeamFrags On/Off: When On, this toggleflag makes each player's frag count equal to the number of points his/her team has. Using TAB key you can then see how each team is going. Server Toggle: This toggleflag has one use: When it's set, no toggleflags can ever been changed again. This can be used by a server operator to set the state of the toggleflags and then lock them in place. skin# You can directly choose the skin number you want to use out of the player.mdl if MultiSkin is on. If it is not, this command will not work. There is a more detailed description on MultiSkin at choosing skin at these other locations... sniper When you type this on a capable server the next time you respawn, you will be a Sniper. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. soldier When you type this on a capable server the next time you respawn, you will be a Soldier. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. special I probably use this command more than any other, so I suggest to bind it to a key. They do the "special" commands for each class, so you don't have to bind a million different things if you play several different classes. Here is what this command does for each class: Scout: Scan using 2 cells Sniper: Toggle Autozoom Soldier: Reload Weapon Demoman: Detonate Pipebombs Medic: Change to Bioweapon Heavy Weapons Guy: Change to Assult Cannon Pyro: Change to Flame Thrower Spy: Invisible / Disguise Menu Engineer: Toggle Build Menu spy When you type this on a capable server the next time you respawn, you will be a Spy. You can find out if the server is capable of this command by verifying the "deathmatch" variable by typing "serverinfo" in the console when connected to the server, or simply checking the server status in QSpy. If "deathmatch" has a value of any number other than "3", then the class change pre-impulses will be disabled on this server. throwgren Ever type "primeone" in the console and get "No Nick, throw the grenade not the pin!"? Well its because you need to use this! Grenade tossing is two steps: pull the pin then throw. If you use +gren1 or +gren2 then you don't need to use this because it already has it set up. But if you want to make your own custom grenade scripts, then use this to throw the grenades.

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
planetfortress.com
Unknown
G-Man
Unknown

Submitter

Teflon23 avatar
Teflon23 Offline
Member Joined 11y
2,855 points Ranked 1623rd

Teflon23
Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Miscellaneous
qwtf
Genre
Other/Misc

Stats

Posts
0
Views
3,786
Date Added
9y
Date Modified
6y
bcp.crwdcntrl.net tracking pixel