1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef CL_ATTACK_SHEET_H
20 #define CL_ATTACK_SHEET_H
22 #include "entity_sheet.h"
23 #include "fx_stick_mode.h"
25 #include "game_share/magic_fx.h"
27 #include "nel/misc/uv.h"
33 MAGICFX::TSpellMode ProjectileMode
;
34 std::string AttackBeginFX
; // .animation_fx_set
35 std::string AttackLoopFX
; // .animation_fx_set
36 std::string AttackEndFX
; // .animation_fx_set
37 std::string AttackStaticObjectCastFX
; // .animation_fx_set
38 std::string AttackFailFX
; // .animation_fx_set
39 std::string ProjectileFX
;
41 float ProjectileDelay
;
42 float StaticObjectProjectileDelay
;
43 bool IsImpactLocalised
; // is the impact localised ?
44 // if so, the localisation is the same for aiming point, main impact, and physical impact, and is the localisation of the physical impact
45 // if not : projectile aiming point is given by "DefaultAimingPoint", physical damage uses its localisation, and main impact uses default localisation of fx.
47 CFXStickMode DefaultCastingPoint
;
48 CFXStickMode DefaultAimingPoint
;
49 bool PlayImpactFXOnlyOnMainTarget
; // Only may target play the impact fx (but other target play the impact anim)
51 bool LetProjectileStickedOnTarget
;
52 bool ForceUseProjectileDelay
;
53 bool ApplyItemOffsetToWeaponBone
;
55 NLMISC::CVector AdditionnalStartOffset
;
59 virtual void build(const NLGEORGES::UFormElm
&item
, const std::string
&prefix
);
60 virtual void serial(NLMISC::IStream
&f
);