Env rain (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(The way to enter games in the entity template is confusing.)
No edit summary
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.
{{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.
{{todo|Documentation? Also, this isn't in all GoldSrc games. Only games like CS and possibly DoD have it; base Half-Life does not.}}
 
== Key values ==
{{KV_Angles}}
{{KV|Drip Speed|intn=m_dripSpeed|int|Drip Speed of the Rain.}}
{{KV|Drip Width|intn=m_dripSize|int|Drip Size of the Rain.}}
{{KV|Drip Brightness|intn=m_brightness|int|Drip Brightness (1 - 255)}}
{{KV|Drip Color (R G B)|intn=rendercolor|color255|Drip color.}}
{{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|Time between updates|intn=m_flUpdateTime|string|Time between drip updates.}}
{{KV|Drip Sprite|intn=texturee|sprite|Drip Sprite texture.}}
 
== Flags ==
* 1  : "Start Off"
 
[[Category:GoldSrc]]
[[Category:GoldSrc]]
[[Category:Counter-Strike entities]]
[[Category:Counter-Strike entities]]
[[Category:Day of Defeat entities]]

Revision as of 07:26, 29 July 2023

Template:Entity This entity is used to create raining weather effect.

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

  • 1  : "Start Off"