bloodbath.lslp 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // The line above should be left blank to avoid script errors in OpenSim.
  3. /*
  4. * Part of the Sloodle project (www.sloodle.org)
  5. *
  6. * Copyright (c) 2011-06 contributors (see below)
  7. * Released under the GNU GPL v3
  8. * -------------------------------------------
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. * All scripts must maintain this copyrite information, including the contributer information listed
  24. *
  25. * As mentioned, this script has been licensed under GPL 3.0
  26. * Basically, that means, you are free to use the script, commercially etc, but if you include
  27. * it in your objects, you must make the source viewable to the person you are distributuing it to -
  28. * ie: it can not be closed source - GPL 3.0 means - you must make it open!
  29. * This is so that others can modify it and contribute back to the community.
  30. * The SLOODLE github can be found here: https://github.com/sloodle
  31. *
  32. * Enjoy!
  33. *
  34. * Contributors:
  35. * Paul Preibisch
  36. * Edmund Edgar
  37. *
  38. * DESCRIPTION
  39. * displays LOTS of blood for 7 seconds then disapears - used for sharks and other under water enemies to rez blood effects
  40. */
  41. lotsOfBlood(){
  42. llParticleSystem([PSYS_PART_MAX_AGE,3.19,
  43. PSYS_PART_FLAGS, 263,
  44. PSYS_PART_START_COLOR, <0.81514, 0.02902, 0.21840>,
  45. PSYS_PART_END_COLOR, <0.98654, 0.01346, 0.24787>,
  46. PSYS_PART_START_SCALE,<0.32215, 0.82749, 0.00000>,
  47. PSYS_PART_END_SCALE,<0.86394, 0.95700, 0.00000>,
  48. PSYS_SRC_PATTERN, 4,
  49. PSYS_SRC_BURST_RATE,0.02,
  50. PSYS_SRC_ACCEL, <0.00000, 0.00000, -2.31811>,
  51. PSYS_SRC_BURST_PART_COUNT,20,
  52. PSYS_SRC_BURST_RADIUS,0.44,
  53. PSYS_SRC_BURST_SPEED_MIN,0.51,
  54. PSYS_SRC_BURST_SPEED_MAX,0.37,
  55. PSYS_SRC_ANGLE_BEGIN, 1.85,
  56. PSYS_SRC_ANGLE_END, 0.00,
  57. PSYS_SRC_OMEGA, <0.00000, 0.00000, -50.83492>,
  58. PSYS_SRC_MAX_AGE, 0.0,
  59. PSYS_SRC_TEXTURE, "TEXTURE_BLOOD_CLOUD",
  60. PSYS_PART_START_ALPHA, 0.62,
  61. PSYS_PART_END_ALPHA, 0.53]);
  62. }
  63. default {
  64. state_entry() {
  65. lotsOfBlood();
  66. llSetTimerEvent(7);
  67. }
  68. timer() {
  69. llDie();
  70. }
  71. }
  72. // Please leave the following line intact to show where the script lives in Git:
  73. // SLOODLE LSL Script Git Location: mod/gaming-1.0/objects/shark/assets/bloodbath.lslp