env_blood

From Source Entities
Jump to navigation Jump to search

Code classes:

env_blood is a point entity present in all Source games. It creates blood effects at its origin and can optionally place blood onto other things.

Note: Main effect does not work in some games. Confirm: This is merely due to the required textures being missing.

Flags[edit | edit source]

  • 1: Random Direction - Spray Direction changes direction every time.
  • 2: Blood Stream - Launches blood sprites in the Spray Direction. Missing textures.
  • 4: On Player - Makes the blood effect appear from the player. In multiplayer games, the player needs to be the activator for this to work, or else it will go to the first player on the server.[Confirm]
  • 8: Spray decals - Places a blood decal when emitting the blood. The distance the blood decal can be from the entity will be influenced by the Amount of blood.
  • 64: Gore (Not in FGD) - Emits an effect similar to Cloud but smaller.

Keyvalues[edit | edit source]

Spray Direction (spraydir) <angle>
The direction to apply the decal in, and which way to throw the cloud and drops.
Blood Color (color) <choices>
No effect.
  • 0: Red (Human)
  • 1: Yellow (Alien)
Amount of blood (amount) <float>
Intensity; affects how far decal can go, size of blood cloud, drops and gore.

Inputs[edit | edit source]

EmitBlood
Emits the blood effect.