Difference between revisions of "Sprays"

From Team Fortress Wiki
Jump to: navigation, search
(Added note about mp_decals.)
m
 
(110 intermediate revisions by 67 users not shown)
Line 1: Line 1:
<div style="float:right">{{youtube tn|29RE0blCV84}}
+
{{hatnote|''This page refers to sprays painted on surfaces in the PC version. For the [[tool]] that allows you to spray an image onto an item, see [[Decal Tool]]. For items that can be sprayed by that tool, see [[:Category:Sprayable items]].}}
</div>
+
[[File:Spray_Example.png|thumb|300px|An example of a user set spray being put on a wall near the RED spawn on [[Badwater Basin]].]]
  
'''Sprays''' are a feature of the PC version of the game by which players can 'spray' their own pictures (Default Key: '''"T"''') onto any surface. The image file can be uploaded to your spray list in the multiplayer menu (though note that the image file must be converted into a .vtf file first). There are several sites that offer a variety of TF2 sprays already converted into vtf. format.
+
'''Sprays''' are a feature of the PC version of Team Fortress 2 that allow players to "spray" ([[List of default keys|default key:]] {{key|T}}) their own images on surfaces within a game server such as walls, ceilings, or floors instantly. It may be compared to graffiti in real life.
  
Useful gameplay application is almost negligible, though they can sometimes trick the enemy into thinking you have a crouched [[Sniper]] , [[Sentry gun]] or have placed [[Sticky Bomb]]s (from a distance) or in some cases even distract the enemy. (''See video'')
+
Sprays are essentially disabled on [[Casual Mode]]; whilst players can still spray their images, other players will not be able to see them. The main way to see sprays in the game is via [[Community servers]], though they are disabled by default and must be opted-in by the [[Advanced options]] menu. They can also be enabled with the command {{code|cl_spraydisable 0}} (default is 1).
  
There is a roundabout way to convert images to the VTF format. If you have Half-Life 2: Deathmatch or Counter-Strike: Source installed, run one of them, choose Settings, and then go to the Multiplayer tab if you're in Half-Life 2: Deathmatch. Press "Import Spray". Afterwards, navigate to the folder where the spray is. Select it. Now that it is a VTF, exit the game. Navigate to either your Half-Life 2: Deathmatch or your Counter-Strike: Source directory. Depending on the game, go to either the "HL2MP" or the "CStrike" folder, then the "materials" folder, then the "VGUI" folder, and finally the "logos" folder. Your spray will be in this folder. Cut or copy it, and navigate to the same folder in your Team Fortress 2 directory. Paste it there, and it will be accessible as a spray in the game's menus.
+
== Technical ==
 +
The image file can be uploaded to your spray list via the Multiplayer menu by selecting the spray of your choice to be imported from your steam directory. The image file must be converted to a {{code|.vtf}} [[vdc:texture|texture]] file combined with a {{code|.vmt}} [[vdc:material|material]]. The game can automatically convert {{code|.jpg}} and {{code|.gif}} files (though not animated gifs). The game will generate the material file for you if you don't create it yourself. All sprays must be no larger than 512 kb size wise, or they won't show up in game. Sprays can be bound to a key by typing {{code|bind <key> impulse 201}}, replacing {{code|<key>}} with the desired key.
  
Sprays can be enabled or disabled in the game's multiplayer options tab, but how many are displayed at once (if any) is dependent on the value that mp_decals is set to. It must be above 300 to show sprays, and the higher the value, the more sprays that can be loaded at once.
+
Sprays are automatically stored in the Steam cloud, but can, like all other Steam cloud files, be ignored by the client. Like other temp files, spray thumbnails saved on the client's local game folder are deleted ''by default'' upon shutting down ''Team Fortress 2'', and thus can't be "collected" over time in that default state. However, as of {{Patch name|10|5|2021}}, there is an option {{cvar|tf_delete_temp_files}} that can toggle temp files being deleted upon shutdown in the Advanced options menu.
 +
 
 +
They can be either enabled or disabled in the game's [[Multiplayer options]] tab, but how many are displayed at once, if any, is dependent on the value that {{cvar|mp_decals}} is set to by the [[Servers|server]] you are playing on. The value must be above 0 to show sprays, and the higher the value, the more sprays that can be loaded at once. The {{cvar|sv_pure}} console variable can also disable sprays from being displayed.
 +
 +
