env_decal

An env_decal sprays a decal on a wall each time you trigger it, such as a bullet hole, blood, a scorch mark or a
decal of your choice.
The decal goes where a line from the entity, in the spray direction, first hits a wall, up to 4000 units away. Monsters and players don't stop the line, and if it hits nothing, nothing is sprayed.
Attributes
targetnameTriggering the entity sprays a decal. See Common keys.
targetSets where the line starts. It takes a locus position, so you can use a point such as 0 0 64, the name of an entity, or !activator for the entity that started the chain of triggers.
If you leave this key empty, the line starts at the env_decal itself.
netnameSets the direction of the line. It takes a locus vector, so you can use three numbers such as 0 0 -1 for down, or the name of an entity, which gives the direction that entity moves in.
If you leave this key empty, the entity sprays in the direction of Pitch Yaw Roll.
anglesSets the spray direction when Spray direction is empty, as pitch, yaw and roll in degrees. 0 0 0 sprays east, and a pitch of 90 sprays straight down.
0 0 0impulsePicks the kind of decal, and each spray picks one decal of the group at random.The 12 choices
Custom (0)noiseWith the group Custom, names the decal to spray, as a texture name in decals.wad.
Notes
- If the custom decal doesn't exist, the entity sprays nothing, and with
developer 1set in the console, the console names it when the map starts - If the entity can't find the position or the direction that these keys name, it sprays nothing for that trigger
- Players who join later don't see the decals sprayed before they joined
- You can only use decals that ship in SBO's
decals.wad, and a map can't add its own: the game loads decals only fromdecals.wad, and a replaceddecals.wadamong a server's downloads would break the decals of every other map. For a picture of your own on one map, you can use a{texture on afunc_illusionaryor anenv_sprite
See also
infodecal- a decal that the map places when it startsenv_blood- sprays blood that can leave a stain- Locus system - the positions and vectors these keys take
Changes since 1.38
env_decalis new in SBO 2.0.0

