//SPRITE_TYPE_ENERGY_BALL2;
placeOnGround = false;
pickUpEnabled = true;
facePlayerPitch = true;

Init(vector(0.75,0.75,0.75), 1769, 4, 2, 1, 0);

damage = 50;

//ai.AddCollisionNode(293, 0);
ai.AddNode(56, -1.0, -1.0, 8, 1.0, 0.0, 479.0, 0.8, 0.8, 2.9, 3.0, -1.0);
ai.AddNode(372, -1.0, -1.0, 0); //AI_TYPE_REFRESH_KILL_TIMER_IF_PICKED_UP;
ai.AddNode(11, 10.0, -1.0, 3, 1.0, 0.0, 0.0);
ai.AddDeathNode(56, 8, 0.0, 0.0, 60.0, 1.0, 1.0, 0.9, 1.1, -1.0);

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

AddLight();

lightColor = vector(0.2, 1.0, 0.2);

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

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

partStruct.m_managed = true;
partStruct.m_type = 250;
spawnParticle(partStruct);

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

tmpSound.m_sound = 60;
tmpSound.m_volumeMin = 3.0;
tmpSound.m_volumeMax = 3.0;
tmpSound.m_pitchMin = 1.8;
tmpSound.m_pitchMax = 1.9;
tmpSound.m_UI = false;
collisionSounds.Push(tmpSound);