PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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