home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / bh_paper_hard.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  2.5 KB  |  106 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.     client
  12.     {
  13.         //cache some stuff used in this effect
  14.         cache bhole_paper.spr // cache the bullet hole shader
  15.         
  16.         cache bh_wood_piece.spr
  17.         cache models/fx/bh_wood_puff.tik
  18.  
  19.         // puffy puff
  20.         sfx originspawn
  21.         (
  22.             model models/fx/bh_wood_puff.tik
  23.             alpha 1.0
  24.             count 1
  25.             life 5.0 6.5
  26.             scalemin 0.02
  27.             scalemax 0.08
  28.             angles random 360 random 360 0
  29.             avelocity crandom 200 crandom 200 crandom 200
  30.             wind
  31.             velocity 20
  32.         )
  33.  
  34.         // chunky chunks of chunky stuff (colliders)
  35.         sfx originspawn
  36.         (
  37.             model cardboard_light.spr
  38.             spawnrange 1536
  39.             alpha 1.0
  40.             angles random 360 random 360 0
  41.             offsetalongaxis 2 crandom 1 crandom 1 
  42.             count 3
  43.             velocity 50
  44.             randvelaxis random 150 crandom 32 crandom 32
  45.             accel 0 0 -60
  46.             life 4.0 6.0
  47.             scalemin 0.01
  48.             scalemax 0.05
  49.             fadedelay 2.0
  50.             collision
  51. //            bouncefactor 0.2
  52. //            bouncesound snd_bh_debris_stone
  53.         )
  54.  
  55.         // first bit of lingering smoke
  56.         sfx originspawn
  57.         (
  58.             volumetric
  59.             model bulletimpact    // sets the type of smoke
  60.             life 2        // amount of smoke
  61.             scale 1.5    // radius
  62.             alpha 0.3    // density
  63.             color 0.7 0.7 0.7    // RBG color of the smoke
  64.             velocity 32    // base velocity away from the surface
  65.             randvelaxis random 4 0 0    // velocity offset
  66.             offsetalongaxis 4 crandom 4 crandom 4    // positional offset
  67. //            collision // turn on collision detection
  68.         )
  69.         
  70.         // second bit of lingering smoke
  71.         delayedsfx 0.15 originspawn
  72.         (
  73.             volumetric
  74.             model bulletimpact    // sets the type of smoke
  75.             life 4        // amount of smoke
  76.             scale 1.5    // radius
  77.             alpha 0.25    // density
  78.             color 0.7 0.7 0.7    // RBG color of the smoke
  79.             velocity 20    // base velocity away from the surface
  80.             randvelaxis random 4 0 0    // velocity offset
  81.             offsetalongaxis 4 crandom 2 crandom 2    // positional offset
  82. //            collision // turn on collision detection
  83.         )
  84.         
  85.         // third bit of lingering smoke
  86.         delayedsfx 0.3 originspawn
  87.         (
  88.             volumetric
  89.             model bulletimpact    // sets the type of smoke
  90.             life 5        // amount of smoke
  91.             scale 1.5    // radius
  92.             alpha 0.25    // density
  93.             color 0.7 0.7 0.7    // RBG color of the smoke
  94.             velocity 16    // base velocity away from the surface
  95.             randvelaxis random 4 0 0    // velocity offset
  96.             offsetalongaxis 4 crandom 2 crandom 2    // positional offset
  97. //            collision // turn on collision detection
  98.         )
  99.     }
  100. }
  101.  
  102. // This section is just needed to be a valid tiki file
  103. animations
  104. {
  105.     idle dummy2.skc 
  106. }