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

spraycan

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Class hierarchy
CSprayCan
CPointEntity
CBaseEntity
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 (impulse 201).

ConVars

Cvar/CommandParameters or default valueDescriptorEffect
decalfrequency10secondsHow much must a player wait in seconds before they are able to spray another time
r_spray_lifetime10Number of rounds player sprays are visible
Note.pngNote:In Left 4 Dead series sprays disappear after r_spray_lifetime / 2 rounds
cl_logofileSpraypoint logo decal.
cl_playerspraydisable0Disable visibility of player sprays.

See also