infodecal
![]() |
---|
CDecal defined in ![]() world.cpp
|
infodecal
is a point entity available in all Source games. It is used to place a static decal in a map.
It is the entity created when the Decal tool is used. It places a texture on any surface, with transparency if the texture being applied supports transparency. In
GoldSrc, these textures were indicated by being in decals.wad, while in
Source, they are indicated by the
$decal
material parameter and typically placed in the decals/
texture folder. When needed, an overlay can be used for more control over the applied texture. For example, an infodecal
cannot be resized, or rotated, while an overlay can; however, overlays cannot be applied dynamically.
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
infodecal
does not have an underscore!![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, its properties including its position 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)
![Team Fortress 2](/w/images/thumb/8/84/Tf2-16px.png/16px-Tf2-16px.png)
![Icon-Bug.png](/w/images/thumb/b/b4/Icon-Bug.png/10px-Icon-Bug.png)
Bad inline model number N, worldmodel not yet setup
Keyvalues
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Note:Unnamed infodecal applies the decal right after spawning and then removes itself. If named,
Activate
input needs to be fired to spawn the decal. The entity counts towards edict limit in both cases though in the first case, it's only for a fraction of second.
- texture
(texture)
<decal> - The image to apply as a decal.
- Low Priority (can be replaced)
(LowPriority)
<boolean> - If true, allows the decal to be removed to accommodate newly-placed decals. Default behavior is false (high priority), meaning it is always present.
- Apply Entity
(ApplyEntity)
<targetname> (in all games since)
- An optional entity to apply the decal to. If this is empty, the decal will locate the entity by tracing.
Inputs
Activate
- Force the decal to apply itself to the world and removes itself.