Jump to content


How to add rain and snow to maps


No replies to this topic

#1 Lord Atlantis

    I am Iron Man

  • Member
  • 3807 posts

Posted 13 May 2007 - 04:07

Here is the tutorial for adding in Snow and Rain to your maps.

Snow Maps

To make this work, you are going to need a special map.ini that contains the snow code: Snow Maps


Extract the map.ini from the .zip and move it to the map folder that you want to add the snow to. The map folder will be located in your Zero Hour Data folder, which can be found in this directory:

Quote

[HDD]\Documents and Settings\[User Name Here]\My Documents\Command and Conquer Generals Zero Hour Data\Maps\[Map]


Posted Image

Now lets break down the contents of the Snow Maps map.ini:

Quote

; uploaded by prophet of the pimps. www.shockwavemod.com.

WaterTransparency
TransparentWaterMinOpacity = 0.6 ;opacity of water at maximum depth - 1.0 is opaque, 0 transparent.
TransparentWaterDepth = 2.0 ;depth below water surface at which it becomes opaque (unless clipped by TransparentWaterMinOpacity)
;StandingWaterTexture = TSWater03.tga
;StandingWaterColor = R:50 G:20 B:0
;StandingWaterColor = R:120 G:75 B:0
StandingWaterColor = R:85 G:67 B:0
;AdditiveBlending = Yes
;RadarWaterColor = R:120 G:120 B:0
End

Weather
SnowEnabled = yes ; enable/disable snow on the map.
SnowTexture = ExSnowFlake1.tga ;texture used for each snow particle.
SnowBoxDimensions = 100 ; width/height of box around camera containing snow.
SnowBoxDensity = 1.35 ; amount of snow particles per world-unit. Raise to increase particle count.
SnowFrequencyScaleX = 0.0533 ;speed of side-to-side wave movement.
SnowFrequencyScaleY = 0.0275 ;speed of side-to-side wave movement.
SnowAmplitude = 4.0 ;amount of side-to-side movement.
SnowVelocity = 3.0 ;speed at which snow falls
SnowPointSize = .16 ;scale the size of snow particles.
SnowMaxPointSize = 10.0 ; maximum pixel size of point sprite particles (min-spec requires <= 64).
SnowMinPointSize = 0.0 ; minimum pixel size of point sprite particles.

;Some video cards can't do hardware accelerated particles. Set this
;setting to "no" in order see what emulation will look like. Use the
;SnowQuadSize setting to make it look similar to PointSprite version.

SnowPointSprites = yes ;set to "no" for point-sprite emulation.
SnowQuadSize = 0.5 ;scale the size of snow particles when using point-sprite emulation.
End


Thanks to Prophet of the Pimps for explaining what each value does.

Rain Maps

For this to work, you need a special map.ini that contains the code for the rain code: Rain Maps


Extract the map.ini from the .zip and move it to the map folder that you want to add the rain to. The map folder will be located in your Zero Hour Data folder, which can be found in this directory:

Quote

[HDD]\Documents and Settings\[User Name Here]\My Documents\Command and Conquer Generals Zero Hour Data\Maps\[Map]


Posted Image

Lets break down the contents of the Rain Maps map.ini:

Quote

Weather
SnowEnabled = yes ;enable/disable snow on the map.
SnowTexture = EXRainDrop.tga ;texture used for each snow particle.

SnowBoxDimensions = 100 ;width/height of box around camera containing snow.
SnowBoxDensity = 1 ;amount of snow particles per world-unit. Raise to increase particle count.

SnowFrequencyScaleX = 1 ;speed of side-to-side wave movement.
SnowFrequencyScaleY = 1 ;speed of side-to-side wave movement.

SnowAmplitude = .1 ;amount of side-to-side movement.
SnowVelocity = 25.0 ;speed at which snow falls
SnowPointSize = .3 ;scale the size of snow particles.

;Some video cards can't do hardware accelerated particles. Set this
;setting to "no" in order see what emulation will look like. Use the
;SnowQuadSize setting to make it look similar to PointSprite version.;;;

SnowPointSprites = yes ;set to "no" for point-sprite emulation.
SnowQuadSize = .1 ;scale the size of snow particles when using point-sprite emulation.
End


To get the full effect, you may also want to include a script in the map that plays the rain ambiance sound effect so it sounds like its raining.

Again thanks to Prophet of the Pimps for explaining all of the values.

If you have any questions about this, please post away.

-Lord_Atlantis

Edited by Lord Atlantis, 08 January 2008 - 00:38.

Posted Image



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users