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

info_projecteddecal

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CProjectedDecal
CPointEntity
CBaseEntity
world.cpp
Recycle-warning.png
This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchLeft 4 DeadLeft 4 Dead 2Portal 2Counter-Strike: Global Offensive
If the game has round restart mechanics this entity may not behave as expected.

info_projecteddecal is a point entity available in all Source Source games. It projects a dynamic decal (same type of decal as bullet holes, blood splatter etc.) onto anything capable of receiving one. If it has no target name then the decal will be applied as soon as the map loads; otherwise it will wait for the Activate input.

Icon-Bug.pngBug*:This entity being marked as preserved is most likely a mistake, because the decals it places are dynamic, therefore they do not stay between round restarts, making the entity effectively only usable by VScript

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Note.pngNote:An unnamed info_projecteddecal apply the decal right after spawning and then removes itself.
texture (texture) <decal>
The material to apply as a decal.
Distance (Distance) <float>
Maximum distance from the origin to project the decal.
Note.pngNote:The maximum is 1024 units.
Warning.pngWarning:If the decal is pointing at a brush or a displacement, the surface must be roughly within 2 units of distance for the decal to work. If it's pointing at a model, it properly works up to the maximum distance  (tested in: Left 4 Dead seriesLeft 4 Dead series)
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Activate
Force the decal to apply itself to the world, then remove itself.

Flags

Not in Deathmatch : [2048]
Makes the entity remove itself when spawning if deathmatch is set to 1.

See also