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_tramplin.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  4.1 KB  |  150 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. --#Script:LoadScript("scripts/materials/mat_metal_plate.lua")
  3.  
  4. Materials["mat_tramplin"] = {
  5.  
  6.     type="tramplin",
  7. -------------------------------------    
  8.     bullet_hit = {
  9.         sounds = {
  10.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  11.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  12.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  13.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  14.             
  15.         },
  16.         
  17.         decal = { 
  18.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  19.             scale = 0.04,
  20.         },
  21.  
  22.         particleEffects = {
  23.             name = "bullet.hit_metal.a",
  24.         },
  25.  
  26.  
  27.     },
  28.     pancor_bullet_hit = {
  29.         sounds = {
  30.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  31.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  32.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  33.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  34.             
  35.         },
  36.         
  37.         decal = { 
  38.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  39.             scale = 0.04,
  40.         },
  41.  
  42.         particleEffects = {
  43.             name = "bullet.hit_metal_pancor.a",
  44.         },
  45.  
  46.  
  47.  
  48.     },
  49.  
  50.     flashgrenade_hit =         
  51.     {
  52.             particles = 
  53.         {
  54.             { --HitMetalSparksTrail
  55.                 focus = 0.0,
  56.                 color = {1,1,1},
  57.                 speed = 8.0,
  58.                 count = 15,
  59.                 size = 0.045, 
  60.                 size_speed=0,
  61.                 gravity={x=0,y=0,z=-5},
  62.                 lifetime=0.5,
  63.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  64.                 tail_length = 0.2,
  65.                 frames=0,
  66.                 blend_type = 2
  67.             },
  68.         },
  69.     },
  70.     projectile_hit =     {
  71.             particles = 
  72.         {
  73.             { --HitMetalSparksTrail
  74.                 focus = 0.0,
  75.                 color = {1,1,1},
  76.                 speed = 8.0,
  77.                 count = 15,
  78.                 size = 0.045, 
  79.                 size_speed=0,
  80.                 gravity={x=0,y=0,z=-5},
  81.                 lifetime=0.5,
  82.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  83.                 tail_length = 0.2,
  84.                 frames=0,
  85.                 blend_type = 2
  86.             },
  87.         },
  88.     },
  89.     mortar_hit = flashgrenade_hit,
  90.     smokegrenade_hit = flashgrenade_hit,
  91.     grenade_hit = flashgrenade_hit,
  92.     melee_slash = {
  93.         sounds = {
  94.             {"sounds/player/footsteps/metal/step1.wav",SOUND_UNSCALABLE,185,5,30},
  95.             {"sounds/player/footsteps/metal/step2.wav",SOUND_UNSCALABLE,185,5,30},
  96.             {"sounds/player/footsteps/metal/step3.wav",SOUND_UNSCALABLE,185,5,30},
  97.             {"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  98.         },
  99.         particles = CommonEffects.common_machete_hit_particles.particles,
  100.         decal = { 
  101.             texture = System:LoadTexture("Textures/Decal/metal_slash.dds"),
  102.             scale = 0.1,
  103.             random_scale = 100,
  104.             random_rotation = 0.5,
  105.         }, 
  106.  
  107.     },
  108. -------------------------------------
  109.     player_walk = {
  110.         sounds = {
  111.             {"sounds/player/footsteps/rock/step1.wav",SOUND_UNSCALABLE,200,10,60},
  112.             {"sounds/player/footsteps/rock/step2.wav",SOUND_UNSCALABLE,200,10,60},
  113.             {"sounds/player/footsteps/rock/step3.wav",SOUND_UNSCALABLE,200,10,60},
  114.             {"sounds/player/footsteps/rock/step4.wav",SOUND_UNSCALABLE,200,10,60},
  115.         },
  116.     },
  117.     player_run = {
  118.         sounds = {
  119.             {"sounds/player/footsteps/rock/step1.wav",SOUND_UNSCALABLE,200,10,60},
  120.             {"sounds/player/footsteps/rock/step2.wav",SOUND_UNSCALABLE,200,10,60},
  121.             {"sounds/player/footsteps/rock/step3.wav",SOUND_UNSCALABLE,200,10,60},
  122.             {"sounds/player/footsteps/rock/step4.wav",SOUND_UNSCALABLE,200,10,60},
  123.         },
  124.     },
  125.     player_crouch = {
  126.         sounds = {
  127.             {"sounds/player/footsteps/rock/step1.wav",SOUND_UNSCALABLE,200,10,60},
  128.             {"sounds/player/footsteps/rock/step2.wav",SOUND_UNSCALABLE,200,10,60},
  129.             {"sounds/player/footsteps/rock/step3.wav",SOUND_UNSCALABLE,200,10,60},
  130.             {"sounds/player/footsteps/rock/step4.wav",SOUND_UNSCALABLE,200,10,60},
  131.         },
  132.     },
  133.     player_prone = {
  134.         sounds = {
  135.             {"sounds/player/footsteps/rock/step1.wav",SOUND_UNSCALABLE,200,10,60},
  136.             {"sounds/player/footsteps/rock/step2.wav",SOUND_UNSCALABLE,200,10,60},
  137.             {"sounds/player/footsteps/rock/step3.wav",SOUND_UNSCALABLE,200,10,60},
  138.             {"sounds/player/footsteps/rock/step4.wav",SOUND_UNSCALABLE,200,10,60},
  139.         },
  140.     },
  141.     gameplay_physic = {
  142.         piercing_resistence = 15,
  143.         friction = -100.5,
  144.     },
  145.  
  146.     AI = {
  147.         fImpactRadius = 5,
  148.     },
  149.             
  150. }