void OnStart () { PlayMusic("amb_extra01.ogg", true, 1, 0, 1, false); AddEntityCollideCallback("Player", "explode_scare", "Explode", true, 1); AddUseItemCallback("", "key_1", "prison_1", "UsedKeyOnDoor", true); SetEntityCallbackFunc("key_1", "OnPickup"); AddEntityCollideCallback("grunt_1", "DisableGrunt", "Disable", true, 1); AddEntityCollideCallback("Player", "push", "Push", true, 1); AddEntityCollideCallback("Player", "door_slam", "Slam", true, 1); } void Explode(string &in asParent, string &in asChild, int alState) { SetPropHealth("pot_explode", 0); StopMusic(0, 1); PlayMusic("00_event_hallway.ogg", false, 1, 0, 1, false); PlayMusic("mercedes.ogg", true, 1, 0, 1, true); } void OnPickup(string &in asEntity, string &in type) { StopMusic(0, 1); SetEntityActive("grunt_1", true); ShowEnemyPlayerPosition("grunt_1"); PlayMusic("22_event_trapped.ogg", true, 1, 0, 1, true); } void Disable(string &in asParent, string &in asChild, int alState) { FadeEnemyToSmoke("grunt_1, bool "scare_tingeling_rev.ogg"); PlaySoundAtEntity("Sound_3", "scare_tingeling_rev.ogg", grunt_1, 5, false); PlayMusic("mercedes.ogg", true, 1, 0, 1, true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("prison_1", false, true); PlaySoundAtEntity("", "unlock_door.snt", "prison_1", 0, false); RemoveItem("key_1"); PlayMusic("20_event_darkness.ogg", false, 1, 0, 1, false); } void Push(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("Player", "react_pant.snt", "push", 0, false); AddPlayerBodyForce(30000, 0, 0, false); } void Slam(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("prison_1", true, true); SetSwingDoorLocked("prison_1", true, true); PlaySoundAtEntity("prison_1", "00_laugh.snt", "door_scare", 0, false); } void OnEnter() { } void OnLeave() { } ss