CSprayCan (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Note:Derived from CBaseEntity and not tied to any in-game classname using LINK_ENTITY_TO_CLASS()
Note:No limit to amount of sprays active at once (presumably limited to some sort of decal limit[Clarify]) and is sprayable on any brushes
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{TabsBar|main=spraycan}} | {{TabsBar|main=spraycan}} | ||
{{CD|CSprayCan|base=CBaseEntity|goldsrc=[https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/player.cpp#L3378 player.cpp]}} | {{CD|CSprayCan|base=CBaseEntity|goldsrc=[https://github.com/ValveSoftware/halflife/blob/b1b5cf5892918535619b2937bb927e46cb097ba1/dlls/player.cpp#L3378 player.cpp]}} | ||
{{This is a|entity class|name=CSprayCan|engine= | {{This is a|entity class|name=CSprayCan|engine=GoldSrc}} This is used when player uses impulse 201 command to spray on a wall. | ||
{{note|Derived from CBaseEntity and not tied to any in-game classname using [[LINK_ENTITY_TO_CLASS()]]}} | {{note|Derived from CBaseEntity and not tied to any in-game classname using [[LINK_ENTITY_TO_CLASS()]]}} | ||
{{note|No limit to amount of sprays active at once (presumably limited to some sort of decal limit{{clarify}}) and is sprayable on any brushes}} | {{note|No limit to amount of sprays active at once (presumably limited to some sort of decal limit{{clarify}}) and is sprayable on any brushes}} |
Latest revision as of 12:36, 11 May 2025
![]() |
---|
CSprayCan |
![]() |
CSprayCan
is an entity class available in all GoldSrc games. This is used when player uses impulse 201 command to spray on a wall.


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 |