;==============================================================
;
; warlab_deactivate_generators.ltx
;	CoC 1.5b r4 - DoctorX Questlines 2.0
;
;	Modified by: DoctorX
;	Last revised: May 11, 2018
;
;==============================================================


[logic]
active = sr_idle@wait


;//////////////////////////////////////////////////////////////////////////////////////////////////
;
; Generators Switched Off
;
;	Modified by DoctorX
;	for DoctorX Questlines 2.0
;	May 11, 2018
;
;--------------------------------------------------------------------------------------------------

[sr_idle@wait]
; on_info = {+warlab_deactivate_generators_done} sr_idle@psy_sound %=play_sound(brain_scorcher_rumble)%
on_info = {+warlab_deactivate_generators_done} sr_idle@psy_sound %=play_sound(brain_scorcher_rumble) =aes_earthshake()%

; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


;//////////////////////////////////////////////////////////////////////////////////////////////////
;
; Earth Tremor After Deactivating Generators
;
;	Modified by DoctorX
;	for DoctorX Questlines 2.0
;	May 11, 2018
;
;--------------------------------------------------------------------------------------------------

[sr_idle@psy_sound]
; on_timer = 2000 | sr_idle@final_peace %=play_sound(psy_blackout)%
on_timer = 9000 | sr_idle@final_peace %=play_sound(psy_blackout) =run_postprocess(deimos1:3045:true) =run_postprocess(agr_u_fade)%

; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


;//////////////////////////////////////////////////////////////////////////////////////////////////
;
; Good Ending Cut Scene
;
;	Modified by DoctorX
;	for DoctorX Questlines 2.0
;	May 11, 2018
;
;--------------------------------------------------------------------------------------------------

[sr_idle@final_peace]
; on_info = {=actor_in_zone(warlab_in_restr)} sr_idle@final_peace_end %=stop_sound =run_tutorial(final_peace) =disable_ui%
on_timer = 3000 | sr_idle@final_peace_end %=stop_sound =run_tutorial(final_peace)%

; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


[sr_idle@final_peace_end]
on_info = {+end_final_peace} sr_idle@teleport %=run_postprocess(black:3009:true)%

[sr_idle@teleport]
on_info = sr_idle@nil %=teleport_actor(warlab_jump_gen_walk:warlab_jump_gen_look) =stop_postprocess(3009) =enable_ui%

[sr_idle@nil]