How to make rain
January 25, 2006 - By Egir Helgrimson
This tutorial will explain how to use the env_rain entity for making rain in Counter-Strike like in de_aztec and de_slap.
Use the right fgd
First you will need to have an updated fgd which contains the entity, you can get a fairly good one from the links below:
There should be two to choose from, one that supports models in Hammer 3.5 beta and one that doesn't, but also works in Hammer 3.4.
Making the entity
Create a new point entity and choose env_rain as the class in the Object Properties.
Insert the right values
Turn off SmartEdit by clicking the button SmartEdit.
Click the add button.
Type in the first key value pair from the table below:
| Key: | Value: |
| quantity | 500 |
| type | 1 |
| spawnflags | 1 |
| sprite | sprites/effects/rain.spr |
Then click OK.
Repeat this for each of the key value pair in the table above.
You should now have rain in your map. When I compiled with these values it looked like:
And since rain looks that much better at night, I recompiled without a lightenvironment and with a more nighty sky.
|