Realistic rain

A Tutorial for Source Engine

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending DomiTibingen points.
  • Post: Give DomiTibingen your thoughts on this Tutorial.
  • Vote: Help DomiTibingen win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

Hello. :)

Note: This tutorial is for HL2 games, CS:S and TF2 since Left4Dead and Portal have better rain.

__________________________________________________________________________

Here is an easy tutorial how to make Source engine rain more realistic. 

We all know that default rain is thin, long and falls in stright line.
You can see the screenskots. 

So let's change it. :)

The new effect looks better in game.

Adding rain

First let's add some rain in map.

  1. Make a brush/es in your map where you want to have rain.
  2. [Optional] Make more brushes in same position to make higher density
  3. Select brushes
  4. Tie it to entity (CTRL + T) --> func_precipitation
  5. In the entity options set:
  • Density - 100
  • COLOR (R G B) - leave default
  • Precipitation type - Rain

OK. We have rain. Time to make it beautiful. :)

Adding magic code

Crate entitys:
  • point_servercommand
  • logic_auto
Name point_severcommand rain_commands
Go to logic_auto-->Outputs

Click add:
  1. OnMapSpawn -> rain_commands -> Command -> r_winddir 1
  2. OnMapSpawn -> rain_commands -> Command -> r_windspeed 50   (0 = vertical)
  3. OnMapSpawn -> rain_commands -> Command -> r_rainlength 0.025f
  4. OnMapSpawn -> rain_commands -> Command -> r_rainwidth 1.5
  5. OnMapSpawn -> rain_commands -> Command -> r_rainalpha 0.3
  6. OnMapSpawn -> rain_commands -> Command -> r_rainspeed 1200f

Thats it. :) Test it.

NOTES

If you map for Counter Strike: Source or Team Forterss 2 --> crate point_clientcommand and name it rain_commant_client.

Crate another logic_auto and add all the commands from above but change rain_commands to rain_commands_client.

Done. !

Hope you like it. :)

Hint

You can type these commands in-game in any map or server.
You don't need sv_cheats 1.
So you can play with numbers while testing.

Happy raining! :)

Posts

  • 10mo
    Matias-TM avatar
    Matias-TM Offline
    Member Joined 3y
    554 points Ranked 8109th
    20 medals 1 legendary 3 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 20 Maps Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    Useful.

    9.5/10

  • 1y
    Reverend Jesse V92 avatar
    Reverend Jesse V92 avatar Away
    Member Joined 7y
    2,941 points Ranked 1581st
    18 medals 3 rare
    • 2nd Place - A Bananite's Guide to... Contest Medal icon
    • 6 years a member Medal icon
    • Returned 1000 times Medal icon
    • Building Bridges Entrant Medal icon
    • Became a Studio Leader Medal icon
    • Reached 1,000 Points Medal icon
    You might be better off using particle systems for rain.

    The upside of particle systems over func_precipitation is that particle systems are only rendered while the player is in range, while the latter are rendered constantly for the whole area they cover.
    • Agree x 1
    • Helpful x 1
    • Cheers x 1
    Universal Jack-O-Trades avatar
    Mantra
    Universal Jack-O-Trades

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:
Sign up to access this!

Credits

Mother Nature Studios
DomiTibingen
Member Joined 5y
1,281 points Ranked 3734th
16 medals 1 rare
  • Submitted 15 Models Medal icon
  • Became a Studio Leader Medal icon
  • Reached 1,000 Points Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon
mapper

Submitter

DomiTibingen avatar
Member Joined 5y
1,281 points Ranked 3734th
16 medals 1 rare
  • Submitted 15 Models Medal icon
  • Became a Studio Leader Medal icon
  • Reached 1,000 Points Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon

DomiTibingen
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Stats

Posts
2
Views
1,617
Date Added
1y
Date Modified
1y

Scores

85 bScore
9.3 Rating

2 voters

Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
bcp.crwdcntrl.net tracking pixel