//SPRITE_TYPE_MICRO_MISSILE2;
placeOnGround = false;
enemyAnimations = true;
canBeStuckTo = false;

anim.m_clamp = true;
anim.m_animationSpeed = 8.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(0.75,0.75,0.75), 1574, 1, 2, 1, 0);

damage = 5;
mesh.castShadow = false;

ai.AddNode(288, -1.0, 0.25, 1, 10000.0);
ai.AddNode(53, 0.25, -1.0, 0);
ai.AddNode(377, 0.25, -1.0, 7, 282.0, 1.0, 0.0, -1.0, 2.0, 0.0, 0.25);
ai.AddNode(30, 0.25, -1.0, 6, 156.0, 1.0, 0.0, -1.0, 1.0, 1.0);
ai.AddNode(30, 0.25, -1.0, 6, 33.0, 1.0, 0.0, -1.0, 1.0, 1.0);
//8 bool attached, bool UI, ESoundEnum sound, float volumeMin, float volumeMax, float pitchMin, float pitchMax, float rate(-1=once);
//ai.AddNode(56, 0.25, -1.0, 8, 0.0, 0.0, 224.0, 1.0, 1.0, 1.7, 1.8, -1.0);
ai.AddNode(56, 0.25, -1.0, 8, 1.0, 0.0, 770.0, 1.0, 1.0, 0.9, 1.1, -1.0);
//12 int32 ammoType, ESpriteTypeEnum blankArrowType, bool forceStick, bool explodeIfKill, int32 ammoAmount, bool destructible, bool enableRandomKill, bool clearKillParticlesAndAiIfNotKill, float pickupDistance, bool dropOnTargetDeath, bool nailsEnemies, bool lastHitPierces;
ai.AddCollisionNode(196, 12, -1.0, 1219.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0);
//10  int32 damage, float scale, int32 fireStacks, EParticleTypeEnum particle, float shakeFactor, float particleScale, float soundIncriminateScale, float soundVolume, float soundPitch, float lightScale;
ai.AddDeathNode(8, 10, 20.0, 4.5, 0.0, 54.0, 0.1, 0.6, 4.5, 0.5, 1.7, 0.15);

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(0.2,0.2,0.2);

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

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