//SPRITE_TYPE_CHAOS_STAFF_BOMB;
placeOnGround = false;
facePlayerPitch = true;
enemyAnimations = true;

anim.m_clamp = false;
anim.m_animationSpeed = 4.0;
anim.m_frameAmount = 2;
anim.m_frameOffset = 0;
animations.Push(anim);
anim.m_frameOffset = 2;
animations.Push(anim);
anim.m_frameOffset = 4;
animations.Push(anim);
anim.m_frameOffset = 6;
animations.Push(anim);

animations.Push(anim);
animations.Push(anim);
animations.Push(anim);
animations.Push(anim);
animations.Push(anim);
animations.Push(anim);
animations.Push(anim);
animations.Push(anim);

anim.m_frameOffset = 0;
animations.Push(anim);
anim.m_frameOffset = 1;
animations.Push(anim);
anim.m_frameOffset = 2;
animations.Push(anim);
anim.m_frameOffset = 3;
animations.Push(anim);

Init(vector(3.0,3.0,3.0), 1570, 1, 2, 1, 0);

damage = 1;
mesh.castShadow = false;

ai.AddNode(56, -1.0, -1.0, 8, 1.0, 0.0, 765.0, 5.0, 5.0, 1.0, 1.0, -1.0);
//ai.AddNode(30, -1.0, -1.0, 6, 230.0, 1.0, 0.0, 0.05, 0.0, 0.0);
//13  ESpriteTypeEnum type, uint32 amount, float velocity, bool atImpact, float offsetX, float offsetY, float offsetZ, bool ownerRotation, float normalOffset, float rate(-1=once), float maxDistance(0=lightFlicker,1=viewDistance,2=infinite), bool headingVelocity, float scaleHack;
ai.AddNode(1, -1.0, -1.0, 13, 1215.0, 4.0, 55.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1, 2.0, 0.0, 1.0);
ai.SetLastNodeToRunOnClients();
ai.AddNode(11, 2.5, -1.0, 3, 0.0, 0.0, 0.0);

ai.AddDeathNode(8, 10, 28.0, 12.0, 0.0, 235.0, 1.0, 1.33, 12.0, 1.2, 0.8, 1.0);

capsule.CollisionObjectType = 7;
capsule.SetCollisionResponseToChannel(7, 0);
capsule.SetCollisionResponseToChannel(2, 0);
capsule.SetCollisionResponseToChannel(14, 0);
capsule.AllMassScale = 0.0;
capsule.enableGravity = false;
capsule.scale = vector(1.5,1.5,1.5);

decalStruct.m_rotateVelocity = false;
decalStruct.m_preventOverlapping = false;
decalStruct.m_decal = 12;
decalStruct.m_allowsGrowing = false;
killDecals.Push(decalStruct);