void OnStart() { AddEntityCollideCallback("Player", "monsterspawn", "MonsterFunction", true, 1); AddEntityCollideCallback("Player", "clockbong", "ClockScare", true, 1); SetEntityPlayerInteractCallback("Girls_Dorm_First_Floor", "IsItLocked3", true); SetEntityPlayerInteractCallback("Boys_Dorm_First_Floor", "IsItLocked4", true); SetEntityPlayerInteractCallback("ra_office", "IsItLocked5", true); AddUseItemCallback("open_Girls_Dorm_First_Floor_door", "girl_key", "Girls_Dorm_First_Floor", "openlevel", false); }
void openlevel(string &in asItem, string &in asEntity){ SetSwingDoorLocked("Girls_Dorm_First_Floor", false, true); PlaySoundAtEntity("", "unlock_door", "door1", 0, false); RemoveItem("girl_key"); PlayMusic("02_puzzle.ogg", false, 0.7f, 0, 10, false); GiveSanityBoostSmall();}
void MonsterFunction(string &in asParent, string &in asChild, int alState){ SetEntityActive("servant_grunt_1", true); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 4, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 1, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 1, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 4, "");}
void ClockScare(string &in asParent, string &in asChild, int alState){ PlaySoundAtEntity("brute", "notice_long.snt", "PosNodeArea_1", 1.0f, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); GiveSanityDamage(5.0f, true);}
////LOCKED DOORS
///This is the RA's officevoid IsItLocked3(string &in entity){ if (GetSwingDoorLocked(entity) && entity == "ra_door") { SetMessage("Doors", "LockedDoor5", 0); AddQuest("open_ra_quest", "open_door"); }}
///This is the girls dormvoid IsItLocked4(string &in entity){ if (GetSwingDoorLocked(entity) && entity == "Girls_Dorm_First_Floor") { SetMessage("Doors", "LockedDoor3", 0); AddQuest("open_girls_quest", "open_door"); }}
///This is the boys dorm
void IsItLocked5(string &in entity){ if (GetSwingDoorLocked(entity) && entity == ""Boys_Dorm_First_Floor") { SetMessage("Doors", "LockedDoor4", 0); AddQuest("find_crowbar_quest", "open_door"); }}
void OnEnter(){PlayMusic("01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);}
void OnLeave(){ SetupLoadScreen("LoadingText", "Loading_GirlsDorm", 1, "Rose.jpg");}