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_sticky.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  2.1 KB  |  77 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. Materials["mat_sticky"] = {
  4.     type="sticky",
  5. -------------------------------------    
  6.     PhysicsSounds=PhysicsSoundsTable.Soft,
  7. -------------------------------------    
  8.     bullet_hit = {
  9.         sounds = {
  10.             {"Sounds/bullethits/pbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  11.             {"Sounds/bullethits/pbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  12.             {"Sounds/bullethits/pbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  13.             {"Sounds/bullethits/pbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  14.             {"Sounds/bullethits/pbullet5.wav",SOUND_UNSCALABLE,200,5,60},
  15.         },
  16.         
  17.         particles = {
  18.             { --HitSmoke 
  19.                 focus = 1.5,
  20.                 color = {0.29,0.19,0.0},
  21.                 speed = 0.75,
  22.                 count = 4, --default 2
  23.                 size = 0.05, 
  24.                 size_speed=0.15,
  25.                 gravity=-1,
  26.                 lifetime=0.5,
  27.                 tid = System:LoadTexture("textures\\cloud.jpg"),
  28.                 frames=0,
  29.                 color_based_blending = 3
  30.             },
  31.         },
  32.     },
  33.  
  34.     projectile_hit = CommonEffects.common_projectile_hit,
  35.     mortar_hit = CommonEffects.common_mortar_hit,
  36.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  37.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  38.     grenade_hit = CommonEffects.common_grenade_hit,
  39.     melee_slash = {
  40.         sounds = {
  41.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,185,5,30},
  42.             
  43.         },
  44.     },
  45. -------------------------------------
  46.     player_walk = CommonEffects.player_pebble_walk,
  47.     player_run = CommonEffects.player_pebble_run,
  48.     player_crouch = CommonEffects.player_pebble_crouch,
  49.     player_prone = CommonEffects.player_pebble_prone,
  50.     player_walk_inwater = CommonEffects.player_walk_inwater,
  51.     
  52.     player_drop = {
  53.         sounds = {
  54.             {"sounds/player/bodyfalls/bodyfallmud1.wav",SOUND_UNSCALABLE,210,10,150},
  55.         },
  56.  
  57.     },
  58. -------------------------------------
  59.     player_land = {
  60.         sounds = {
  61.             --sound , volume , {min, max}
  62.             --NOTE volume and min max are optional
  63.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,200,1,20},
  64.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,200,1,20},
  65.             
  66.         },
  67.     },
  68.     gameplay_physic = {
  69.         piercing_resistence = 15,
  70.         friction = 200.0,
  71.         bouncyness= -1, -- default 0
  72.     },
  73.  
  74.     AI = {
  75.         fImpactRadius = 5,
  76.     },        
  77. }