In-game screenshots that have been saved using the games screen capture system (default key: {{Key|F5}}) are already formatted to be used as sprays, but will most likely have reduced image quality and be illegible to other players.
 +
 
 +
==Uses==
 +
Sprays are used by players for many reasons including:
 +
 
 +
* To advertise clans or groups
 +
* Lighten up the tension of a match with comical sprays
 +
* To leave their mark on the world using it as a signature
 +
* To entertain other players
 +
* To distract other players
 +
* To warn players
 +
 
 +
The practical application of sprays in-game is almost non-existent, although they can sometimes be used to distract enemies by making them believe that there are certain obstacles in their way that in most cases would want to be avoided such as distant [[Sniper|Snipers]], [[Sentry Gun]]s, or [[Stickybomb Launcher|Stickybombs]].
 +
 
 +
Another use for sprays is for [[Spy|Spies]] to lay a trap for unwary opponents. A Spy equipped with a [[Cloak and Dagger]] can place a spray and then lie in wait for an enemy to stop and look at it, [[backstabbing]] them while their guard is down.
 +
 
 +
Another use for sprays is for advertising items for [[trading]] purposes. These sprays can serve to gather the attention of other traders in the server.
 +
 
 +
A more practical use of sprays is to warn players of location specific obstacles, such as a sentry or a Spy in the area.
 +
 
 +
There are sprays Engineers will sometimes put next to their [[Teleporter]] that denote which classes should use the Teleporter first. These lists generally put the Engineer himself on top, since he has to maintain his buildings, and the Scout on bottom, since a level 1 Teleporter charge rate would be about as fast as the Scout running to the frontlines on foot.
 +
 
 +
== Update history ==
 +
{{Update history | '''{{Patch name|9|28|2007}}'''
 +
* Added option to disable Player sprays.
 +
 
 +
'''{{Patch name|11|7|2007}}'''
 +
* Fixed crash on importing spray logo that claimed to be a valid jpeg file, but wasn't.
 +
 
 +
'''{{Patch name|1|25|2008}}'''
 +
* Fixed crash caused by trying to import a custom player spray.
 +
 
 +
'''{{Patch name|2|14|2011}}'''
 +
* Fixed a client crash caused by malformed custom client spray.
 +
 
 +
'''{{Patch name|4|14|2011}}'''
 +
* Fixed a couple cases where custom sprays would not import correctly.
 +
 
 +
'''{{Patch name|5|2|2013}}'''
 +
* Fixed user sprays not working.
 +
 
 +
'''{{Patch name|6|11|2015}}'''
 +
* Fixed a remote code Execution bug and a crash related to malformed custom spray files.
 +
 
 +
'''{{Patch name|9|16|2021}}'''
 +
* Updated custom player sprays to be disabled for players by default
 +
** Players can opt-in to see custom player sprays on community servers in the Advanced Options menu
 +
** Custom player sprays and other temp files will be deleted when disconnecting from a server
 +
 
 +
'''{{Patch name|9|17|2021}}'''
 +
* Updated custom player sprays and other temp files to only be deleted on shutdown
 +
 
 +
'''{{Patch name|10|5|2021}}'''
 +
* Added ConVar "tf_delete_temp_files" to control custom player sprays and other temp files being deleted on shutdown
 +
** Can be toggled in the Advanced Options dialog
 +
** Default is to delete the temp files
 +
}}
  
 
==Spray Resources==
 
