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_grass.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  2.7 KB  |  93 lines

  1. --#Script:ReloadScript("scripts/materials/mat_grass.lua");
  2. Script:LoadScript("scripts/materials/commoneffects.lua");
  3. Materials["mat_grass"] = {
  4.     type="grass",
  5. -------------------------------------
  6.     PhysicsSounds=PhysicsSoundsTable.Soft,
  7. -------------------------------------
  8.     bullet_hit = {
  9.         sounds = {
  10.             {"Sounds/bullethits/bgrass1.wav",SOUND_UNSCALABLE,200,5,60},
  11.             {"Sounds/bullethits/bgrass2.wav",SOUND_UNSCALABLE,200,5,60},
  12.             {"Sounds/bullethits/bgrass3.wav",SOUND_UNSCALABLE,200,5,60},
  13.             {"Sounds/bullethits/bgrass4.wav",SOUND_UNSCALABLE,200,5,60},
  14.             
  15.             
  16.         },
  17.         
  18.         decal = { 
  19.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  20.             scale = 0.03,
  21.         },
  22.  
  23.         particleEffects = {
  24.             name = "bullet.hit_leaf.a",
  25.         },
  26.     },
  27.  
  28.     pancor_bullet_hit = {
  29.         sounds = {
  30.             {"Sounds/bullethits/bgrass1.wav",SOUND_UNSCALABLE,200,5,60},
  31.             {"Sounds/bullethits/bgrass2.wav",SOUND_UNSCALABLE,200,5,60},
  32.             {"Sounds/bullethits/bgrass3.wav",SOUND_UNSCALABLE,200,5,60},
  33.             {"Sounds/bullethits/bgrass4.wav",SOUND_UNSCALABLE,200,5,60},
  34.             
  35.             
  36.         },
  37.         
  38.         decal = { 
  39.             texture = System:LoadTexture("Textures/Decal/ground.dds"),
  40.             scale = 0.03,
  41.         },
  42.  
  43.         particleEffects = {
  44.             name = "bullet.hit_leaf.a",
  45.         },
  46.     },
  47.  
  48.     projectile_hit = CommonEffects.common_projectile_hit,
  49.     mortar_hit = CommonEffects.common_mortar_hit,
  50.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  51.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  52.     grenade_hit = CommonEffects.common_grenade_hit,
  53.     melee_slash = {
  54.         sounds = {
  55.             {"sounds/weapons/machete/machetesand4.wav",SOUND_UNSCALABLE,255,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  56.         },
  57.         particleEffects = {
  58.             name = "bullet.hit_leaf.a",
  59.         },
  60.  
  61.     },
  62. -------------------------------------
  63.     player_walk = CommonEffects.player_grass_walk,
  64.     player_run = CommonEffects.player_grass_run,
  65.     player_crouch = CommonEffects.player_grass_crouch,
  66.     player_prone = CommonEffects.player_grass_prone,
  67.     player_walk_inwater = CommonEffects.player_walk_inwater,
  68.     
  69. -------------------------------------
  70.     player_drop = {
  71.         sounds = {
  72.             {"sounds/player/bodyfalls/bodyfallgrass1.wav",SOUND_UNSCALABLE,210,10,150},
  73.             {"sounds/player/bodyfalls/bodyfallgrass2.wav",SOUND_UNSCALABLE,210,10,150},
  74.         },
  75.     },
  76. -------------------------------------
  77.     
  78.     gameplay_physic = {
  79.         piercing_resistence = 2,
  80.         friction = 0.6,
  81.         bouncyness= -2, -- default 0
  82.         no_collide=1,
  83.     },
  84.  
  85. ---------------------------------------------
  86.     AI = {
  87.         fImpactRadius = 5,
  88.     },    
  89.     
  90.     --vehicle effects: particle is called when wheels are slipping, smoke in any case if the vehicle is moving.
  91.     VehicleParticleEffect = CommonEffects.common_vehicle_particles_grass,
  92.     --VehicleSmokeEffect = CommonEffects.common_vehicle_smoke_grass,
  93. }