home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / FCData / Scripts.pak / Scripts / materials / mat_water.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  3.1 KB  |  124 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. Materials["mat_water"] = {
  3.     type="water",
  4. -------------------------------------    
  5.     bullet_hit = {
  6.         sounds = {
  7.             {"Sounds/bullethits/bwater1.wav",SOUND_UNSCALABLE,200,5,60},
  8.             {"Sounds/bullethits/bwater2.wav",SOUND_UNSCALABLE,200,5,60},
  9.             {"Sounds/bullethits/bwater3.wav",SOUND_UNSCALABLE,200,5,60},
  10.             {"Sounds/bullethits/bwater4.wav",SOUND_UNSCALABLE,200,5,60},
  11.             
  12.         },
  13.         
  14.         particleEffects = {
  15.             name = "bullet.hit_water.a",
  16.         },
  17.     },
  18.  
  19.     pancor_bullet_hit = {
  20.         sounds = {
  21.             {"Sounds/bullethits/bwater1.wav",SOUND_UNSCALABLE,200,5,60},
  22.             {"Sounds/bullethits/bwater2.wav",SOUND_UNSCALABLE,200,5,60},
  23.             {"Sounds/bullethits/bwater3.wav",SOUND_UNSCALABLE,200,5,60},
  24.             {"Sounds/bullethits/bwater4.wav",SOUND_UNSCALABLE,200,5,60},
  25.             
  26.                 },
  27.         
  28.         particleEffects = {
  29.             name = "bullet.hit_water_pancor.a",
  30.         },
  31.     },
  32.  
  33.         
  34.         
  35.  
  36.     grenade_splash = {
  37.         --sounds = {
  38.             --{"Sounds/weapons/grenade/splash1.wav",SOUND_UNSCALABLE,150,3,100},
  39.         --},
  40.         particles = {
  41.  
  42.             {--ExplosionSplashes = 
  43.                 focus = 7,
  44.                 color = {1,1,1},
  45.                 speed = 8, -- default 10
  46.                 rotation = {x=0,y=0,z=0},
  47.                 count = 20, -- default 20
  48.                 size = 0.03, size_speed = 0.36, -- default size 0.03 size_speed 1
  49.                 gravity = {x = 0.0, y = 0.0, z = -25.0}, -- default z = -15
  50.                 lifetime = 0.55, -- default 0.7
  51.                 blend_type = 0,
  52.                 frames = 1,
  53.                 tid = System:LoadTexture("textures/dirt2.dds"),
  54.                 },
  55.         
  56.              {--WaterRipples
  57.                 focus = 0.0,
  58.                 color = {1,1,1},
  59.                 speed = 0.0,
  60.                 count = 3,
  61.                 size = 0.2, size_speed=4, -- default size_speed = 2
  62.                 gravity=0,
  63.                 lifetime=6, -- default 2 
  64.                 tid = System:LoadTexture("textures\\ripple.dds"),
  65.                 frames=0,
  66.                 blend_type = 0,
  67.                 particle_type = 1,
  68.             },
  69.         },
  70.     },
  71.  
  72.     projectile_hit = CommonEffects.water_projectile_hit,
  73.     melee_slash = {
  74.         sounds = {
  75.             {"Sounds/weapons/grenade/splash1.wav",SOUND_UNSCALABLE,150,3,100},
  76.             --{"sounds/player/footsteps/metal/step2.wav",SOUND_UNSCALABLE,185,5,30},
  77.             --{"sounds/player/footsteps/metal/step3.wav",SOUND_UNSCALABLE,185,5,30},
  78.             --{"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  79.         },
  80.         particleEffects = {
  81.             name = "bullet.hit_water.a",
  82.         },
  83.     },
  84.  
  85.     grenade_explosion = {
  86.         sounds = {
  87.             {"Sounds/explosions/explosion4.wav",0,175,20,10000},
  88.         },
  89.         particleEffects = {
  90.             name = "explosions.Grenade_water.ripples",
  91.         },
  92.     },
  93.     grenade_hit = CommonEffects.water_splash,
  94.  
  95.     rock_hit = CommonEffects.water_splash,
  96.  
  97. --    player_walk = {
  98. --        sounds = {
  99. --            {"sounds/player/footsteps/water/step1.wav",SOUND_UNSCALABLE,200,10,60},
  100. --            {"sounds/player/footsteps/water/step2.wav",SOUND_UNSCALABLE,200,10,60},
  101. --            {"sounds/player/footsteps/water/step3.wav",SOUND_UNSCALABLE,200,10,60},
  102. --            {"sounds/player/footsteps/water/step4.wav",SOUND_UNSCALABLE,200,10,60},
  103. --        },
  104.  
  105. --    },
  106.     
  107.     player_drop = {
  108.         sounds = {
  109.             {"sounds/player/bodyfalls/bodysplash.wav",SOUND_UNSCALABLE,210,10,150},
  110.         },
  111.  
  112.     },
  113.     
  114.     
  115.     gameplay_physic = {
  116.         piercing_resistence = 15,
  117.         friction = 1,
  118.     },
  119.  
  120.     AI = {
  121.         fImpactRadius = 5,
  122.     },
  123.             
  124. }