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

Info projecteddecal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-description)
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{CD|CProjectedDecal|file1=world.cpp}}
{{CD|CProjectedDecal|file1=world.cpp}}
{{entity|info_projecteddecal|type=e0}} 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.  
{{this is a|e0|name=info_projecteddecal}} 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.  
{{PreservedEnt}}
{{PreservedEnt}}



Revision as of 11:18, 4 January 2024

C++ Class hierarchy
CProjectedDecal
CPointEntity
CBaseEntity
C++ world.cpp

info_projecteddecal is an e0 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-Important.pngImportant: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:
More info
  • 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.

Keyvalues

texture (texture) <decal>
The image to apply as a decal.
Distance (Distance) <float>
Maximum distance from the origin to project the decal.
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.
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

Inputs

Activate
Force the decal to apply itself to the world and removes itself.

See also