/bin/scripts/commands/creatureAreaKnockdown.lua

https://bitbucket.org/TylerBerlin/swg-arkanian-dawn · Lua · 84 lines · 35 code · 14 blank · 35 comment · 0 complexity · 9d9015c754ca8f6d9bb478d9017d96be MD5 · raw file

  1. --Copyright (C) 2007 <SWGEmu>
  2. --This File is part of Core3.
  3. --This program is free software; you can redistribute
  4. --it and/or modify it under the terms of the GNU Lesser
  5. --General Public License as published by the Free Software
  6. --Foundation; either version 2 of the License,
  7. --or (at your option) any later version.
  8. --This program is distributed in the hope that it will be useful,
  9. --but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. --MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. --See the GNU Lesser General Public License for
  12. --more details.
  13. --You should have received a copy of the GNU Lesser General
  14. --Public License along with this program; if not, write to
  15. --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. --Linking Engine3 statically or dynamically with other modules
  17. --is making a combined work based on Engine3.
  18. --Thus, the terms and conditions of the GNU Lesser General Public License
  19. --cover the whole combination.
  20. --In addition, as a special exception, the copyright holders of Engine3
  21. --give you permission to combine Engine3 program with free software
  22. --programs or libraries that are released under the GNU LGPL and with
  23. --code included in the standard release of Core3 under the GNU LGPL
  24. --license (or modified versions of such code, with unchanged license).
  25. --You may copy and distribute such a system following the terms of the
  26. --GNU LGPL for Engine3 and the licenses of the other code concerned,
  27. --provided that you include the source code of that other code when
  28. --and as the GNU LGPL requires distribution of source code.
  29. --Note that people who make modified versions of Engine3 are not obligated
  30. --to grant this special exception for their modified versions;
  31. --it is their choice whether to do so. The GNU Lesser General Public License
  32. --gives permission to release a modified version without this exception;
  33. --this exception also makes it possible to release a modified version
  34. --which carries forward this exception.
  35. --true = 1, false = 0
  36. CreatureAreaKnockdownCommand = {
  37. name = "creatureareaknockdown",
  38. damageMultiplier = 0.5,
  39. speedMultiplier = 1,
  40. combatSpam = "attack",
  41. animation = "creature_attack_special_2",
  42. animType = GENERATE_INTENSITY,
  43. healthCostMultiplier = 0,
  44. actionCostMultiplier = 0,
  45. mindCostMultiplier = 0,
  46. stateEffects = {
  47. StateEffect(
  48. DIZZY_EFFECT,
  49. {},
  50. { "dizzy_defense", "resistance_states" },
  51. { "jedi_state_defense" },
  52. 75,
  53. 0,
  54. 10
  55. ),
  56. StateEffect(
  57. KNOCKDOWN_EFFECT,
  58. { "knockdownRecovery", "lastKnockdown" },
  59. { "knockdown_defense" },
  60. {},
  61. 75,
  62. 0,
  63. 0
  64. )
  65. },
  66. areaRange = 25,
  67. poolsToDamage = RANDOM_ATTRIBUTE,
  68. areaAction = true
  69. }
  70. AddCommand(CreatureAreaKnockdownCommand)