Env rain (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Targetting sounds better. Using is rather technical in this case or it would mean a player could do so)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{entity|env_rain|<!--sprite=1-->|type=point|engine=gldsrc|game=Counter-Strike|game1=Day of Defeat}} This entity is used to create raining weather effect.
{{CD|CWeather|goldsrc=triggers.cpp|base=CBaseTrigger}}
{{this is a|point entity|name=env_rain|game=Counter-Strike 1 series|game1=Day of Defeat}} This entity is used to create raining weather effect.
 
{{altnames|game={{cs1series}}|name1=func_rain|name2=env_snow|name3=func_snow}}


== Key values ==
== Key values ==
{{KV_Angles}}
{{hl1 kv targetname|[[Use (GoldSrc)|Targetting]] this entity toggles the weather on and off.}}
{{KV|Drip Speed|intn=m_dripSpeed|int|Drip Speed of the Rain.}}
{{KV Angles}}
{{KV|Drip Width|intn=m_dripSize|int|Drip Size of the Rain.}}
{{kv|Drip Speed|intn=m_dripSpeed|int|Drip Speed of the Rain.}}
{{KV|Drip Brightness|intn=m_brightness|int|Drip Brightness (1 - 255)}}
{{kv|Drip Width|intn=m_dripSize|int|Drip Size of the Rain.}}
{{KV|Drip Color (R G B)|intn=rendercolor|color255|Drip color.}}
{{kv|Drip Brightness|intn=m_brightness|int|Drip Brightness (1 - 255)}}
{{KV|Number of drips (per update)|intn=m_burstSize|int|Number of drips, if 0, no updates; all the beams will appear as soon as it's created.}}
{{kv|Drip Color (R G B)|intn=rendercolor|color255|Drip color.}}
{{KV|Time between updates|intn=m_flUpdateTime|string|Time between drip updates.}}
{{kv|Number of drips (per update)|intn=m_burstSize|int|Number of drips, if 0, no updates; all the beams will appear as soon as it's created.}}
{{KV|Drip Sprite|intn=texturee|sprite|Drip Sprite texture.}}
{{kv|Time between updates|intn=m_flUpdateTime|string|Time between drip updates.}}
{{kv|Drip Sprite|intn=texture|sprite|Drip Sprite texture.}}


== Flags ==
== Flags ==
* 1 : "Start Off"
{{fl|1|Start off}}
 
[[Category:GoldSrc]]
[[Category:Day of Defeat Entities]]

Latest revision as of 11:06, 1 June 2025

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

env_rain is a point entity available in Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series Counter-Strike 1 series and Day of Defeat Day of Defeat. This entity is used to create raining weather effect.

AltNames.pngAltNames: In Counter-Strike 1 seriesCounter-Strike 1 seriesCounter-Strike 1 series, this entity is also tied to func_rainenv_snow and func_snow.

Key values

Name (targetname) <string>
Targetting this entity toggles the weather on and off.
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 (texture) <sprite>
Drip Sprite texture.

Flags

Start off : [1]