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_rock.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  3.4 KB  |  108 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. --#Script:ReloadScript("scripts/materials/mat_rock.lua") --for copying/pasting into the console!!!
  4.     
  5.  
  6. Materials["mat_rock"] = {
  7.     type="rock",
  8. -------------------------------------
  9.     PhysicsSounds=PhysicsSoundsTable.Hard,
  10. -------------------------------------    
  11.     bullet_drop_single = CommonEffects.common_bullet_drop_single_ashphalt,
  12.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_ashphalt,
  13. -------------------------------------    
  14.  
  15.     projectile_hit = CommonEffects.common_projectile_hit,
  16.     mortar_hit = CommonEffects.common_mortar_hit,
  17.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  18.     flashgrenade_hit = CommonEffects.common_flashgrenade_hit,
  19.     grenade_hit = CommonEffects.common_grenade_hit,
  20.  
  21.     bullet_hit = {
  22.         sounds = {
  23.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  24.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  25.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  26.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  27.                 },
  28.         decal = { 
  29.             texture = System:LoadTexture("Textures/Decal/rock.dds"),
  30.             scale = 0.05,
  31.             random_scale = 100,
  32.             random_rotation = 359,
  33.                 },
  34.         
  35.         particleEffects = {
  36.             name = "bullet.hit_rock.a",
  37.                 },
  38.         },
  39.     pancor_bullet_hit = {
  40.         sounds = {
  41.             {"Sounds/bullethits/brock1.wav",SOUND_UNSCALABLE,200,5,60},
  42.             {"Sounds/bullethits/brock2.wav",SOUND_UNSCALABLE,200,5,60},
  43.             {"Sounds/bullethits/brock3.wav",SOUND_UNSCALABLE,200,5,60},
  44.             {"Sounds/bullethits/brock4.wav",SOUND_UNSCALABLE,200,5,60},
  45.             },
  46.         decal = { 
  47.             texture = System:LoadTexture("Textures/Decal/rock.dds"),
  48.             scale = 0.03,
  49.             random_scale = 100,
  50.             random_rotation = 359,
  51.             },
  52.         
  53.         particleEffects = {
  54.             name = "bullet.hit_rock_pancor.a",
  55.             },
  56.             
  57.         },
  58.  
  59.  
  60.  
  61. -------------------------------------
  62.     player_walk = CommonEffects.player_conc_walk,
  63.     player_run = CommonEffects.player_conc_run,
  64.     player_crouch = CommonEffects.player_conc_crouch,
  65.     player_prone = CommonEffects.player_conc_prone,
  66.     player_walk_inwater = CommonEffects.player_walk_inwater,
  67.     
  68.     player_drop = {
  69.         sounds = {
  70.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  71.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  72.         },
  73.  
  74.     },
  75.     melee_slash = {
  76.         sounds = {
  77.             {"sounds/weapons/machete/macheteconc1.wav",SOUND_UNSCALABLE,185,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  78.             {"sounds/weapons/machete/macheteconc2.wav",SOUND_UNSCALABLE,185,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  79.             {"sounds/weapons/machete/macheteconc3.wav",SOUND_UNSCALABLE,185,5,30,{fRadius=10,fInterest=1,fThreat=0,},},
  80.         },
  81.         particleEffects = {
  82.             name = "bullet.hit_rock.a",
  83.                 },
  84.     },
  85. -------------------------------------
  86.     player_land = {
  87.         sounds = {
  88.             --sound , volume , {min, max}
  89.             --NOTE volume and min max are optional
  90.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  91.              {"sounds/doors/dooropen.wav",SOUND_UNSCALABLE,150,4,20},
  92.             
  93.         },
  94.     },
  95.     gameplay_physic = {
  96.         piercing_resistence = 15,
  97.         friction = 0.7,
  98.         bouncyness= 0.2, -- default 0
  99.     },
  100.     ---------------------------------------------
  101.     AI = {
  102.         fImpactRadius = 5,
  103.     },        
  104.     
  105.     --vehicle effects: particle is called when wheels are slipping, smoke in any case if the vehicle is moving.
  106.     VehicleParticleEffect = CommonEffects.common_vehicle_particles_rocks,
  107.     VehicleSmokeEffect = CommonEffects.common_vehicle_smoke_mud,    
  108. }