Env rain (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(There needs to be a cs GoldSrc template)
No edit summary
Line 1: Line 1:
{{CD|CWeather|goldsrc=triggers.cpp|base=CBaseTrigger}}
{{CD|CWeather|goldsrc=triggers.cpp|base=CBaseTrigger}}
{{this is a|point entity|name=env_rain|engine=GoldSrc|game=Counter-Strike|game1=Counter-Strike: Condition Zero|game2=Condition Zero Deleted Scenes|game3=Day of Defeat}} This entity is used to create raining weather effect.
{{this is a|point entity|name=env_rain|game=Counter-Strike|game1=Counter-Strike: Condition Zero|game2=Condition Zero Deleted Scenes|game3=Day of Defeat}} This entity is used to create raining weather effect.


{{altnames|game={{cs}}{{czero}}{{czeror}}|name1=func_rain|name2=env_snow|name3=func_snow}}
{{altnames|game={{cs}}{{czero}}{{czeror}}|name1=func_rain|name2=env_snow|name3=func_snow}}

Revision as of 19:42, 24 April 2025

C++ Class hierarchy
CWeather
CBaseTrigger
CBaseToggle
CBaseAnimating
CBaseDelay
CBaseEntity
C++ triggers.cpp

env_rain is a point entity available in Counter-Strike Counter-Strike, Counter-Strike: Condition Zero Counter-Strike: Condition Zero, Condition Zero Deleted Scenes Condition Zero Deleted Scenes, and Day of Defeat Day of Defeat.

Warning.pngWarning:
  • The {{{game2}}} parameter is inconsistent with the name defined by the {{Condition Zero Deleted Scenes}} template. This can most likely be fixed by setting the value of the {{{game2}}} parameter to Condition Zero Deleted Scenes.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity is used to create raining weather effect.

AltNames.pngAltNames: In Counter-StrikeCounter-Strike: Condition ZeroCondition Zero Deleted Scenes, this entity is also tied to func_rainenv_snow and func_snow.

Key values

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.
Drip Speed (m_dripSpeed) <integer>
Drip Speed of the Rain.
Drip Width (m_dripSize) <integer>
Drip Size of the Rain.
Drip Brightness (m_brightness) <integer>
Drip Brightness (1 - 255)
Drip Color (R G B) (rendercolor) <color255>
Drip color.
Number of drips (per update) (m_burstSize) <integer>
Number of drips, if 0, no updates; all the beams will appear as soon as it's created.
Time between updates (m_flUpdateTime) <string>
Time between drip updates.
Drip Sprite (texturee) <sprite>
Drip Sprite texture.

Flags

Start off : [1]