func Intro_1() { MessageBox_last_pos = true; // force first message right side of screen MessageBoxAll("$Intro1$", GetHero(), true); // finally there SetPlayerZoomByViewRange(NO_OWNER, 500,300, PLRZOOM_Set | PLRZOOM_LimitMax); return ScheduleNext(150); }
func Intro_1() { SetPlayerZoomByViewRange(NO_OWNER, 800,600, PLRZOOM_Set); MessageBoxAll("$MsgIntro1$", this.pilot, true); this.plane->ContainedLeft(this.pilot); return ScheduleNext(10); }
func Intro_19() { // Begin dialogue in village this.pilot->SetDir(DIR_Right); MessageBoxAll("$MsgIntro6$", this.pilot, true); // that was close return ScheduleNext(150); }
func Attack_5() { if (this.planes[0]->GetX() > 880) return ScheduleSame(5); MessageBoxAll("$Attack3$", npc_lara, true); // oh god! for (var i=0; i<3; ++i) { this.planes[i]->StartInstantFlight(270, 15); this.planes[i]->SetXDir(-15); this.planes[i]->SetYDir(0); } SetViewTarget(g_flagpole); // NPCs go nuts RemoveEffect("NewtonHammering", npc_newton); RemoveEffect("LaraWalking", npc_lara); RemoveEffect("WoodyWalking", npc_woody); AddEffect("Attack_Panic", npc_newton, 1, 30, this); AddEffect("Attack_Panic", npc_lara, 1, 35, this); AddEffect("Attack_Panic", npc_woody, 1, 40, this); AddEffect("Attack_Panic", npc_lisa, 1, 45, this); // Update dialogues; remove attention markers for (var npc in [npc_newton, npc_lara, npc_woody, npc_lisa, npc_rocky]) { var dlg = Dialogue->FindByTarget(npc); if (dlg) { dlg->RemoveAttention(); dlg->SetDialogueProgress(100); } } // Start dropping bombs immediately return CallNext(); }
func Attack_Start(chopping_clonk) { this.hero = chopping_clonk; g_attack_started = true; SetPlayerZoomByViewRange(NO_OWNER, 200,100, PLRZOOM_Set | PLRZOOM_LimitMax); SetViewTarget(chopping_clonk); MessageBox_last_pos = true; // force first message right side of screen MessageBoxAll("$Attack1$", this.hero, true); // tree down return ScheduleNext(30); }
func Outro_Start(object goal, object plane) { this.goal = goal; this.plane = plane; this.hero = plane->FindObject(Find_Not(Find_Owner(NO_OWNER)), Find_ID(Clonk), plane->Sort_Distance()); SetViewTarget(this.plane); MessageBoxAll("$Outro1$", this.hero, true); return ScheduleNext(150); }
func Intro_10() { MessageBoxAll("$Intro7$", GetHero(), true); // ok return ScheduleNext(80); }
func Intro_9() { MessageBoxAll("$Intro6$", npc_pyrit, true); // u oil, me plane return ScheduleNext(330); }
func Intro_8() { MessageBoxAll("$Intro5$", GetHero(), true); // what now? return ScheduleNext(200); return Stop(); }
func Intro_23() { MessageBoxAll("$MsgIntro10$", GetHero(), true); // ok return ScheduleNext(40); }
func Attack_13() { Attack_ClonkDirs(); MessageBoxAll("$Attack7$", this.hero, true); return Stop(); }
func Attack_11() { Attack_ClonkDirs(); MessageBoxAll("$Attack5$", npc_woody, true); return ScheduleNext(200); }
func Outro_3() { MessageBoxAll("$Outro3$", npc_pyrit, true); // let'sgo return ScheduleNext(150); }
func Outro_2() { MessageBoxAll("$Outro3$", this.hero, true); return ScheduleNext(180); }
func Outro_3() { MessageBoxAll("$Outro4$", npc_pyrit, true); return ScheduleNext(150); }
func Outro_1() { MessageBoxAll("$Outro2$", npc_pyrit, true); return ScheduleNext(220); }
func Intro_5() { MessageBoxAll("$MsgIntro2$", GetHero(), true); return ScheduleNext(36); }
func Intro_21() { MessageBoxAll("$MsgIntro8$", this.pilot, true); // plane crashed into mountain on other side return ScheduleNext(250); }
func Outro_1() { Dialogue->SetSpeakerDirs(GetHero(), npc_pyrit); MessageBoxAll("$Outro1$", npc_pyrit, true); // took u a while return ScheduleNext(200); }
func Intro_3() { MessageBox_last_pos = true; // force first message right side of screen MessageBoxAll("$Intro1$", GetHero(), true); // pyrit? return ScheduleNext(50); }
func Outro_2() { Dialogue->SetSpeakerDirs(GetHero(), npc_pyrit); MessageBoxAll("$Outro2$", GetHero(), true); // plane looks good return ScheduleNext(200); }
func Attack_2() { MessageBoxAll("$Attack2$", this.hero, true); // what's that sound? return ScheduleNext(5); }
func Intro_20() { GetHero()->SetDir(DIR_Left); MessageBoxAll("$MsgIntro7$", GetHero(), true); // what now? return ScheduleNext(150); }
func Intro_15() { MessageBoxAll("$MsgIntro5$", this.pilot, true); return ScheduleNext(36); }
func Attack_12() { Attack_ClonkDirs(); MessageBoxAll("$Attack6$", npc_newton, true); return ScheduleNext(250); }
func Intro_7() { MessageBoxAll("$Intro4$", GetHero(), true); // ur fault return ScheduleNext(200); }
func Intro_5() { Dialogue->SetSpeakerDirs(npc_pyrit, GetHero()); MessageBoxAll("$Intro2$", GetHero(), true); // y out of fuel? return ScheduleNext(320); }
func Intro_22() { MessageBoxAll("$MsgIntro9$", this.pilot, true); // u go there n save it return ScheduleNext(220); }
func Intro_6() { MessageBoxAll("$Intro3$", npc_pyrit, true); // cuz detour return ScheduleNext(400); }
func Intro_14() { MessageBoxAll("$MsgIntro4$", GetHero(), true); return ScheduleNext(20); }