placeOnGround = false;

Init(vector(0.75,1.5,1.5), 1210, 0, 2, 0, 0);

capsule.CollisionResponseToAllChannels = 0;
capsule.SetCollisionResponseToChannel(0, 2);
capsule.CollisionObjectType = 7;

partStruct.m_managed = true;
partStruct.m_removeIfTargetBleeds = false;
partStruct.m_normalOffset = 0.0;
partStruct.m_rotate = false;
partStruct.m_type = 11;
partStruct.m_useActorCoordinates = true;
partStruct.m_offset = vector(0.0, 0.0, -0.05 * cubeSize);
spawnParticle(partStruct);

capsule->AllMassScale = 2.0;

lightOffset = vector(0.0, 0.0, -0.05 * cubeSize);
lightFlickering = true;

AddLight();

lightColor = vector(0.8, 0.4, 0.0);

light.LightFunctionFadeDistance = 50.0 * scaleHack;
light.CastShadows = true;
light.LightFalloffExponent = 10.0;
light.Intensity = 50.0;
light.AttenuationRadius = 10.0 * cubeSize * scaleHack;

ai.AddNode(56, -1.0, -1.0, 8, 1.0, 0.0, 50.0, 1.0, 1.0, 1.0, 1.0, -1.0);
ai.AddNode(22, -1.0, -1.0, 11, 75.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
ai.AddNode(107, -1.0, -1.0, 1, 1.0);