void SceneScriptAR01::SceneFrameAdvanced(int frame) { if (frame == 16) { Ambient_Sounds_Play_Sound(kSfxCARDOWN3, 40, 0, 0, 99); } if (frame == 78 || frame == 199) { Ambient_Sounds_Play_Sound(kSfxSPINOPN4, 100, -50, -50, 99); } if (frame == 122 || frame == 242) { Ambient_Sounds_Play_Sound(kSfxSPINCLS1, 100, -50, -50, 99); } if (frame == 256) { Ambient_Sounds_Play_Sound(kSfxCARUP3, 40, -50, 80, 99); } if ((frame == 75 || frame == 196 ) && Game_Flag_Query(kFlagArrivedFromSpinner2) ) { Actor_Face_Heading(kActorMcCoy, 545, false); Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetOut); Game_Flag_Reset(kFlagArrivedFromSpinner2); } else if ( frame == 196 && !Game_Flag_Query(kFlagArrivedFromSpinner2 )) { Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetIn); } }
void SceneScriptPS02::SceneFrameAdvanced(int frame) { if (frame == 1) { Ambient_Sounds_Play_Sound(208, 45, 0, 0, 0); } if (frame == 91) { Ambient_Sounds_Play_Sound(209, 45, 0, 0, 0); } //return true; }
void SceneScriptMA01::SceneFrameAdvanced(int frame) { if (frame == 15) { Ambient_Sounds_Play_Sound(kSfxROOFLIT1, 70, -100, 100, 0); } if (frame == 61 || frame == 183 ) { Ambient_Sounds_Play_Sound(kSfxSPINOPN4, 100, 40, 0, 99); } if (frame == 107 || frame == 227 ) { Ambient_Sounds_Play_Sound(kSfxSPINCLS1, 100, 40, 0, 99); } if (frame == 1) { Ambient_Sounds_Play_Sound(kSfxCARDOWN3, 40, -60, 20, 99); } if (frame == 241) { Ambient_Sounds_Play_Sound(kSfxCARUP3, 40, 0, 0, 99); } if (frame == 58) { Sound_Play(kSfxMTLHIT1, 17, 20, 20, 50); } if ((frame == 75 || frame == 196 ) && Game_Flag_Query(kFlagArrivedFromSpinner2) ) { Actor_Face_Heading(kActorMcCoy, 736, false); Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetOut); Game_Flag_Reset(kFlagArrivedFromSpinner2); } else { if ( frame == 196 && !Game_Flag_Query(kFlagArrivedFromSpinner2) ) { Actor_Change_Animation_Mode(kActorMcCoy, kAnimationModeSpinnerGetIn); //return true; return; } if (frame == 240) { Player_Gains_Control(); } } //return true; }
bool ScriptMA04::ClickedOnExit(int exitId) { if (exitId == 0) { if (!Loop_Actor_Walk_To_XYZ(0, -7099.0f, 954.0f, 1866.0f, 0, 1, false, 0)) { Game_Flag_Set(36); Set_Enter(10, 49); } return true; } if (exitId == 1) { float x, y, z; Actor_Query_XYZ(0, &x, &y, &z); if (z <= 1677.0f || !Loop_Actor_Walk_To_XYZ(0, -7199.0f, 955.0f, 1675.0f, 0, 1, false, 0)) { if (sub_402888()) { Overlay_Remove("MA04OVER"); } Loop_Actor_Walk_To_XYZ(0, -7199.0f, 955.0f, 1675.0f, 0, 0, false, 1); Game_Flag_Set(62); if (Global_Variable_Query(1) != 2 && Global_Variable_Query(1) != 3) { Async_Actor_Walk_To_XYZ(0, -7199.0f, 956.17f, 1568.0f, 0, false); } Set_Enter(51, 51); } return true; } if (exitId == 2) { if (!Loop_Actor_Walk_To_XYZ(0, -7115.0f, 954.0f, 1742.0f, 0, 1, false, 0)) { int sounds[] = {252, 405, 404, 407, 406}; Ambient_Sounds_Play_Sound(sounds[Random_Query(0, 4)], 50, 0, 0, 0); Delay(3000); Loop_Actor_Walk_To_XYZ(0, -7139.0f, 954.0f, 1746.0f, 0, 1, false, 1); } } return false; }
void SceneScriptUG15::SceneFrameAdvanced(int frame) { if (Actor_Query_Goal_Number(kActorFreeSlotA) == 300) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (-160.0f <= x && z < 220.0f ) { Actor_Set_Goal_Number(kActorFreeSlotA, 301); } } if (frame == 61) { Ambient_Sounds_Play_Sound(583, 80, 0, 0, 99); } if (Game_Flag_Query(677) && !Game_Flag_Query(682)) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (-180.0f <= x && z < 220.0f && !Game_Flag_Query(724) ) { Game_Flag_Set(724); Game_Flag_Set(682); Scene_Loop_Set_Default(3); Scene_Loop_Start_Special(kSceneLoopModeOnce, 2, true); Actor_Set_Goal_Number(kActorMcCoy, 390); Actor_Query_XYZ(kActorFreeSlotA, &x, &y, &z); if (-200.0f < x && -62.0f > x ) { Actor_Set_Goal_Number(kActorFreeSlotA, 309); } } } // return false; }
bool SceneScriptCT04::ClickedOn3DObject(const char *objectName, bool a2) { if (objectName) { if (!Game_Flag_Query(137) && !Game_Flag_Query(169) && !Actor_Query_Goal_Number(kActorTransient)) { Game_Flag_Set(137); Actor_Set_Goal_Number(kActorTransient, 2); } if (Game_Flag_Query(169) && !Game_Flag_Query(170) && !Game_Flag_Query(171) && !Game_Flag_Query(172) && Global_Variable_Query(1) == 1) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -147.41f, -621.3f, 724.57f, 0, 1, false, 0)) { Player_Loses_Control(); Actor_Face_Heading(kActorMcCoy, 792, false); Actor_Put_In_Set(kActorTransient, 99); Actor_Set_At_XYZ(kActorTransient, 0, 0, 0, 0); Actor_Change_Animation_Mode(kActorMcCoy, 40); Actor_Voice_Over(320, kActorVoiceOver); Actor_Voice_Over(330, kActorVoiceOver); Actor_Voice_Over(340, kActorVoiceOver); Game_Flag_Set(170); Game_Flag_Set(173); } return false; } if (Game_Flag_Query(170)) { if (Game_Flag_Query(172)) { Actor_Voice_Over(270, kActorVoiceOver); Actor_Voice_Over(280, kActorVoiceOver); } else if (Game_Flag_Query(171)) { Actor_Voice_Over(250, kActorVoiceOver); Actor_Voice_Over(260, kActorVoiceOver); } else { Actor_Voice_Over(230, kActorVoiceOver); Actor_Voice_Over(240, kActorVoiceOver); Game_Flag_Reset(173); } return true; } if (Game_Flag_Query(174)) { if (!Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 75, 0, 1, false)) { Actor_Face_Heading(kActorMcCoy, 707, false); Actor_Change_Animation_Mode(kActorMcCoy, 38); Ambient_Sounds_Play_Sound(553, 45, 30, 30, 0); Actor_Voice_Over(1810, kActorVoiceOver); Actor_Voice_Over(1820, kActorVoiceOver); return true; } return false; } if (!Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 75, 0, 1, false)) { Actor_Face_Heading(kActorMcCoy, 707, false); Actor_Change_Animation_Mode(kActorMcCoy, 38); Actor_Clue_Acquire(kActorMcCoy, kClueLicensePlate, 1, -1); Item_Pickup_Spin_Effect(952, 392, 225); Game_Flag_Set(174); return true; } } return false; }
void ScriptDR01::SceneFrameAdvanced(int frame) { if (frame < 75) { Actor_Set_Invisible(0, true); } else { Actor_Set_Invisible(0, false); } if (frame == 2) { Ambient_Sounds_Play_Sound(487, 40, -40, 100, 99); } }
void ScriptHC03::SceneFrameAdvanced(int frame) { if (frame == 10 || frame == 19 || frame == 29 || frame == 39 || frame == 49 || frame == 59 || frame == 71 || frame == 82 || frame == 91 || frame == 101 || frame == 111 || frame == 121 || frame == 131) { Sound_Play(281, Random_Query(33, 50), 50, 50, 50); } if (!Game_Flag_Query(521) && frame == 66) { Ambient_Sounds_Play_Sound(328, 90, 0, -40, 99); Sound_Play(201, Random_Query(47, 47), 0, -40, 50); Scene_Exit_Add_2D_Exit(1, 400, 275, 515, 375, 2); Game_Flag_Set(521); } }
bool SceneScriptCT08::ClickedOn2DRegion(int region) { if (region == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -108.0f, 0.0f, -178.0f, 0, true, false, 0)) { Actor_Face_Heading(kActorMcCoy, 512, false); Game_Flag_Reset(kFlagMcCoyTiedDown); Player_Set_Combat_Mode_Access(true); Scene_Exits_Enable(); Ambient_Sounds_Play_Sound(564, 40, 99, 0, 0); Scene_2D_Region_Remove(0); Player_Loses_Control(); } return true; } return false; }
bool AIScriptTyrellGuard::GoalChanged(int currentGoalNumber, int newGoalNumber) { switch (newGoalNumber) { case 300: if (currentGoalNumber != newGoalNumber) { Actor_Change_Animation_Mode(kActorTyrellGuard, 55); AI_Countdown_Timer_Start(kActorTyrellGuard, 0, 30); } return true; case 301: Actor_Change_Animation_Mode(kActorTyrellGuard, kAnimationModeIdle); Delay(1000); Actor_Says(kActorTyrellGuard, 320, 14); Actor_Change_Animation_Mode(kActorTyrellGuard, 50); Ambient_Sounds_Play_Sound(590, 100, 0, 0, 0); Delay(1000); Actor_Force_Stop_Walking(kActorMcCoy); Actor_Set_Goal_Number(kActorMcCoy, 500); return true; case 302: AI_Countdown_Timer_Reset(kActorTyrellGuard, 0); Actor_Says(kActorTyrellGuard, 310, 14); AI_Countdown_Timer_Start(kActorTyrellGuard, 1, 20); return true; case 303: Actor_Change_Animation_Mode(kActorTyrellGuard, 50); Ambient_Sounds_Play_Sound(590, 100, 0, 0, 0); Delay(1000); Actor_Force_Stop_Walking(kActorMcCoy); Actor_Set_Goal_Number(kActorMcCoy, 500); return true; case 304: AI_Countdown_Timer_Reset(kActorTyrellGuard, 1); return true; } return false; }
bool SceneScriptBB07::ClickedOn2DRegion(int region) { if (region == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -568.63f, 252.59f, -1114.81f, 0, true, false, 0)) { Actor_Face_Heading(kActorMcCoy, 229, false); if (!Game_Flag_Query(kFlagBB07ElectricityOn)) { Ambient_Sounds_Play_Sound(592, 40, 20, 20, 99); Overlay_Play("BB07OVER", 1, false, true, 0); Overlay_Play("BB07OVER", 2, true, false, 0); Game_Flag_Set(kFlagBB07ElectricityOn); if (!Game_Flag_Query(kFlagBB07PrinterChecked)) { Actor_Says(kActorAnsweringMachine, 0, kAnimationModeTalk); } } else { Actor_Says(kActorMcCoy, 8585, 15); } } } return false; }
bool SceneScriptBB07::ClickedOn2DRegion(int region) { if (region == 0) { if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -568.63f, 252.59f, -1114.81f, 0, 1, false, 0)) { Actor_Face_Heading(kActorMcCoy, 229, false); if (Game_Flag_Query(396)) { Actor_Says(kActorMcCoy, 8585, 15); } else { Ambient_Sounds_Play_Sound(592, 40, 20, 20, 99); Overlay_Play("BB07OVER", 1, 0, 1, 0); Overlay_Play("BB07OVER", 2, 1, 0, 0); Game_Flag_Set(396); if (!Game_Flag_Query(398)) { Actor_Says(kActorAnsweringMachine, 0, 3); } } } } return false; }
bool SceneScriptNR04::ClickedOn2DRegion(int region) { if ((region == 0 || region == 1 || region == 2) && Actor_Query_Which_Set_In(kActorEarlyQ) != 12 && Actor_Query_Animation_Mode(kActorMcCoy) != 53 && !Loop_Actor_Walk_To_Waypoint(kActorMcCoy, 445, 0, 1, false)) { Actor_Face_Heading(kActorMcCoy, 49, false); Actor_Change_Animation_Mode(kActorMcCoy, 85); Delay(2500); if (Game_Flag_Query(606) == 1) { return true; } if (Game_Flag_Query(374)) { Player_Loses_Control(); Actor_Voice_Over(4180, kActorVoiceOver); Actor_Change_Animation_Mode(kActorMcCoy, 48); Ambient_Sounds_Play_Sound(555, 90, 99, 0, 0); Delay(350); Actor_Set_At_XYZ(kActorMcCoy, 109.0f, 0.0f, 374.0f, 0); Actor_Retired_Here(kActorMcCoy, 12, 12, 1, -1); } return true; } return false; }
void SceneScriptUG15::SceneFrameAdvanced(int frame) { if (Actor_Query_Goal_Number(kActorFreeSlotA) == kGoalFreeSlotAUG15Wait) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if (-160.0f <= x && 220.0f > z ) { Actor_Set_Goal_Number(kActorFreeSlotA, kGoalFreeSlotAUG15WalkOut); } } if (frame == 61) { Ambient_Sounds_Play_Sound(583, 80, 0, 0, 99); } if ( Game_Flag_Query(kFlagUG15BridgeWillBreak) && !Game_Flag_Query(kFlagUG15BridgeBroken) ) { float x, y, z; Actor_Query_XYZ(kActorMcCoy, &x, &y, &z); if ( -180.0f <= x && 220.0f > z && !Game_Flag_Query(kFlagUG15BridgeBreaks) ) { Game_Flag_Set(kFlagUG15BridgeBreaks); Game_Flag_Set(kFlagUG15BridgeBroken); Scene_Loop_Set_Default(kUG15LoopMainLoopBridgeBroken); Scene_Loop_Start_Special(kSceneLoopModeOnce, kUG15LoopBridgeBreaks, true); Actor_Set_Goal_Number(kActorMcCoy, kGoalMcCoyUG15Fall); Actor_Query_XYZ(kActorFreeSlotA, &x, &y, &z); if (-200.0f < x && -62.0f > x ) { Actor_Set_Goal_Number(kActorFreeSlotA, kGoalFreeSlotAUG15Fall); } } } // return false; }
void ScriptNR08::SceneFrameAdvanced(int frame) { if (!Music_Is_Playing()) { sub_4021B4(); } Set_Fade_Color(0, 0, 0); if (frame >= 76 && frame < 91) { Set_Fade_Density((frame - 76) / 14.0f); Music_Stop(3); Ambient_Sounds_Play_Sound(566, 27, 0, 99, 0); } else if (frame >= 91 && frame < 120) { Actor_Set_Invisible(0, true); Set_Fade_Density(1.0f); } else if (frame >= 120 && frame < 135) { Set_Fade_Density((134 - frame) / 14.0f); Music_Play(7, 61, 0, 1, -1, 0, 0); } else { Actor_Set_Invisible(0, false); Set_Fade_Density(0.0f); } if (Game_Flag_Query(651) && !Game_Flag_Query(636)) { Game_Flag_Set(636); Scene_Exits_Disable(); Scene_Loop_Set_Default(1); Scene_Loop_Start_Special(2, 3, 1); } if (frame == 95) { Actor_Put_In_Set(3, 91); Actor_Set_At_Waypoint(3, 33, 0); Actor_Change_Animation_Mode(3, 0); Actor_Set_Goal_Number(3, 200); Scene_Exit_Add_2D_Exit(1, 0, 309, 30, 398, 3); Scene_Exit_Add_2D_Exit(2, 520, 330, 556, 386, 0); } if (frame == 130) { Scene_Exits_Enable(); } //return false; }
void SceneScriptNR08::PlayerWalkedIn() { if (Actor_Query_Goal_Number(kActorDektora) != 210 || Game_Flag_Query(729)) { Music_Adjust(51, 0, 2); } else { Game_Flag_Set(729); Ambient_Sounds_Play_Sound(566, 27, 0, 99, 0); Outtake_Play(kOuttakeDektora, true, -1); } if (Actor_Query_Goal_Number(kActorDektora) == 245) { Actor_Face_Heading(kActorDektora, 790, false); Loop_Actor_Travel_Stairs(kActorDektora, 8, 1, 0); Actor_Set_Goal_Number(kActorDektora, 246); } if (Actor_Query_Goal_Number(kActorSteele) == 231) { Actor_Says(kActorSteele, 1640, 12); if (!Game_Flag_Query(kFlagDirectorsCut)) { Actor_Says(kActorMcCoy, 3790, 13); Actor_Says(kActorSteele, 1650, 14); } Actor_Says(kActorSteele, 1660, 12); Actor_Says(kActorMcCoy, 3795, 16); Actor_Says(kActorSteele, 1670, 13); Actor_Says(kActorSteele, 1680, 14); Actor_Says(kActorSteele, 1690, 15); Actor_Set_Goal_Number(kActorSteele, 235); //return true; return; } else { if (Game_Flag_Query(546)) { Loop_Actor_Walk_To_XYZ(kActorMcCoy, -1090.88f, 0.0f, 147.43f, 0, 1, false, 0); Game_Flag_Reset(546); } //return false; return; } }
void ScriptNR08::PlayerWalkedIn() { if (Actor_Query_Goal_Number(3) != 210 || Game_Flag_Query(729)) { Music_Adjust(51, 0, 2); } else { Game_Flag_Set(729); Ambient_Sounds_Play_Sound(566, 27, 0, 99, 0); Outtake_Play(40, 1, -1); } if (Actor_Query_Goal_Number(3) == 245) { Actor_Face_Heading(3, 790, false); Loop_Actor_Travel_Stairs(3, 8, 1, 0); Actor_Set_Goal_Number(3, 246); } if (Actor_Query_Goal_Number(1) == 231) { Actor_Says(1, 1640, 12); if (!Game_Flag_Query(378)) { Actor_Says(0, 3790, 13); Actor_Says(1, 1650, 14); } Actor_Says(1, 1660, 12); Actor_Says(0, 3795, 16); Actor_Says(1, 1670, 13); Actor_Says(1, 1680, 14); Actor_Says(1, 1690, 15); Actor_Set_Goal_Number(1, 235); //return true; return; } else { if (Game_Flag_Query(546)) { Loop_Actor_Walk_To_XYZ(0, -1090.88f, 0.0f, 147.43f, 0, 1, false, 0); Game_Flag_Reset(546); } //return false; return; } }
void SceneScriptCT01::SceneFrameAdvanced(int frame) { if ((frame < 316 || frame > 435 ) && ((frame - 1) % 10) == 0 ) { Ambient_Sounds_Play_Sound(Random_Query(59, 60), 25, 30, 30, 0); } if (frame == 23) { Ambient_Sounds_Play_Sound(118, 40, 99, 0, 0); } if (frame == 316) { Ambient_Sounds_Play_Sound(373, 50, -50, 100, 99); } if (frame == 196 || frame == 452 ) { int v3 = Random_Query(0, 6); if (v3 == 0) { Overlay_Play("ct01spnr", 0, false, true, 0); if (Random_Query(0, 1)) { Ambient_Sounds_Play_Sound(68, Random_Query(33, 50), 0, 0, 0); } else { Ambient_Sounds_Play_Sound(67, Random_Query(33, 50), 0, 0, 0); } } else if (v3 == 1) { Overlay_Play("ct01spnr", 1, false, true, 0); if (Random_Query(0, 1)) { Ambient_Sounds_Play_Sound(69, Random_Query(33, 50), 0, 0, 0); } else { Ambient_Sounds_Play_Sound(66, Random_Query(33, 50), 0, 0, 0); } } } }
void SceneScriptUG10::SceneFrameAdvanced(int frame) { if (frame == 121) { Ambient_Sounds_Play_Sound(558, 90, 0, 0, 99); } if (frame == 127) { Ambient_Sounds_Play_Sound(353, 90, 0, 0, 99); } if (frame == 147) { Ambient_Sounds_Play_Sound(353, 90, 0, 0, 99); } if (frame == 1) { Ambient_Sounds_Play_Sound(558, 90, 0, 0, 99); } if (frame == 3) { Ambient_Sounds_Play_Sound(353, 90, 0, 0, 99); } if (frame == 23) { Ambient_Sounds_Play_Sound(353, 90, 0, 0, 99); } if (frame == 58 || frame == 179) { Player_Gains_Control(); } //return false; }
void SceneScriptUG04::SceneFrameAdvanced(int frame) { if (frame == 1) { Ambient_Sounds_Play_Sound(367, 90, -100, 100, 100); } }
bool AIScriptDeskClerk::UpdateAnimation(int *animation, int *frame) { switch (_animationState) { case 0: if (_flag1) { *animation = 662; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(662)) { _animationFrame = 0; _flag1 = false; *animation = 661; _var3 = Random_Query(50, 100); } } else { if (_var3 != 0) { --_var3; } *animation = 661; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(661)) { _animationFrame = 0; if (_var3 == 0) { *animation = 662; _flag1 = true; } } } break; case 1: *animation = 663; if (_animationFrame == 0 && _flag2 ) { *animation = 661; _animationState = 0; _flag1 = false; } else { _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(*animation)) { _animationFrame = 0; } } break; case 2: *animation = 664; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(664)) { _animationFrame = 0; _animationState = 1; *animation = 663; } break; case 3: *animation = 665; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(665)) { _animationFrame = 0; _animationState = 1; *animation = 663; } break; case 4: *animation = 666; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(666)) { _animationFrame = 0; _animationState = 1; *animation = 663; } break; case 5: *animation = 667; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(667)) { _animationFrame = 0; _animationState = 1; *animation = 663; } break; case 6: *animation = 668; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(668)) { _animationFrame = 0; } break; case 7: *animation = 669; if (_animationFrame == 0 && _flag2 ) { Actor_Change_Animation_Mode(kActorDeskClerk, 72); *animation = 668; _animationState = 6; } else { _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(*animation)) { _animationFrame = 0; } } break; case 8: *animation = 670; _animationFrame++; if (_animationFrame > Slice_Animation_Query_Number_Of_Frames(670) - 2) { Ambient_Sounds_Play_Sound(kSfxZUBLAND1, 40, 30, 30, 99); Actor_Set_Goal_Number(kActorDeskClerk, kGoalDeskClerkKnockedOut); Actor_Change_Animation_Mode(kActorDeskClerk, kAnimationModeIdle); *animation = 661; _animationFrame = 0; _animationState = 0; } break; } *frame = _animationFrame; return true; }
void SceneScriptTB07::SceneFrameAdvanced(int frame) { if (frame == 66) { Ambient_Sounds_Play_Sound(kSfxLIGHTON, 20, 99, 0, 0); } //return false; }
void ScriptNR11::SceneFrameAdvanced(int frame) { if (frame == 62) { Ambient_Sounds_Play_Sound(449, 40, 100, 100, 10); } if (frame == 67) { Ambient_Sounds_Play_Sound(449, 30, 90, 90, 10); } if (frame == 74) { Ambient_Sounds_Play_Sound(450, 50, 83, 83, 10); } if (frame == 80) { Ambient_Sounds_Play_Sound(449, 60, 65, 65, 10); } if (frame == 92) { Ambient_Sounds_Play_Sound(450, 30, 50, 50, 10); } if (frame == 97) { Ambient_Sounds_Play_Sound(449, 50, -40, -40, 10); } if (frame == 103) { Ambient_Sounds_Play_Sound(450, 40, -27, -27, 10); } if (frame == 109) { Ambient_Sounds_Play_Sound(449, 60, -20, -20, 10); } if (frame == 62) { Ambient_Sounds_Play_Sound(122, 80, 100, 100, 15); } if (Game_Flag_Query(659)) { Game_Flag_Reset(659); Overlay_Remove("NR11OVER"); Overlay_Play("NR11OVER", 1, 0, 1, 0); } if (Game_Flag_Query(635)) { sub_4028EC(); Player_Loses_Control(); if (!Player_Query_Combat_Mode()) { Player_Set_Combat_Mode(true); } Actor_Set_Goal_Number(0, 230); Scene_Loop_Set_Default(3); Scene_Loop_Start_Special(2, 2, 1); Game_Flag_Reset(635); } else { if (frame < 61 || frame > 120) { //return false; return; } sub_4027D0(0, frame); if (Actor_Query_Goal_Number(1) == 215) { sub_4027D0(1, frame); } if (frame == 120) { Actor_Set_Goal_Number(0, 0); Player_Gains_Control(); if (Actor_Query_Goal_Number(1) == 215) { Actor_Set_Goal_Number(1, 216); } Actor_Set_Goal_Number(3, 269); } } //return true; }
bool AIScriptFreeSlotB::UpdateAnimation(int *animation, int *frame) { switch (_animationState) { case 0: *animation = 861; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(861)) { _animationFrame = 0; } break; case 1: *animation = 862; if (_var1) { _var1--; } else { _animationFrame += _var2; if (_animationFrame < 8) { _var2 = 1; } else { if (_animationFrame > 8) { _var2 = -1; } else if (Random_Query(0, 4)) { _var2 = -_var2; } } if (_animationFrame >= 7 && _animationFrame <= 9) { _var1 = Random_Query(0, 1); } } break; case 2: *animation = 862; _animationFrame++; if (_animationFrame > Slice_Animation_Query_Number_Of_Frames(862) - 1) { *animation = 861; _animationFrame = 0; _animationState = 0; } break; case 3: *animation = 858; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(858)) { _animationFrame = 0; } break; case 4: *animation = 857; _animationFrame++; if (_animationFrame == 3) { int snd; if (Random_Query(1, 2) == 1) { snd = 9010; } else { snd = 9015; } Sound_Play_Speech_Line(kActorFreeSlotB, snd, 75, 0, 99); } if (_animationFrame == 3) { Actor_Combat_AI_Hit_Attempt(kActorFreeSlotB); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(*animation)) { *animation = 861; _animationFrame = 0; _animationState = 0; } break; case 5: *animation = 874; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(874) - 1) { _animationState = 8; _animationFrame = Slice_Animation_Query_Number_Of_Frames(874) - 1; } break; case 6: if (_animationFrame == 1) { Ambient_Sounds_Play_Sound(437, 99, 0, 0, 20); } *animation = 860; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(860)) { _animationFrame = 0; _animationState = 0; Actor_Change_Animation_Mode(kActorFreeSlotB, 0); } break; case 7: *animation = 859; _animationFrame++; if (_animationFrame == 1) { Ambient_Sounds_Play_Sound(439, 99, 0, 0, 25); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(859)) { _animationFrame = Slice_Animation_Query_Number_Of_Frames(859); } _animationState = 8; break; case 8: *animation = 859; _animationFrame = Slice_Animation_Query_Number_Of_Frames(859) - 1; break; default: break; } *frame = _animationFrame; return true; }
bool AIScriptMutant1::UpdateAnimation(int *animation, int *frame) { switch (_animationState) { case 0: *animation = 894; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(894)) { _animationFrame = 0; } break; case 1: case 2: *animation = 893; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(893)) { _animationFrame = 0; } break; case 3: if (!_animationFrame && _flag) { *animation = 894; _animationState = 0; } else { *animation = 896; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(896)) { _animationFrame = 0; } } break; case 4: *animation = 896; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(896)) { _animationFrame = 0; _animationState = 3; *animation = 896; } break; case 5: *animation = 897; _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(897)) { _animationFrame = 0; _animationState = 3; *animation = 896; } break; case 6: *animation = 898; _animationFrame++; if (_animationFrame == 5) { int snd; if (Random_Query(1, 2) == 1) { snd = 9010; } else { snd = 9015; } Sound_Play_Speech_Line(kActorMutant1, snd, 75, 0, 99); } if (_animationFrame == 9) { Actor_Combat_AI_Hit_Attempt(kActorMutant1); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(898)) { Actor_Change_Animation_Mode(kActorMutant1, 0); } break; case 7: *animation = 899; _animationFrame++; if (_animationFrame == 1) { Ambient_Sounds_Play_Sound(371, 99, 0, 0, 25); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(899)) { Actor_Change_Animation_Mode(kActorMutant1, 0); } break; case 8: *animation = 900; _animationFrame++; if (_animationFrame == 1) { Sound_Play(368, 100, 0, 0, 50); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(900)) { Actor_Change_Animation_Mode(kActorMutant1, 88); } break; case 9: *animation = 900; _animationFrame = Slice_Animation_Query_Number_Of_Frames(900) - 1; break; case 10: *animation = 899; _animationFrame++; if (_animationFrame == 9) { Sound_Play(371, 100, 0, 0, 50); } if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(899)) { Actor_Change_Animation_Mode(kActorMutant1, 0); } break; default: break; } *frame = _animationFrame; return true; }