Skip to main content

env_snow

env_snow icon
Point entityPorted from ReGameDLL_CScs16-client

An env_snow makes it snow over the whole map, as in Counter-Strike 1.6, and its position doesn't matter.

Each player's game draws the snow around their view wherever the sky is above, so no snow falls indoors. Each player sets the amount of snow with the weather option, the client setting cl_weather, and only the OpenGL renderer draws it.

Attributes​

KeyDescriptionDefault
Nametargetname

Without a name, the snow is always on. With a name, it is a snow of its own that starts off unless you set Start Active, and triggering the entity switches it on or off, as the use type says, so every player sees the change at once. See Common keys.

Snowflakes per updateFeaturefulintensity

Sets how many snowflakes each update makes, spread within 1024 units around each player's view, up to 1000, and anything above 1000 works like 1000.

Default 512
Update periodFeaturefulupdate_period

Sets how many seconds pass between two batches of snowflakes, down to 0.05.

Default 0.5
Snowflake min sizeFeaturefulsnowflake_min_size

Sets the size of the smallest snowflakes, in units, and each snowflake gets a random size between this and Snowflake max size.

Default 2.1
Snowflake max sizeFeaturefulsnowflake_max_size

Sets the size of the biggest snowflakes, in units.

Default 2.6
Snowflake min falling speedFeaturefulsnowflake_min_speed

Sets the slowest speed a snowflake falls at, in units per second, and each snowflake gets a random speed between this and Snowflake max falling speed.

Default 131
Snowflake max falling speedFeaturefulsnowflake_max_speed

Sets the fastest speed a snowflake falls at, in units per second.

Default 210
Snowflake max lifeFeaturefulsnowflake_life

Sets the longest time a snowflake lasts, in seconds, before it disappears.

Default 3.0
Wind XSpirit of Half-Lifewind_x

Sets a fixed wind, which is the sideways speed of every snowflake along the map's X axis, in units per second, so a negative value blows the other way. If you set Wind X or Wind Y, this snow drifts with that fixed wind instead of the random wind, which changes its direction every 15 to 30 seconds, and every snowflake drifts the same way.

  • If you leave Wind X and Wind Y empty, the snow uses the random wind
Wind YSpirit of Half-Lifewind_y

Sets the sideways speed of every snowflake along the map's Y axis, in units per second, in the same way as Wind X.

Wind spread XSpirit of Half-Lifewind_rand_x

Gives each snowflake a random extra sideways speed along X, from minus this value up to this value, in units per second, on top of the fixed or the random wind.

If you leave this key empty, it is 0 and there is no spread.

Wind spread YSpirit of Half-Lifewind_rand_y

Gives each snowflake a random extra sideways speed along Y, in the same way as Wind spread X.

If you leave this key empty, it is 0 and there is no spread.

Flags​

1Start ActiveFeatureful

A snow with a Name is on when the map starts. A snow without a name is always on

2Allow indoorFeatureful

Snowflakes also fall where there is no sky above, for example under a roof

4Snowflakes not affected by windFeatureful

The snowflakes fall straight down, with no wind and no spread

256Snowflakes go through brush entitiesFeatureful

Snowflakes fall through doors, walls and other brush entities, and only land on the world

512Don't dissolve in waterFeatureful

Snowflakes fall into water instead of melting on its surface

Notes​

  • If you leave every key empty, the snow looks exactly like the snow of Counter-Strike 1.6
  • If you set a key to 0 or below, the snow uses the default for that key, except for the wind and spread keys, where 0 is no wind or no spread
  • With the random wind, a few snowflakes drift at half its speed, while a fixed wind drifts every snowflake alike
  • The wind keys work like the keys Wind X, Wind Y, Rand X and Rand Y of Spirit of Half-Life's rain_modify, and SBO also accepts their key names m_flWindX, m_flWindY, m_flRandX and m_flRandY
  • You can change every key and flag while the map runs with a trigger_changevalue or a trigger_copyvalue, and every player sees the change at once. Setting Start Active this way switches a snow with a Name on, and clearing it switches the snow off
  • Only the first env_snow without a name counts, and more of them do nothing. If a map has an env_rain and an env_snow without names, it gets the rain and no snow
  • Each env_snow with a name is drawn on top of the weather without a name, so you can switch a snowfall on later in the map, for example

See also​

Changes since 1.38​

  • env_snow is new in SBO 2.0.0
  • Since SBO 2.1.0, env_snow has the keys and flags of func_snowvolume, and a name to switch it on and off
  • Since SBO 2.1.0, env_snow has the wind keys Wind X, Wind Y, Wind spread X and Wind spread Y, and its keys can change while the map runs