//RetakeG state Base { Conditions { } Actions { CnxController "from=door1_a" "to=door1_b" "off_flag=BLOCK" "obj=doordeka_a" "checkvisible" "on_frames=2to64" "bothways" CnxController "from=door2_a" "to=door2_b" "off_flag=BLOCK" "obj=doordeka2_a" "checkvisible" "on_frames=2to64" "bothways" CnxController "from=box1_a" "to=box1_b" "off_flag=BLOCK" "obj=small_box_05" "checkvisible" "on_frames=1TO1" CnxController "from=box2_a" "to=box2_b" "off_flag=BLOCK" "obj=small_box_06" "checkvisible" "on_frames=1TO1" CnxController "from=step1_a" "to=step1_b" "off_flag=BLOCK" "obj=form1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=step1_b" "to=step1_c" "off_flag=BLOCK" "obj=form1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=step1_c" "to=step1_d" "off_flag=BLOCK" "obj=form1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=step1_d" "to=step1_e" "off_flag=BLOCK" "obj=form1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" SetState "Update" } } state Update { Conditions { if Message "PlayedGuardMiniCut" == 0 and if EitherPlayerInTriggerArea "Camera_Cut" == 1 goto MiniCut if GadgetActive "R2Panel" == 0 and if Message "PlayedGuardMiniCut" == 1 and if Message "GuardsToRescue" == 0 goto AllGuardsRescued } Actions { } } state MiniCut { Conditions { } Actions { SetMessage "name=PlayedGuardMiniCut" "value=1" CameraCut "range=5" "rotx=10" "roty=180" "tgt_character=Guard4" "blend_in_time=0.5" "end_time=infinite" SetMessage "name=TotalGuards" "increment=1" SetMessage "name=GuardsToRescue" "increment=1" Idle "2" CameraCut "range=5" "rotx=10" "roty=180" "tgt_character=Guard5" "blend_in_time=0.5" "end_time=infinite" SetMessage "name=TotalGuards" "increment=2" SetMessage "name=GuardsToRescue" "increment=2" Idle "2" CameraCut "range=5" "rotx=10" "roty=135" "tgt_character=Guard1" "blend_in_time=0.5" "end_time=infinite" SetMessage "name=TotalGuards" "increment=2" SetMessage "name=GuardsToRescue" "increment=2" Idle "2" CameraCut "range=5" "rotx=10" "roty=45" "tgt_character=Guard3" "blend_in_time=0.5" "blend_out_time=0.5" "end_time=2" SetMessage "name=TotalGuards" "increment=1" SetMessage "name=GuardsToRescue" "increment=1" SetState "Update" } } state OldMiniCut { Conditions { } Actions { SetMessage "name=PlayedGuardMiniCut" "value=1" CameraCut "range=8" "rotx=10" "roty=135" "tgt_character=Guard1" "end_time=infinite" SetMessage "name=TotalGuards" "increment=2" SetMessage "name=GuardsToRescue" "increment=2" Idle "2" CameraCut "range=8" "rotx=10" "roty=45" "tgt_character=Guard3" "end_time=infinite" SetMessage "name=TotalGuards" "increment=1" SetMessage "name=GuardsToRescue" "increment=1" Idle "2" CameraCut "range=8" "rotx=10" "roty=180" "tgt_character=Guard4" "end_time=infinite" SetMessage "name=TotalGuards" "increment=1" SetMessage "name=GuardsToRescue" "increment=1" Idle "2" CameraCut "range=8" "rotx=10" "roty=180" "tgt_character=Guard5" "end_time=2" SetMessage "name=TotalGuards" "increment=2" SetMessage "name=GuardsToRescue" "increment=2" SetState "Update" } } state AllGuardsRescued { Conditions { if Message "PlayedPanelMiniCut" == 1 goto ActivatePanel if Timer > 1 and if Message "PlayedPanelMiniCut" == 0 goto PanelMiniCut } Actions { ResetTimer } } state PanelMiniCut { Conditions { } Actions { SetMessage "name=PlayedPanelMiniCut" "value=1" CameraCut "tgtpos_x=21.15" "tgtpos_y=1.5" "tgtpos_z=-42.67" "range=6" "rotx=15" "roty=200" "bXlend_in_time=0.5" "blend_out_time=0.5" "end_time=4" Idle "0.5" SetState "ActivatePanel" } } state OLDPanelMiniCut { Conditions { } Actions { SetMessage "name=PlayedPanelMiniCut" "value=1" CameraCut "tgtpos_x=21.83" "tgtpos_y=1.78" "tgtpos_z=-45.07" "range=6" "rotx=15" "roty=250" "blend_in_time=0.5" "blend_out_time=0.5" "end_time=4" Idle "0.5" SetState "ActivatePanel" } } state ActivatePanel { Conditions { } Actions { ActivateGadget "R2Panel" SetState "Update" } }