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_sandbag.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  5.7 KB  |  199 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.     
  3. local WalkParticles = 
  4.     {
  5.         {--dust
  6.             focus = 0,
  7.             speed = 0.25,
  8.             start_color = {0.89,0.69,0.4},
  9.             end_color = {1,1,1},
  10.             count = 7, --default 5
  11.             size = 0.3, 
  12.             size_speed=0.2,
  13.             rotation = {x = 0.0, y = 0.0, z = 4},
  14.             gravity = {x = 0.0, y = 0.0, z = 0},
  15.             lifetime=2,
  16.             blend_type = 0,
  17.             tid = System:LoadTexture("textures\\clouda2.dds"),
  18.             frames=0,
  19.         },
  20.  
  21.     }
  22. Materials["mat_sandbag"] = {
  23.     type="sandbag",
  24. -------------------------------------    
  25.     PhysicsSounds=PhysicsSoundsTable.Soft,
  26. -------------------------------------    
  27.     projectile_hit = CommonEffects.common_projectile_hit,
  28.     mortar_hit = CommonEffects.common_mortar_hit,
  29.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  30.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  31.     grenade_hit = CommonEffects.common_grenade_hit,
  32.  
  33.     bullet_hit = {
  34.         sounds = {
  35.             {"Sounds/Bullethits/bsand1.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/Bullethits/bsand2.wav",SOUND_UNSCALABLE,200,5,60},
  37.             {"Sounds/Bullethits/bsand3.wav",SOUND_UNSCALABLE,200,5,60},
  38.             {"Sounds/Bullethits/bsand4.wav",SOUND_UNSCALABLE,200,5,60},
  39.             },
  40.         decal = { 
  41.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  42.             scale = 0.03,
  43.         },
  44.  
  45.         particleEffects = {
  46.             name = "bullet.hit_sand.a",
  47.             },
  48.         },
  49.  
  50.     pancor_bullet_hit = {
  51.         sounds = {
  52.             {"Sounds/Bullethits/bsand1.wav",SOUND_UNSCALABLE,200,5,60},
  53.             {"Sounds/Bullethits/bsand2.wav",SOUND_UNSCALABLE,200,5,60},
  54.             {"Sounds/Bullethits/bsand3.wav",SOUND_UNSCALABLE,200,5,60},
  55.             {"Sounds/Bullethits/bsand4.wav",SOUND_UNSCALABLE,200,5,60},
  56.             },
  57.         decal = { 
  58.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  59.             scale = 0.02,
  60.         },
  61.  
  62.         particleEffects = {
  63.             name = "bullet.hit_sand_pancor.a",
  64.             },
  65.         },
  66.  
  67.     melee_slash = {
  68.         sounds = {
  69.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,185,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  70.             --{"sounds/weapons/machete/machetesand2.wav",SOUND_UNSCALABLE,255,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  71.             --{"sounds/weapons/machete/machetesand3.wav",SOUND_UNSCALABLE,255,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  72.         },
  73.         particles = 
  74.             {
  75.                 { --HitSparksTrail
  76.                 focus = 0.0,
  77.                 color = {1,1,1},
  78.                 speed = 2.0,
  79.                 count = 5,
  80.                 size = 0.010, 
  81.                 size_speed=0,
  82.                 gravity={x=0,y=0,z=-5},
  83.                 lifetime=0.1,
  84.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  85.                 tail_length = 0.3,
  86.                 frames=0,
  87.                 blend_type = 2
  88.                 },
  89.                 { --HitStonesDark
  90.                 focus = 1,
  91.                 speed = 2,
  92.                 start_color = {1,1,1},
  93.                 end_color = {1,1,1}, 
  94.                 count = 8, --default 3
  95.                 size = 0.01, 
  96.                 size_speed=0,
  97.                 gravity = {x = 0.0, y = 0.0, z = -3},
  98.                 rotation = {x = 0.0, y = 0.0, z = 15},
  99.                 lifetime=0.75,
  100.                 frames=1,
  101.                 blend_type = 0,
  102.                 bouncyness = 0.5,
  103.                 tid = System:LoadTexture("textures\\Sprites\\stone1.dds"),
  104.                 },
  105.                 { --HitStonesLight
  106.                 focus = 1,
  107.                 speed = 2,
  108.                 start_color = {1,1,1},
  109.                 end_color = {1,1,1}, 
  110.                 count = 6, --default 2
  111.                 size = 0.01, 
  112.                 size_speed=0,
  113.                 gravity = {x = 0.0, y = 0.0, z = -3},
  114.                 rotation = {x = 0.0, y = 0.0, z = 50},
  115.                 lifetime=0.750,
  116.                 frames=1,
  117.                 blend_type = 0,
  118.                 bouncyness = 0.5,
  119.                 tid = System:LoadTexture("textures\\Sprites\\stone2.dds"),
  120.                 },                
  121.             {--hitsmoke
  122.                  focus = 0,
  123.                 start_color = {0.89,0.69,0.4},
  124.                 end_color = {1,1,1},
  125.                 speed = 0.1,
  126.                 count = 5, --default 3
  127.                 size = 0.01, 
  128.                 size_speed=0.01,
  129.                 gravity = {x = 0.0, y = 0.0, z = 0.1},
  130.                 rotation = {x = 0.0, y = 0.0, z = 2},
  131.                 lifetime=1.25,
  132.                 tid = System:LoadTexture("textures/clouda2.dds"),
  133.                 frames=0,
  134.                 blend_type = 0,
  135.             },    
  136.         },
  137.     },
  138.  
  139.  
  140. -------------------------------------
  141.     
  142.     player_walk = {
  143.         sounds = {
  144.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,140,10,60},
  145.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,140,10,60},
  146.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,140,10,60},
  147.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,140,10,60},
  148.         },
  149.         particles = WalkParticles,
  150.     },
  151.     player_run = {
  152.         sounds = {
  153.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,200,10,60},
  154.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,200,10,60},
  155.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,200,10,60},
  156.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,200,10,60},
  157.         },
  158.         particles = WalkParticles,
  159.     },
  160.     player_crouch = {
  161.         sounds = {
  162.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,120,10,60},
  163.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,120,10,60},
  164.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,120,10,60},
  165.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,120,10,60},
  166.         },
  167.         particles = WalkParticles,
  168.     },
  169.     player_prone = {
  170.         sounds = {
  171.             {"sounds/player/footsteps/pebble/step1.wav",SOUND_UNSCALABLE,120,10,60},
  172.             {"sounds/player/footsteps/pebble/step2.wav",SOUND_UNSCALABLE,120,10,60},
  173.             {"sounds/player/footsteps/pebble/step3.wav",SOUND_UNSCALABLE,120,10,60},
  174.             {"sounds/player/footsteps/pebble/step4.wav",SOUND_UNSCALABLE,120,10,60},
  175.         },
  176.         particles = WalkParticles,
  177.     },
  178.     player_walk_inwater = CommonEffects.player_walk_inwater,
  179. -------------------------------------
  180.     player_land = {
  181.         sounds = {
  182.             --sound , volume , {min, max}
  183.             --NOTE volume and min max are optional
  184.              {"sounds/doors/dooropen.wav"},
  185.              {"sounds/doors/dooropen.wav"},
  186.             
  187.         },
  188.     },
  189.     gameplay_physic = {
  190.         piercing_resistence = 15,
  191.         friction = 1,
  192.         bouncyness= -2, -- default 0
  193.     },
  194.  
  195.     AI = {
  196.         fImpactRadius = 5,
  197.     },
  198.             
  199. }