33 {
34#ifdef DIAG_DEVELOPER
35#ifndef SERVER
37#endif
38#endif
39
41
44
45 Human human;
46 if (Class.CastTo(human,
m_Owner))
47 {
48 m_OwnerPosition = human.GetBonePositionWS(human.GetBoneIndexByName(
"Head"));
49
50 HumanInputController hic = human.GetInputController();
51 if (hic)
52 {
57
59 }
60 else
61 {
63 }
64 }
66 {
69 }
70 }
vector m_DirectionFunc
The size of the boundig box, centered.
enum ProcessDirectDamageFlags m_Owner
vector m_OwnerDirection
The position of the owner in world space.
bool m_DebugEnabled
How much should the direction be favoured.
vector m_OwnerPosition
The owner performing the snap callback.
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)