info_projecteddecal
![]() |
---|
CProjectedDecal defined in ![]() world.cpp
|
info_projecteddecal
is a point entity available in all 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.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Counter-Strike: Source](/w/images/thumb/a/ad/Css_icon.png/16px-Css_icon.png)
![Half-Life 2: Deathmatch](/w/images/thumb/8/80/Hl2dm_icon.png/32px-Hl2dm_icon.png)
![Portal](/w/images/thumb/6/6d/Portal_icon.png/16px-Portal_icon.png)
![Left 4 Dead](/w/images/thumb/a/ad/Icon-L4D.png/16px-Icon-L4D.png)
![Left 4 Dead 2](/w/images/thumb/8/8b/Icon-L4D2.png/16px-Icon-L4D2.png)
![Portal 2](/w/images/thumb/3/3c/Portal2_icon.png/16px-Portal2_icon.png)
![Counter-Strike: Global Offensive](/w/images/thumb/8/85/Csgo_icon.png/16px-Csgo_icon.png)
- On a new round entities with this classname will intentionally not reset. You can use
logic_auto
to emulate resetting it. - Killing it removes it forever, as it is not respawned on a new round.
- It cannot be spawned with a
point_template
. - Parenting this with non preserved entities may have undesirable effects.
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Note:Unnamed info_projecteddecal applies the decal right after spawning and then removes itself.
- texture
(texture)
<decal> - The image to apply as a decal.
- Distance
(Distance)
<float> - Maximum distance from the origin to project the decal.
Angles:
- Pitch Yaw Roll (Y Z X)
(angles)
<angle> - 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 and removes itself.