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_mud.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  3.3 KB  |  117 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. Materials["mat_mud"] = {
  3.     type="mud",
  4. -------------------------------------    
  5.     PhysicsSounds=PhysicsSoundsTable.Soft,
  6. -------------------------------------    
  7.     bullet_hit = {
  8.         sounds = {
  9.             {"Sounds/bullethits/pbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  10.             {"Sounds/bullethits/pbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  11.             {"Sounds/bullethits/pbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  12.             {"Sounds/bullethits/pbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  13.             {"Sounds/bullethits/pbullet5.wav",SOUND_UNSCALABLE,200,5,60},
  14.         },
  15.         
  16.         decal = { 
  17.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  18.             scale = 0.03,
  19.         },
  20.  
  21.         particles = {
  22.             { --HitSmoke 
  23.                 focus = 1.5,
  24.                 color = {0.29,0.19,0.0},
  25.                 speed = 0.75,
  26.                 count = 4, --default 2
  27.                 size = 0.1, 
  28.                 size_speed=0.15,
  29.                 gravity=-1,
  30.                 lifetime=0.5,
  31.                 tid = System:LoadTexture("textures\\dust_smoke6.DDS"),
  32.                 frames=0,
  33.  
  34.             },
  35.         },
  36.     },
  37.     pancor_bullet_hit = {
  38.         sounds = {
  39.             {"Sounds/bullethits/pbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  40.             {"Sounds/bullethits/pbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  41.             {"Sounds/bullethits/pbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  42.             {"Sounds/bullethits/pbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  43.             {"Sounds/bullethits/pbullet5.wav",SOUND_UNSCALABLE,200,5,60},
  44.             },
  45.         
  46.         decal = { 
  47.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  48.             scale = 0.03,
  49.         },
  50.  
  51.         particles = {
  52.                 { --HitSmoke 
  53.                 focus = 1.5,
  54.                 color = {0.29,0.19,0.0},
  55.                 speed = 0.75,
  56.                 count = 4, --default 2
  57.                 size = 0.1, 
  58.                 size_speed=0.15,
  59.                 gravity=-1,
  60.                 lifetime=0.5,
  61.                 tid = System:LoadTexture("textures\\dust_smoke6.DDS"),
  62.                 frames=0,
  63.  
  64.                 },
  65.             },
  66.     },
  67.  
  68.     projectile_hit = CommonEffects.common_projectile_hit,
  69.     mortar_hit = CommonEffects.common_mortar_hit,
  70.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  71.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  72.     grenade_hit = CommonEffects.common_grenade_hit,
  73.     melee_slash = {
  74.         sounds = {
  75.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,185,5,30},
  76.             
  77.         },
  78.         particles =  CommonEffects.common_machete_hit_canvas_part.particles,
  79.  
  80.     },
  81. -------------------------------------
  82.     player_walk = CommonEffects.player_pebble_walk,
  83.     player_run = CommonEffects.player_pebble_run,
  84.     player_crouch = CommonEffects.player_pebble_crouch,
  85.     player_prone = CommonEffects.player_pebble_prone,
  86.     player_walk_inwater = CommonEffects.player_walk_inwater,
  87.     
  88.     player_drop = {
  89.         sounds = {
  90.             {"sounds/player/bodyfalls/bodyfallmud1.wav",SOUND_UNSCALABLE,210,10,150},
  91.         },
  92.  
  93.     },
  94. -------------------------------------
  95.     player_land = {
  96.         sounds = {
  97.             --sound , volume , {min, max}
  98.             --NOTE volume and min max are optional
  99.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,200,1,20},
  100.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,200,1,20},
  101.             
  102.         },
  103.     },
  104.     gameplay_physic = {
  105.         piercing_resistence = 15,
  106.         friction = 1.2,
  107.         bouncyness= -2, -- default 0
  108.     },
  109.  
  110.     AI = {
  111.         fImpactRadius = 5,
  112.     },
  113.             
  114.     --vehicle effects: particle is called when wheels are slipping, smoke in any case if the vehicle is moving.
  115.     VehicleParticleEffect = CommonEffects.common_vehicle_particles_rocks,
  116.     VehicleSmokeEffect = CommonEffects.common_vehicle_smoke_mud,
  117. }