home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / bh_carpet_hard.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.8 KB  |  90 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 1.0
  5.     path models/fx/dummy
  6.     skelmodel dummy2.skd
  7. }
  8.  
  9. init
  10. {
  11.     server
  12.     {
  13.     }
  14.     client
  15.     {
  16.         //cache some stuff used in this effect
  17.         cache bhole_carpet.spr // cache the bullet hole shader
  18.  
  19.         cache models/fx/bh_wood_piece.tik
  20.         cache models/fx/bh_wood_puff.tik
  21.  
  22.         // concentrated puff of wood debris
  23.         sfx originspawn
  24.         (
  25.             model models/fx/bh_wood_puff.tik
  26.             spawnrange 1536
  27.             alpha 1.0
  28.             count 1
  29.             life 0.35
  30.             scale 8
  31.         )
  32.  
  33.         // wood chunks
  34.         sfx originspawn
  35.         (
  36.             model models/fx/bh_wood_piece.tik
  37.             spawnrange 1536
  38.             alpha 1.0
  39.             count 3
  40.             angles random 360 random 360 0
  41.             avelocity crandom 180 crandom 180 0
  42.             velocity 75
  43.             randvelaxis random 125 crandom 60 crandom 60
  44.             accel 0 0 -800
  45.             life 0.6 0.7
  46.             scalemin 0.6
  47.             scalemax 1.4
  48.             fadedelay 0.5
  49.         )
  50.  
  51.         // slightly delayed, wood chunks
  52.         delayedsfx 0.1 originspawn
  53.         (
  54.             model models/fx/bh_wood_piece.tik
  55.             spawnrange 1536
  56.             alpha 1.0
  57.             count 2
  58.             angles random 360 random 360 0
  59.             avelocity crandom 180 crandom 180 0
  60.             velocity 75
  61.             randvelaxis random 125 crandom 60 crandom 60
  62.             accel 0 0 -800
  63.             life 0.6 0.7
  64.             scalemin 0.6
  65.             scalemax 1.4
  66.             fadedelay 0.5
  67.         )
  68.         
  69.         // small bit of lingering smoke
  70.         sfx originspawn
  71.         (
  72.             volumetric
  73.             model bulletimpact    // sets the type of smoke
  74.             life 10        // amount of smoke
  75.             scale 1.0    // radius
  76.             alpha 0.2    // density
  77.             color 0.8 0.8 0.8    // RBG color of the smoke
  78.             velocity 2    // base velocity away from the surface
  79.             randvelaxis random 6 0 0    // velocity offset
  80.             offsetalongaxis random 20 crandom 4 crandom 4    // positional offset
  81. //            collision // turn on collision detection
  82.         )
  83.     }
  84. }
  85.  
  86. // This section is just needed to be a valid tiki file
  87. animations
  88. {
  89.     idle dummy2.skc 
  90. }