Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 42 Animations Pt.3! Scripting Cutscenes!
- //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
- //-----------------------------------------------------------
- //No new functions, below is only the code we wrote this episode
- Seq_DoorBreak("");
- cSequenceStatesData mSeq_DoorBreak;
- void Seq_DoorBreak(const tString &in asTimer){
- Sequence_Begin("Seq_DoorBreak", mSeq_DoorBreak);
- if(Sequence_DoStepAndWait(3.6f)){
- Entity_SetActive("ghoul_storage", true);
- Prop_SetHealth("door_1", 0.0f);
- Ghoul_SetAllowPlayerThrow("ghoul_storage", false);
- Ghoul_SetCanAttack("ghoul_storage", false);
- PlayerBody_PlayCutsceneAtEntity("spooked_fall_back_permafail_ghoul_encounter", "PosArea_DoorScare", false, 0.3f, "OnEndOfAnim_DoorScare", 1.0f, 0.f, 0.0f, 30.0f, true, false, false);
- }
- if(Sequence_DoStepAndWait(.4f)){
- cVector3f cameraPos = Player_GetCameraPosition();
- Effect_Fade_Out(.05);
- PlayerBody_PlayCutsceneAnimation("fall_and_get_up_quickly", false, .3f, "", 1.0f, 0.3f, true, cVector3f(cameraPos.x, 0.1f, cameraPos.z), cLux_GetPlayer().GetCharacterBody().GetYaw()+40.0f);
- }
- if(Sequence_DoStepAndWait(3.0f)){
- Effect_Fade_In(.15);
- Agent_SetSensesActive("ghoul_storage", false);
- }
- Sequence_End();
- }
Add Comment
Please, Sign In to add comment