home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / CH18 / Book Code / weather.cs < prev   
Encoding:
Text File  |  2006-09-22  |  1.4 KB  |  55 lines

  1. datablock AudioProfile(HeavyRainSound)
  2. {
  3.    filename    = "~/data/sound/rain.wav";
  4.    description = AudioLooping2d;
  5. };
  6. datablock AudioProfile(ThunderCrash1Sound)
  7. {
  8.    filename  = "~/data/sound/thunder1.wav";
  9.    description = Audio2d;
  10. };
  11. datablock AudioProfile(ThunderCrash2Sound)
  12. {
  13.    filename  = "~/data/sound/thunder2.wav";
  14.    description = Audio2d;
  15. };
  16. datablock AudioProfile(ThunderCrash3Sound)
  17. {
  18.    filename  = "~/data/sound/thunder3.wav";
  19.    description = Audio2d;
  20. };
  21. datablock AudioProfile(ThunderCrash4Sound)
  22. {
  23.    filename  = "~/data/sound/thunder4.wav";
  24.    description = Audio2d;
  25. };
  26. datablock LightningData(LightningStorm)
  27. {
  28.    strikeTextures[0]  = "~/data/maps/lightning.dml";
  29.    thunderSounds[0] = ThunderCrash1Sound;
  30.    thunderSounds[1] = ThunderCrash2Sound;
  31.    thunderSounds[2] = ThunderCrash3Sound;
  32.    thunderSounds[3] = ThunderCrash4Sound;
  33. };
  34. datablock PrecipitationData(HeavyRain)
  35. {
  36.    dropTexture = "~/data/maps/mist";
  37.    splashTexture = "~/data/maps/water_splash";
  38.    soundProfile = "HeavyRainSound";
  39.    dropSize = 10;
  40.    splashSize = 0.25;
  41.    splashMS = 250;
  42.    useTrueBillboards = true;
  43. };
  44.  
  45. datablock PrecipitationData(MediumRain)
  46. {
  47.    dropTexture = "~/data/maps/rain";
  48.    splashTexture = "~/data/maps/mist";
  49.    soundProfile = "HeavyRainSound";
  50.    dropSize = 0.75;
  51.    splashSize = 0.25;
  52.    splashMS = 250;
  53.    useTrueBillboards = true;
  54. };
  55.