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

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. Materials["mat_flesh"] = {
  3.     type="flesh",
  4. -------------------------------------    
  5.     PhysicsSounds=PhysicsSoundsTable.Soft,
  6. -------------------------------------
  7.     bullet_hit = {
  8.         sounds = {
  9.             {"Sounds/bullethits/pbullet1.wav",SOUND_UNSCALABLE,220,10,80},
  10.             {"Sounds/bullethits/pbullet2.wav",SOUND_UNSCALABLE,220,10,80},
  11.             {"Sounds/bullethits/pbullet3.wav",SOUND_UNSCALABLE,220,10,80},
  12.             {"Sounds/bullethits/pbullet4.wav",SOUND_UNSCALABLE,220,10,80},
  13.             
  14.         },
  15.  
  16.         decal = { 
  17.             gore = 1,    -- to be able to switch off gore -- to know what's allowed        
  18.             texture = System:LoadTexture("Languages/Textures/Decal/hole_blood.dds",0,1),
  19.             scale = 0.15,
  20.         },
  21.  
  22.         
  23.         particleEffects = {
  24.             gore = 1,    -- to be able to switch off gore -- to know what's allowed
  25.             name = "bullet.hit_flesh.a",
  26.         },
  27.  
  28.     },
  29.  
  30.     pancor_bullet_hit = {
  31.         sounds = {
  32.             --{"Sounds/bullethits/headbullet1.wav",SOUND_UNSCALABLE,220,10,80},
  33.             --{"Sounds/bullethits/headbullet2.wav",SOUND_UNSCALABLE,220,10,80},
  34.             --{"Sounds/bullethits/headbullet3.wav",SOUND_UNSCALABLE,220,10,80},
  35.             {"Sounds/bullethits/headbullet11.wav",SOUND_UNSCALABLE,220,10,80},
  36.             --{"Sounds/explosions/explosion2.wav",SOUND_UNSCALABLE,200,10,80},
  37.                 },
  38.         decal = { 
  39.             gore = 1,    -- to be able to switch off gore -- to know what's allowed        
  40.             texture = System:LoadTexture("Languages/Textures/Decal/hole_blood.dds",0,1),
  41.             scale = 0.15,
  42.         },
  43.         particleEffects = {
  44.             gore = 1,    -- to be able to switch off gore -- to know what's allowed
  45.             name = "bullet.hit_flesh_pancor.a",
  46.                     },
  47.     },
  48.  
  49.     
  50.         -------------------------
  51.     melee_punch = {
  52.         sounds = {
  53.             {"sounds/objectimpact/hit1.wav",SOUND_UNSCALABLE,255,5,30},
  54.             {"sounds/objectimpact/hit2.wav",SOUND_UNSCALABLE,255,5,30},
  55.             {"sounds/objectimpact/hit3.wav",SOUND_UNSCALABLE,255,5,30},
  56.             {"sounds/objectimpact/hit4.wav",SOUND_UNSCALABLE,255,5,30},
  57.             {"sounds/objectimpact/hit5.wav",SOUND_UNSCALABLE,255,5,30},
  58.             {"sounds/objectimpact/hit6.wav",SOUND_UNSCALABLE,255,5,30},
  59.             {"sounds/objectimpact/hit7.wav",SOUND_UNSCALABLE,255,5,30},
  60.             {"sounds/objectimpact/hit8.wav",SOUND_UNSCALABLE,255,5,30},
  61.             
  62.         },
  63.     },
  64.     melee_slash = {
  65.         sounds = {
  66.             {"sounds/mutants/ab1/hit1.wav",SOUND_UNSCALABLE,185,5,30},
  67.             {"sounds/mutants/ab1/hit2.wav",SOUND_UNSCALABLE,185,5,30},
  68.             {"sounds/mutants/ab1/hit3.wav",SOUND_UNSCALABLE,185,5,30},
  69.             {"sounds/mutants/ab1/hit4.wav",SOUND_UNSCALABLE,185,5,30},
  70.             {"sounds/mutants/ab1/hit5.wav",SOUND_UNSCALABLE,185,5,30},
  71.             {"sounds/mutants/ab1/hit6.wav",SOUND_UNSCALABLE,185,5,30},
  72.             {"sounds/mutants/ab1/hit7.wav",SOUND_UNSCALABLE,185,5,30},
  73.             --{"sounds/objectimpact/Mslash8.wav",SOUND_UNSCALABLE,255,5,30},
  74.         },
  75.         particleEffects = {
  76.             gore = 1,    -- to be able to switch off gore -- to know what's allowed
  77.             name = "bullet.hit_flesh.a",
  78.         },
  79.         
  80.     },
  81.  
  82.     projectile_hit = CommonEffects.common_projectile_hit,
  83.     mortar_hit = CommonEffects.common_mortar_hit,
  84.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  85.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  86.     grenade_hit = CommonEffects.common_grenade_hit,
  87. -------------------------------------
  88.  
  89.     gameplay_physic = {
  90.         piercing_resistence = 15,
  91.         friction = 0.6, -- default 0.6
  92.         bouncyness= -2, -- default 0
  93.     },
  94.  
  95.     AI = {
  96.         fImpactRadius = 5,
  97.     },
  98.  
  99.             
  100. }