==Spray Resources==
* [http://www.gamesprays.com/sprays/team-fortress-2/ Game Sprays : Don't Say it, Spray it!]
+
* [http://www.gamebanana.com/sprays/games/297/ Gamebanana TF2 page]
* [http://tf2sprays.com/ TF2 Sprays]
 
* [http://www.fpsbanana.com/sprays/games/297/ FPS Banana]
 
* [http://karmarogue.com/2007/10/18/team-fortress-2-spray/ Karma Rogue's TF2 Sprays]
 
  
 
[[Category:Gameplay]]
 
[[Category:Gameplay]]
[[Category:Videos]]
 

Latest revision as of 21:26, 17 December 2023

This page refers to sprays painted on surfaces in the PC version. For the tool that allows you to spray an image onto an item, see Decal Tool. For items that can be sprayed by that tool, see Category:Sprayable items.
An example of a user set spray being put on a wall near the RED spawn on Badwater Basin.

Sprays are a feature of the PC version of Team Fortress 2 that allow players to "spray" (default key: T) their own images on surfaces within a game server such as walls, ceilings, or floors instantly. It may be compared to graffiti in real life.

Sprays are essentially disabled on Casual Mode; whilst players can still spray their images, other players will not be able to see them. The main way to see sprays in the game is via Community servers, though they are disabled by default and must be opted-in by the Advanced options menu. They can also be enabled with the command cl_spraydisable 0 (default is 1).

Technical

The image file can be uploaded to your spray list via the Multiplayer menu by selecting the spray of your choice to be imported from your steam directory. The image file must be converted to a .vtf texture file combined with a .vmt material. The game can automatically convert .jpg and .gif files (though not animated gifs). The game will generate the material file for you if you don't create it yourself. All sprays must be no larger than 512 kb size wise, or they won't show up in game. Sprays can be bound to a key by typing bind <key> impulse 201, replacing <key> with the desired key.

Sprays are automatically stored in the Steam cloud, but can, like all other Steam cloud files, be ignored by the client. Like other temp files, spray thumbnails saved on the client's local game folder are deleted by default upon shutting down Team Fortress 2, and thus can't be "collected" over time in that default state. However, as of October 5, 2021 Patch, there is an option tf_delete_temp_files that can toggle temp files being deleted upon shutdown in the Advanced options menu.

They can be either enabled or disabled in the game's Multiplayer options tab, but how many are displayed at once, if any, is dependent on the value that mp_decals is set to by the server you are playing on. The value must be above 0 to show sprays, and the higher the value, the more sprays that can be loaded at once. The sv_pure console variable can also disable sprays from being displayed.

In-game screenshots that have been saved using the games screen capture system (default key: F5) are already formatted to be used as sprays, but will most likely have reduced image quality and be illegible to other players.

Uses

Sprays are used by players for many reasons including:

  • To advertise clans or groups
  • Lighten up the tension of a match with comical sprays
  • To leave their mark on the world using it as a signature
  • To entertain other players
  • To distract other players
  • To warn players

The practical application of sprays in-game is almost non-existent, although they can sometimes be used to distract enemies by making them believe that there are certain obstacles in their way that in most cases would want to be avoided such as distant Snipers, Sentry Guns, or Stickybombs.

Another use for sprays is for Spies to lay a trap for unwary opponents. A Spy equipped with a Cloak and Dagger can place a spray and then lie in wait for an enemy to stop and look at it, backstabbing them while their guard is down.

Another use for sprays is for advertising items for trading purposes. These sprays can serve to gather the attention of other traders in the server.

A more practical use of sprays is to warn players of location specific obstacles, such as a sentry or a Spy in the area.

There are sprays Engineers will sometimes put next to their Teleporter that denote which classes should use the Teleporter first. These lists generally put the Engineer himself on top, since he has to maintain his buildings, and the Scout on bottom, since a level 1 Teleporter charge rate would be about as fast as the Scout running to the frontlines on foot.

Update history

September 28, 2007 Patch
  • Added option to disable Player sprays.

November 7, 2007 Patch

  • Fixed crash on importing spray logo that claimed to be a valid jpeg file, but wasn't.

January 25, 2008 Patch

  • Fixed crash caused by trying to import a custom player spray.

February 14, 2011 Patch

  • Fixed a client crash caused by malformed custom client spray.

April 14, 2011 Patch

  • Fixed a couple cases where custom sprays would not import correctly.

May 2, 2013 Patch

  • Fixed user sprays not working.

June 11, 2015 Patch

  • Fixed a remote code Execution bug and a crash related to malformed custom spray files.

September 16, 2021 Patch

  • Updated custom player sprays to be disabled for players by default
    • Players can opt-in to see custom player sprays on community servers in the Advanced Options menu
    • Custom player sprays and other temp files will be deleted when disconnecting from a server

September 17, 2021 Patch

  • Updated custom player sprays and other temp files to only be deleted on shutdown

October 5, 2021 Patch

  • Added ConVar "tf_delete_temp_files" to control custom player sprays and other temp files being deleted on shutdown
    • Can be toggled in the Advanced Options dialog
    • Default is to delete the temp files

Spray Resources