//SPRITE_TYPE_SPARK_BABIES;
placeOnGround = false;
enemyAnimations = true;

anim.m_clamp = true;
anim.m_animationSpeed = 1.0;
anim.m_frameAmount = 1;
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);

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), 66, 4, 2, 1, 0);

damage = 0;

capsule.CollisionObjectType = 6;
capsule.SetCollisionResponseToChannel(6, 0);
capsule.SetCollisionResponseToChannel(7, 0);
capsule.SetCollisionResponseToChannel(1, 0);
capsule.SetCollisionResponseToChannel(2, 0);
capsule.SetCollisionResponseToChannel(14, 0);
//capsule.SetCollisionResponseToChannel(0, 0);
capsule.AllMassScale = 0.0;
capsule.enableGravity = false;
mesh.CastShadow = false;

ai.AddNode(22, -1.0, -1.0, 11, 0.75 * cubeSize, 0.0, 0.0, 0.25, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 20.0);

ai.AddNode(294, -1.0, -1.0, 3, 300.0, 50.0, 1500.0);

ai.AddActivateNode(11, -1.0, -1.0, 3, 0.0, 0.0, 0.0);
ai.AddDeathNode(56, 8, 0.0, 0.0, 60.0, 2.0, 2.0, 0.95, 1.05, -1.0);

AddLight();

lightColor = vector(0.0, 0.6, 1.0);

light.LightFunctionFadeDistance = 50.0;
light.CastShadows = true;
light.LightFalloffExponent = 40.0;
light.Intensity = 15.0;

actorHiddenInGame=false;
mesh.visibility=true;

partStruct.m_managed = true;
partStruct.m_removeIfTargetBleeds = false;
partStruct.m_normalOffset = 0.0;
partStruct.m_rotate = false;
partStruct.m_type = 251;
partStruct.m_useActorCoordinates = true;
partStruct.m_offset = vector(0.0,0.0,0.0);
spawnParticle(partStruct);

partStruct.m_managed = false;
partStruct.m_removeIfTargetBleeds = false;
partStruct.m_normalOffset = 0.0;
partStruct.m_type = 154;
partStruct.m_offset = vector(0.0,0.0,0.0);
partStruct.m_rotate = false;
partStruct.m_useActorCoordinates = true;
killParticles.Push(partStruct);