////////////////////////////
// Run when the map starts
void OnStart()
{
AddEntityCollideCallback("Player", "event1", "lol1", true, 1);
PlayMusic("02_amb_safe.ogg", true, 1.0f, 0.0f, 6, true);
}
void lol1(string &in asParent, string &in asChild, int alState)
{
	FadeOut(0.0f);
	FadePlayerRollTo(90, 150, 200);	
	AddTimer("", 4.0f, "aufwach");
	SetPlayerActive(false);
	SetPlayerCrouching(true);
}

void aufwach(string &in asTimer)
{
FadeIn(3.0f);
FadePlayerRollTo(0.0f, 33.0f, 90.0f);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 3.0f, "glotz");

}

void glotz(string &in asTimer)
{
StartPlayerLookAt("cabinet_nice_1", 2.0f, 1.0f, "");
SetMessage("loli", "lolie", 7.0f);
AddTimer("", 3.0f, "ho");
}

void ho(string &in asTimer)
{
StartPlayerLookAt("human_bone_1", 2.0f, 1.0f, "");
AddTimer("", 6.0f, "Credits");
SetMessage("loli1", "lolie1", 7.0f);
}

void Credits(string &in asTimer)
{
StartCredits("ending_agrippa.ogg", false, "End", "Credits", 5);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
