void OnStart()
{
PreloadSound("cougar_1.snt");
AddEntityCollideCallback("Player", "cougar_1", "cougarsound1", true, 1);
FadeOut(0.0);
SetEntityPlayerInteractCallback("lantern_1", "setoil", false);
FadeIn(5.0);
SetPlayerActive(false);
ShowPlayerCrossHairIcons(false);
SetPlayerCrouching(true);
FadePlayerRollTo(50, 150, 150);
FadeRadialBlurTo(0.1, 0.4);
FadeImageTrailTo(2.0, 0.4);
FadeSepiaColorTo(100.0, 4.0);
AddTimer("", 5.0, "fade1");
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
PlaySoundAtEntity("ring", "insanity_ear_ring.snt", "Player", 12.0, false);
StopMusic(0.1, 1);
}

//LANTERN OIL
void setoil(string &in asEntity)
{
SetPlayerLampOil(20.0);
AddEntityCollideCallback("Player", "to_02outside", "to02outside", true, 1);
}

//INTRO STUFF
void fade1(string &in asTimer)
{
FadeOut(2.0);
AddTimer("", 2.0, "fade2");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
StopSound("ring", 5.0);
}

void fade2(string &in asTimer)
{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
FadeIn(2.0);
AddTimer("", 2.0, "lookhere1");
StartPlayerLookAt("Look_here1", 2, 4, "");
}

void lookhere1(string &in asTimer)
{
FadeOut(2.0);
AddTimer("", 2.0, "fade3");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}

void fade3(string &in asTimer)
{
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
FadeIn(2.0);
AddTimer("", 2.0, "lookhere2");
StartPlayerLookAt("Look_here2", 4, 8, "");
PlayMusic("forestnight.ogg", true, 0.5, 5.0, 1, true);
}

void lookhere2(string &in asTimer)
{
AddTimer("", 2.0, "finishintro");
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}

void finishintro(string &in asTimer)
{
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetPlayerCrouching(false);
FadePlayerRollTo(0, 33, 33);
AddTimer("", 3.0, "finishpain");
StopPlayerLookAt();
PlaySoundAtEntity("", "player_cough.snt", "Player", 0, false);
}
//FINISH INTRO STUFF


void finishpain(string &in asTimer)
{
FadeRadialBlurTo(0.0, 1.0);
FadeSepiaColorTo(0.0, 25.0);
FadeImageTrailTo(0.0, 0.1);
}

void to02outside(string &in asParent, string &in asChild, int alState)
{
ChangeMap("03_outside.map", "from_01", "", "");
}

void cougarsound1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "cougar_1.snt", "Player", 0, false);
SetMessage("Locked", "NoLamp", 5.0);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
GiveSanityDamage(5, true);
}

void OnLeave()
{
SetupLoadScreen("LoadingText", "outside1", 0, "outside01.jpg");
}

