home *** CD-ROM | disk | FTP | other *** search
/ Kompuutteri Kaikille K-CD 1999 #14 / K_PELIT_14_99.ISO / Reqdemo / data1.cab / Critical_Files / effects / partsys.txt < prev    next >
Text File  |  1999-03-26  |  2KB  |  79 lines

  1. #Particle System loader
  2. # Data is:
  3. #    i E [x, y, z]
  4. #    Pi = position scale
  5. #    Vi = velocity scale
  6. #    Ai = acceleration scale
  7. #    Ni = normal scale (normal usually means direction of movement)
  8. #    ANDi = and value
  9. #    Di = diff value
  10. #
  11. # Formulas are:
  12. #    Velocity V = Vi * ( (rand() & ANDi) - Di ) + Ni * normal[i]
  13. #    Position P = position[i] * Pi * Velocity[i]
  14. #            { gravity,             if use gravity
  15. #    Acceleration A ={ Ai * Velocity[i] + gravity,     if add gravity
  16. #            { Ai * Velocity[i],        otherwise
  17. #    dIntensity =     dIntensity - ( rand() & dIntensity_AND )
  18. #    Expire time =     SYSTEM_EXPIRE_TIME - ( rand() & expireAnd )
  19. #
  20. # Colors are:
  21. #    PALETTE_BASE_RED        0x10
  22. #    PALETTE_BASE_INDIAN_SUMMER    0x20
  23. #    PALETTE_BASE_ORANGE        0x30
  24. #    PALETTE_BASE_BURNT_SIENNA    0x40
  25. #    PALETTE_BASE_YELLOW        0x50
  26. #    PALETTE_LIGHT_BROWN        0x60
  27. #    PALETTE_LIGHT_TAN        0x70
  28. #    PALETTE_PALE_LIME        0x80
  29. #    PALETTE_BASE_GRAY        0x90
  30. #    PALETTE_LIGHT_GRAY        0xA0
  31. #    PALETTE_LIGHT_BLUE        0xB0
  32. #    PALETTE_BASE_BLUE        0xC0
  33. #    PALETTE_BASE_INDIGO        0xD0
  34. #    PALETTE_BASE_VIOLET        0xE0
  35. #    PALETTE_BASE_CONFETTI        0xF0
  36. #
  37. #The format follows:
  38. # number of particles
  39. # duration of particles
  40. # use player direction (0 = TRUE, 1 = FALSE )
  41. # number of systems
  42. # [For each system i]
  43. #     scale position of subsystem i:    Px Py Pz
  44. #     scale velocity of subsystem i:    Vx Vy Vz
  45. #     and value of subsystem i:    ANDx ANDy ANDz (HEX)
  46. #     diff value of subsystem i:    Dx Dy Dz       (HEX)
  47. #     scale normal of subsystem i:     Nx Ny Nz
  48. #    use_gravity(0/1)    add_gravity(0/1)
  49. #     scale acceler. of subsystem i:    Ax Ay Az
  50. #     chance of subsystem i
  51. #    particle size of subsystem i
  52. #    color of subsystem i      (HEX)
  53. #    dIntensity of subsystem i (HEX)
  54. #    dIntensity_AND value of subsystem i (HEX)
  55. #    Maximum intensity of subsystem i (HEX)
  56. #    Minimum intensity of subsystem i (HEX)
  57. #    ddIntensity of subsystem i (HEX)
  58. #    expireAnd of subsystem i (HEX)
  59. #
  60. 2
  61. 1000
  62. 0
  63. 1
  64. 100.0 100.0 100.0
  65. 0.00001 0.00001 0.00001
  66. 0xff 0xff 0xff
  67. 0x80 0x80 0x80
  68. 0.0 0.0 0.0
  69. 0 0
  70. -0.0003 -0.0003 -0.0003
  71. 100
  72. 20
  73. 0x10
  74. -0x40
  75. 0x7f
  76. 0xfffff
  77. 0x70000
  78. 0
  79. 0x1ff