home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 10 / 1996-11_-_Disc_2.10.bin / ddrome / data.z / EXPLODEX.GW < prev    next >
Text File  |  1996-07-10  |  3KB  |  97 lines

  1. # Set up explosion node and make it reference basic
  2. # explosion data.
  3.  
  4. ##################################################
  5. # Read in 3 types of effects for each explosion 
  6. ##################################################
  7.  
  8. LoadGameGen fx_col_1.gam  explode_effect%explosion_number%
  9. #PrintTree explode_effect%explosion_number%
  10. SetAltitudeSurface off
  11. SetIntersectSurface off
  12.  
  13. #PrintTree explode_effect%explosion_number%
  14.  
  15. #Set cycling texture effect, sets 1st polygon only
  16. FindNode spark_1
  17. Object3DSetFacade
  18. CycleTextureSetOn 4
  19. CycleTextureSetSpeed 7.8
  20. CycleTextureSetMap fx_col11.zim 411
  21. CycleTextureSetMap fx_col12.zim 412
  22. CycleTextureSetMap fx_col13.zim 413
  23. CycleTextureSetMap fx_col14.zim 414
  24.  
  25. LoadGameGen fx_smexp.gam  sm_explode_effect%explosion_number%
  26. #PrintTree sm_explode_effect%explosion_number%
  27. SetAltitudeSurface off
  28. SetIntersectSurface off
  29.  
  30. #textures for small fire explosion
  31. FindNode exp_sm1
  32. Object3DSetFacade
  33. CycleTextureSetOn 8
  34. CycleTextureSetSpeed 7.8
  35. CycleTextureSetMap sm_ex_01.zim 419
  36. CycleTextureSetMap sm_ex_02.zim 420
  37. CycleTextureSetMap sm_ex_03.zim 421
  38. CycleTextureSetMap sm_ex_04.zim 422
  39. CycleTextureSetMap sm_ex_05.zim 423
  40. CycleTextureSetMap sm_ex_06.zim 424
  41. CycleTextureSetMap sm_ex_07.zim 425
  42. CycleTextureSetMap sm_ex_08.zim 426
  43.  
  44. #Load large explosion
  45. LoadGameGen fx_lgexp.gam  lg_explode_effect%explosion_number%
  46. #PrintTree lg_explode_effect%explosion_number%
  47. SetAltitudeSurface off
  48. SetIntersectSurface off
  49.  
  50. # textures large fire explosion
  51. FindNode exp_lg1
  52. Object3DSetFacade
  53. CycleTextureSetOn 8
  54. CycleTextureSetSpeed 7.8
  55. CycleTextureSetMap ex_lg_01.zim 427
  56. CycleTextureSetMap ex_lg_02.zim 428
  57. CycleTextureSetMap ex_lg_03.zim 429
  58. CycleTextureSetMap ex_lg_04.zim 430
  59. CycleTextureSetMap ex_lg_05.zim 431
  60. CycleTextureSetMap ex_lg_06.zim 432
  61. CycleTextureSetMap ex_lg_07.zim 433
  62. CycleTextureSetMap ex_lg_08.zim 434
  63.  
  64. ##################################################
  65. # Set up nodes for an explosion instance 
  66. ##################################################
  67.  
  68. NewObject3D explosion%explosion_number%
  69. FindNode explosion%explosion_number%
  70. Object3DSetActive off
  71. Object3DAddChild exp_sm1       
  72. Object3DAddChild exp_lg1 
  73. Object3DAddChild spark_1 
  74.    
  75.  
  76. FindNode world1
  77. AddChild explosion%explosion_number%
  78. #PrintTree explosion%explosion_number%
  79.  
  80. ##################################################
  81. # Add point lights to explosion
  82. ##################################################
  83.  
  84. LightNew explosionlight%explosion_number%
  85. LightSetTranslate  0 .3 0
  86. LightSetColor  .9 .9 .9
  87. LightSetRanges  10 30
  88. LightSetPointSource
  89. SetIntersectSurface off
  90. SetAltitudeSurface off
  91. LightSetActive off
  92. FindNode explosion%explosion_number%
  93. Object3DAddChild explosionlight%explosion_number%
  94.  
  95. FindNode world1
  96. WorldAddLight explosionlight%explosion_number%
  97.