home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / demo / server / scripts / environment.cs < prev    next >
Encoding:
Text File  |  2005-11-23  |  2.2 KB  |  83 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine 
  3. // Copyright (C) GarageGames.com, Inc.
  4. //-----------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. //-----------------------------------------------------------------------------
  9.  
  10. datablock AudioProfile(HeavyRainSound)
  11. {
  12.    filename    = "~/data/sound/environment/ambient/rain.ogg";
  13.    description = AudioLooping2d;
  14. };
  15.  
  16. datablock PrecipitationData(HeavyRain)
  17. {
  18.    soundProfile = "HeavyRainSound";
  19.  
  20.    dropTexture = "~/data/environment/rain";
  21.    splashTexture = "~/data/environment/water_splash";
  22.    dropSize = 0.75;
  23.    splashSize = 0.2;
  24.    useTrueBillboards = false;
  25.    splashMS = 250;
  26. };
  27.  
  28. datablock PrecipitationData(HeavyRain2)
  29. {
  30.    dropTexture = "~/data/environment/mist";
  31.    splashTexture = "~/data/environment/mist2";
  32.    dropSize = 10;
  33.    splashSize = 0.1;
  34.    useTrueBillboards = false;
  35.    splashMS = 250;
  36. };
  37.  
  38.  //-----------------------------------------------------------------------------
  39.  
  40. datablock AudioProfile(ThunderCrash1Sound)
  41. {
  42.    filename  = "~/data/sound/environment/ambient/thunder1.ogg";
  43.    description = Audio2d;
  44. };
  45.  
  46. datablock AudioProfile(ThunderCrash2Sound)
  47. {
  48.    filename  = "~/data/sound/environment/ambient/thunder2.ogg";
  49.    description = Audio2d;
  50. };
  51.  
  52. datablock AudioProfile(ThunderCrash3Sound)
  53. {
  54.    filename  = "~/data/sound/environment/ambient/thunder3.ogg";
  55.    description = Audio2d;
  56. };
  57.  
  58. datablock AudioProfile(ThunderCrash4Sound)
  59. {
  60.    filename  = "~/data/sound/environment/ambient/thunder4.ogg";
  61.    description = Audio2d;
  62. };
  63.  
  64. //datablock AudioProfile(LightningHitSound)
  65. //{
  66. //   filename  = "~/data/sound/crossbow_explosion.ogg";
  67. //   description = AudioLightning3d;
  68. //};
  69.  
  70. datablock LightningData(LightningStorm)
  71. {
  72.    strikeTextures[0]  = "demo/data/environment/lightning1frame1";
  73.    strikeTextures[1]  = "demo/data/environment/lightning1frame2";
  74.    strikeTextures[2]  = "demo/data/environment/lightning1frame3";
  75.    
  76.    //strikeSound = LightningHitSound;
  77.    thunderSounds[0] = ThunderCrash1Sound;
  78.    thunderSounds[1] = ThunderCrash2Sound;
  79.    thunderSounds[2] = ThunderCrash3Sound;
  80.    thunderSounds[3] = ThunderCrash4Sound;
  81. };
  82.  
  83.