Skip to main content

env_render

env_render icon
Point entity

An env_render copies its own render settings (the render mode, the FX amount, the FX color and the render FX) to its targets each time you trigger it. It can also change their scale, fade them over a time and remove them after the fade.

Attributes​

The entity also has these common keys:

  • Appearance: Render FX, Render Mode, FX Amount and FX Color
KeyDescriptionDefault
Nametargetname

Triggering the entity changes its targets. See Common keys.

Targettarget

Names the entities to change. You can also use !activator for the entity that started the chain of triggers, or *player for that entity only when it is a player. See Common keys.

FX Amount factorFeaturefulSpirit of Half-Lifemessage

Multiplies the FX amount that the targets get. It takes a locus number, so you can use a number such as 0.5, a range such as 0.2..0.8 for a random number in it, or the name of a calc_ entity.

ScaleFeaturefulSpirit of Half-Lifem_fScale

Sets the scale of the models or sprites of the targets. Their hitboxes and their solid box change with it, step by step during a fade, and 0 keeps the scale they have.

Default 0
Fade TimeFeaturefulSpirit of Half-Lifefrags

Sets how many seconds the FX amount, the color and the scale take to change smoothly to the new values, while the render mode and the render FX change at once. With 0, everything changes at once.

Default 0
Trigger after fadingFeaturefulSpirit of Half-Lifenetname

Names the entities to trigger once the change is done, or at once when it doesn't fade. The first target is passed on as the activator.

Flags​

1No Renderfx

The targets keep their own render FX

2No Renderamt

The targets keep their own FX amount

4No Rendermode

The targets keep their own render mode

8No Rendercolor

The targets keep their own FX color

32Remove targetFeaturefulSpirit of Half-Life

The targets are removed when the fade is done, but players are never removed. Without a Fade Time, nothing is removed

64Remove selfFeaturefulSpirit of Half-Life

The env_render removes itself after it is used

Notes​

  • Each player's game draws the fade, so it is smooth on every player's screen
  • A new trigger during a fade replaces the fade the entity was waiting to finish

See also​

Changes since 1.38​

  • env_render has the keys FX Amount factor, Scale, Fade Time and Trigger after fading, and the flags Remove target and Remove self. In SBO 1.38, it could only copy the render settings immediately