This article's documentation is for anything that uses the Source engine. Click here for more information.

Spraycan: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-)
 
m (copyedit)
Line 1: Line 1:
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{CD|CSprayCan|file1=player.cpp}}
{{CD|CSprayCan|file1=player.cpp}}
{{this is a|point entity|name=spraycan|except=Counter-Strike: Global Offensive}} This is the entity that applies player chosen spray on walls when they use their spray bind
{{this is a|point entity|name=spraycan|except=Counter-Strike: Global Offensive}} This is the entity that applies player-chosen spray on walls when they use their spray bind.


== ConVars ==
== ConVars ==
{{varcom|start}}
{{varcom|start}}
{{varcom|decalfrequency|10|seconds|How much must a player wait in seconds before they are able to spray another time}}
{{varcom|decalfrequency|10|seconds|How much must a player wait in seconds before they are able to spray another time}}
Line 14: Line 13:
{{todo|check what games are the cvars available in}}
{{todo|check what games are the cvars available in}}


== See Also ==
== See also ==
* {{ent|info_projecteddecal}}
* {{ent|info_projecteddecal}}
* {{ent|infodecal}}
* {{ent|infodecal}}

Revision as of 13:11, 22 June 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CSprayCan
CPointEntity
CBaseEntity
C++ player.cpp

spraycan is a point entity available in all Source Source games except Counter-Strike: Global Offensive Counter-Strike: Global Offensive. This is the entity that applies player-chosen spray on walls when they use their spray bind.

ConVars

Cvar/Command Parameters or default value Descriptor Effect
decalfrequency 10 seconds How much must a player wait in seconds before they are able to spray another time
Left 4 Dead 2 r_spray_lifetime 10 Number of rounds player sprays are visible
Left 4 Dead 2 cl_logofile Spraypoint logo decal.
Left 4 Dead 2 cl_playerspraydisable 0 Disable visibility of player sprays.
Todo: check what games are the cvars available in

See also