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_concrete.lua < prev    next >
Encoding:
Text File  |  2004-07-21  |  3.1 KB  |  107 lines

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