scoreboard players add #facepunch_cutscene temp 1

execute if score #facepunch_cutscene temp matches 1 as @a at @s run attribute @s movement_speed base set 0
execute if score #facepunch_cutscene temp matches 1 as @a at @s run attribute @s jump_strength base set 0
execute if score #facepunch_cutscene temp matches 1 run function lbdm:main/quest_ui/disappear
execute if score #facepunch_cutscene temp matches 1 run function lbdm:main/dialogue/display/phrase {name:"Lololowka","color":"#0098bd","text":"Х-хух, ну наконец-то я сбежал..."}
execute if score #facepunch_cutscene temp matches 1 run effect give @a invisibility 2 1 true
execute if score #facepunch_cutscene temp matches 20 as @a at @s run playsound entity.player.attack.knockback master @s ~ ~ ~ 1 0
execute if score #facepunch_cutscene temp matches 27 as @a at @s run playsound entity.player.attack.crit master @s ~ ~ ~ 25000 0.75
execute if score #facepunch_cutscene temp matches 27 as @a at @s run playsound block.anvil.place master @s ~ ~ ~ 1 0
execute if score #facepunch_cutscene temp matches 29 run title @a times 0 60 40
execute if score #facepunch_cutscene temp matches 29 run title @a title {"text":"\uA000","font":"extra"}
execute if score #facepunch_cutscene temp matches 31 run stopsound @a
execute if score #facepunch_cutscene temp matches 88 run gamemode spectator @a
execute if score #facepunch_cutscene temp matches 88 as @n[tag=quest3_start_door] run function animated_java:quest2_door/animations/open/stop
execute if score #facepunch_cutscene temp matches 88 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/pov_wakeup/stop
execute if score #facepunch_cutscene temp matches 88 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/npc_idle/stop
execute if score #facepunch_cutscene temp matches 88 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/npc_turn/stop
execute if score #facepunch_cutscene temp matches 103 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/pov_wakeup/play
execute if score #facepunch_cutscene temp matches 103 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/npc_turn/play
execute if score #facepunch_cutscene temp matches 103 run function lbdm:main/dialogue/display/phrase {name:"Дуполинио","color":"#f87aae","text":"Вот мы и встретились, мой дорогой друг! В который раз и снова в необычных обстоятельствах."}
execute if score #facepunch_cutscene temp matches 193 run function lbdm:main/dialogue/display/phrase {name:"Дуполинио","color":"#f87aae","text":"Видишь ли, в свои последние минуты люди показывают нам, кто они на самом деле"}
execute if score #facepunch_cutscene temp matches 174 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/pov_idle/play
execute if score #facepunch_cutscene temp matches 273 run function lbdm:main/dialogue/display/phrase {name:"Дуполинио","color":"#f87aae","text":"И ты же не думал, что сможешь бегать вечно? *смеётся*"}
execute if score #facepunch_cutscene temp matches 89..224 as @a run spectate @n[tag=aj.quest3_tym.camera]
execute if score #facepunch_cutscene temp matches 89..224 as @a run spectate @n[tag=aj.scene.camera]
execute if score #facepunch_cutscene temp matches 224 as @e[tag=tym_scale,type=text_display] run data merge entity @s {transformation:{scale:[4.5f,0.35f,1.0f]},start_interpolation:0}
execute if score #facepunch_cutscene temp matches 274 as @e[tag=aj.quest3_tym.root] run function animated_java:quest3_tym/animations/npc_idle/play
execute if score #facepunch_cutscene temp matches 275 run data merge entity @e[limit=1,type=text_display,tag=press_space] {transformation:{scale:[0.25f,0.25f,1.0f]},start_interpolation:0}
execute if score #facepunch_cutscene temp matches 275 run data merge entity @e[tag=test_your_might,type=text_display,limit=1] {transformation:{scale:[0f,0.35f,1.0f]},start_interpolation:0}
execute if score #facepunch_cutscene temp matches 275 as @a run function lbdm:quest3/test_your_might
execute if score #facepunch_cutscene temp matches 275 run function lbdm:quest3/gooners/reset
execute if score #facepunch_cutscene temp matches 275 run function lbdm:main/quest_ui/init {title:"Последние минуты","task":"Вырвитесь из плена"}
execute if score #facepunch_cutscene temp matches 276 run scoreboard players set #facepunch_cutscene temp 0

execute if score #facepunch_cutscene temp matches 1..275 run schedule function lbdm:quest2/end_cutscene 1t