This article's documentation is for the "GoldSrc" engine. Click here for more information.

CSprayCan

From Valve Developer Community
Revision as of 17:46, 3 April 2025 by Nescius (talk | contribs)
Jump to navigation Jump to search
edit
C++ Class hierarchy
CSprayCan
CBaseEntity
C++ player.cpp

CSprayCan is an entity class available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{goldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This is used when player uses impulse 201 command to spray on a wall.

Note.pngNote:Derived from CBaseEntity and not tied to any in-game classname using LINK_ENTITY_TO_CLASS()
Note.pngNote:No limit to amount of sprays active at once (presumably limited to some sort of decal limit[Clarify]) and is sprayable on any brushes

Convars

Cvar/Command Parameters or default value Descriptor Effect
decalfrequency 30 seconds How much must a player wait in seconds before they are able to spray another time

See also