Source Engine Icon SOURCE Tutorial

Realistic rain

Greetings! 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

Stop Lurking!

Become a Bananite

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! :)

Comments

  • Matias-TM avatar
    Matias-TM avatar Not here...
    Member Joined 3 years ago
    541 points Ranked 7681st
    15 medals 2 rare
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Submitted 20 Threads Medal icon
    Report post
    3 months ago:
    Useful.

    9.5/10

    Mapper avatar
    Mantra
    Mapper
  • Reverend Jesse V92 avatar
    Reverend Jesse V92 avatar Away
    Member Joined 7 years ago
    2,337 points Ranked 1940th
    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
    Report post
    5 months ago:
    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

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Mother Nature Studios
DomiTibingen
Member Joined 4 years ago
945 points Ranked 4736th
14 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 4 years ago
945 points Ranked 4736th
14 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
Send a Private Message to the submitter

Category

Details

Difficulty Level
Beginner Difficulty

Attributes

Stats

Posts
2
Views
627
Date Added
5 months ago
Nov 10 2016 @ 12:04am UTC
Date Modified
4 months ago
Nov 14 2016 @ 9:09am UTC
Date Updated
5 months ago
Nov 10 2016 @ 12:04am UTC

Rating

9.5/10 by 1 rater

WiPs by DomiTibingen

WiPs by Mother Nature Studios