Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////WAKE UP////////
- void wakeUp()
- {
- SetSanityDrainDisabled(true);
- FadeOut(0);
- FadeIn(6);
- FadeImageTrailTo(2, 2);
- FadeSepiaColorTo(100, 4);
- SetPlayerActive(false);
- FadePlayerRollTo(50, 220, 220);
- FadeRadialBlurTo(0.15, 2);
- SetPlayerCrouching(true);
- AddTimer("trig1", 8.0f, "beginStory");
- }
- void beginStory(string &in asTimer)
- {
- ChangePlayerStateToNormal();
- // SetPlayerActive(true);
- FadePlayerRollTo(0, 33, 33);
- FadeRadialBlurTo(0.0, 1);
- FadeSepiaColorTo(0, 4);
- SetPlayerCrouching(false);
- FadeImageTrailTo(0,1);
- PlayGuiSound("react_sigh1", 1.0f);
- AddTimer("trig2", 0.0f, "scene");
- }
- void scene(string &in asTimer)
- {
- PlayGuiSound("react_scare1", 1.0f);
- StartPlayerLookAt("alodar_line_1", 0.5, 0.5, "");
- SetEntityActive("warden_placeholder_1", true);
- for(int i=1;i<=14;i++)
- {
- AddEnemyPatrolNode("warden_placeholder_1", "PathNodeArea_"+i, 0.01f, "");
- }
- AddTimer("trig3", 2.4f, "look_change");
- }
- void look_change(string &in asTimer)
- {
- PlayGuiSound("react_scare3", 1.0f);
- StartPlayerLookAt("alodar_line_2", 0.5, 0.5, "");
- }
- /////////////////////////////
- //////////BEGIN CRUSHING SEQUENCE/////////
- void alodar_talk1(string &in asParent, string &in asChild, int alState)
- {
- //SetPlayerActive(false);
- PlayGuiSound("react_pant2", 1.0f);
- StartPlayerLookAt("warden_placeholder_1", 2, 2, "");
- //AddTimer("change_look", 4.0f, "look_at_golem");
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_1", false, "Player", 5.0f, 100.0f);
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_2", false, "Player", 5.0f, 100.0f);
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_3", false, "Player", 5.0f, 100.0f);
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_4", false, "Player", 5.0f, 100.0f);
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_5", false, "Player", 5.0f, 100.0f);
- AddEffectVoice("placeholder", "", "Dialogues", "CH01L07_Alodar_6", false, "Player", 5.0f, 100.0f);
- SetEffectVoiceOverCallback("crush_begin");
- }
- ///////////////////////////////////
- /////////CRUSHING EVENT BEGIN////////
- void crush_begin()
- {
- PlayGuiSound("react_scare3", 1.0f);
- SetPlayerActive(true);
- StopPlayerLookAt();
- //SetEntityActive("warden_placeholder_1", true);
- for(int i=1;i<=9;i++)
- {
- AddEnemyPatrolNode("warden_placeholder_1", "go_away_"+i, 0.01f, "");
- }
- PlayMusic("29_amb02.ogg", true, 1, 3, 1, true);
- PlayGuiSound("27_break", 0.2f);
- PlaySoundAtEntity("wheelf", "L04_wheel", "spinning_cogwheel_script_3", 16.0f, false);
- PlaySoundAtEntity("shoof", "scrape_rock.snt", "Player", 10.0f, false);
- RotatePropToSpeed("spinning_cogwheel_script_1", 0.1f, 3.1416f, 0, 0, 1, false, "");
- RotatePropToSpeed("spinning_cogwheel_script_2", 0.1f, 3.1416f, 0, 0, -1, false, "");
- RotatePropToSpeed("spinning_cogwheel_script_3", 0.1f, 3.1416f, 0, 0, 1, false, "");
- RotatePropToSpeed("spinning_cogwheel_script_4", 0.1f, 3.1416f, 0, 0, -1, false, "");
- RotatePropToSpeed("spinning_cogwheel_script_5", 0.1f, 3.1416f, 0, 0, 1, false, "");
- //SetMoveObjectStateExt("crush_wall_1", 0, 0.1f, 0.1f, 0.05f, false);
- //SetMoveObjectStateExt("crush_wall_2", 0.98f, 0.1f, 0.055f, 0.05f, false);
- SetMoveObjectStateExt("crush_wall_1", 0.15f, 0.05f, 0.05f, 0.0f, false);
- SetMoveObjectStateExt("crush_wall_2", 0.15f, 0.05f, 0.05f, 0.0f, false);
- //SetMoveObjectState("crush_wall_1", -1);
- //SetMoveObjectState("crush_wall_1", 1);
- }
- void die(string &in asParent, string &in asChild, int alState)
- {
- SetPlayerActive(false);
- GivePlayerDamage(20, "BloodSplat", false, false);
- AddPlayerHealth(-200);
- FadeOut(0.5f);
- PlayGuiSound("ch01l07_crushed", 0.2f);
- }
- void ResetWallChase(string &in asName, int alCount)
- {
- for(int i=1; i<=2; ++i) ResetProp("crush_wall_"+i);
- SetPlayerActive(true);
- crush_begin();
- }
- /////////////////////////////////////
- void OnStart()
- {
- /////AMB build up
- PlayMusic("23_amb.ogg", true, 1, 3, 0, true);
- /////crushing chamber talk
- AddEntityCollideCallback("warden_placeholder_1", "alodar_line_1", "alodar_talk1", true, 1);
- AddEntityCollideCallback("crush_wall_*", "death_1", "die", true, 1);
- /////map config
- AutoSave();
- CheckPoint("save_cells_redux_01", "PlayerStartArea_1", "", "Hints", "Lever");
- SetMapDisplayNameEntry("cells");
- /////wake up
- wakeUp();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement