;;-*-Lisp-*-
(in-package goal)

;; name: throne-scenes.gc
;; name in dgo: throne-scenes
;; dgos: WASPALA

;; DECOMP BEGINS

(defskelgroup skel-red-gun-mod-two red-gun-mod-two red-gun-mod-two-lod0-jg red-gun-mod-two-idle-ja
              ((red-gun-mod-two-lod0-mg (meters 999999)))
              :bounds (static-spherem 0 0 0 1)
              :origin-joint-index 3
              )

(load-scene (new 'static 'scene
              :name "arena-fight-2-intro"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-104"
              :art-group "scenecamera"
              :anim "arena-fight-2-intro"
              :parts 8
              :command-list '((183 (setting-reset part-bounds-check mode #f))
                (10000
                  (send-event self 'user-data-set! (task-closed? "arena-fight-2-introduction"))
                  (task-close! "arena-fight-2-introduction")
                  (apply ,(lambda :behavior scene-player
                            ()
                            (if (kiosk?)
                                (set! (-> self end-point) "wasstada-fight-2")
                                )
                            (none)
                            )
                         )
                  )
                )
              :cut-list '(130 183 329 496 698 788 862)
              :wait-ground-time (seconds 1)
              :actor (new 'static 'boxed-array :type scene-actor
                (new 'static 'scene-actor
                  :name "scenecamera"
                  :level #f
                  :art-group "skel-scenecamera"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :camera 4
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "jakc-highres"
                  :level 'ljakc
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x3a0
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'waspala
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "red-gun-mod-two"
                  :level 'ljakc
                  :art-group "skel-red-gun-mod-two"
                  :prefix ""
                  :draw-frames '((788 max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "damus-highres"
                  :level 'waspala
                  :art-group "skel-damus-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                )
              :load-point "waspala-start"
              :end-point "waspala-gun-training"
              :borrow '((waspala 0 ljakc special))
              :music-delay 1500.0
              :scene-task #x29
              :on-running '(sound-play-loop "pal-movie-amb")
              :on-complete '(unless (send-event self 'user-data) (talker-spawn "powup002"))
              )
            )

(load-scene (new 'static 'scene
              :name "desert-rescue-intro"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-104"
              :art-group "scenecamera"
              :anim "desert-rescue-intro"
              :parts 5
              :command-list '((0
                  (kill "part-spawner-1603")
                  (kill "part-spawner-1604")
                  (kill "part-spawner-1609")
                  (kill "part-spawner-1614")
                  (kill "part-spawner-1620")
                  (kill "part-spawner-1621")
                  (kill "part-spawner-1623")
                  (kill "part-spawner-1624")
                  (kill "part-spawner-1625")
                  (kill "part-spawner-1626")
                  (kill "part-spawner-1627")
                  (setting-reset part-bounds-check mode #f)
                  (485 (fadeout (frame-time-30 5)))
                  )
                (10000 (task-close! "desert-rescue-introduction"))
                )
              :cut-list '(57 93 212 355 413)
              :wait-ground-time (seconds 1)
              :actor (new 'static 'boxed-array :type scene-actor
                (new 'static 'scene-actor
                  :name "scenecamera"
                  :level #f
                  :art-group "skel-scenecamera"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :camera 4
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "jakc-highres"
                  :level 'ljakc
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '(57 212)
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x80
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'waspala
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "palmpilot-b"
                  :level 'waspala
                  :art-group "skel-palmpilot-b"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "damus-highres"
                  :level 'waspala
                  :art-group "skel-damus-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '(355)
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                )
              :load-point "waspala-start"
              :end-point #f
              :borrow '((waspala 0 ljakc special))
              :music-delay 1500.0
              :on-running '(sound-play-loop "pal-movie-amb")
              :on-complete #f
              )
            )

(load-scene
  (new 'static 'scene
    :name "desert-jump-mission-intro"
    :extra #f
    :info #f
    :scene-flags (scene-flags scf1 scf2 scf3 scf4)
    :mask-to-clear (process-mask movie projectile)
    :entity "scene-stage-104"
    :art-group "scenecamera"
    :anim "desert-jump-mission-intro"
    :parts 17
    :command-list '((0
        (kill "part-spawner-1603")
        (kill "part-spawner-1604")
        (kill "part-spawner-1609")
        (kill "part-spawner-1614")
        (kill "part-spawner-1620")
        (kill "part-spawner-1621")
        (kill "part-spawner-1623")
        (kill "part-spawner-1624")
        (kill "part-spawner-1625")
        (kill "part-spawner-1626")
        (kill "part-spawner-1627")
        (setting-reset part-bounds-check mode #f)
        (fadein (frame-time-30 20))
        )
      (509 (part-tracker
             "group-damus-hand-sand"
             entity
             "particleman"
             joint
             "particleA"
             track
             #t
             duration
             (frame-range 509 551)
             )
           )
      (580 (part-tracker
             "group-fma-daxter-swim-ripples"
             entity
             "particleman"
             joint
             "particleB"
             track
             #t
             duration
             (frame-range 580 732)
             )
           )
      (2005 (fadeout (frame-time-30 5)))
      (10000 (task-close! "desert-jump-mission-introduction"))
      )
    :cut-list '(76 151 221 311 386 499 603 731 791 851 911 991 1129 1187 1265 1326 1417 1466 1561 1621 1696 1776 1916)
    :wait-ground-time (seconds 1)
    :actor (new 'static 'boxed-array :type scene-actor
      (new 'static 'scene-actor
        :name "scenecamera"
        :level #f
        :art-group "skel-scenecamera"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '()
        :cloth-commands '()
        :camera 4
        :shadow-flags -1
        :shadow-volume-joint #f
        )
      (new 'static 'scene-actor
        :name "particleman"
        :level 'waspala
        :art-group "skel-particleman"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '()
        :cloth-commands '()
        :shadow-flags -1
        :shadow-volume-joint #f
        )
      (new 'static 'scene-actor
        :name "jakc-highres"
        :level 'ljakc
        :art-group "skel-jakc-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '(221 1120 1382 1722)
        :cloth-commands '()
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        :no-draw-seg #x180
        )
      (new 'static 'scene-actor
        :name "sidekick-highres"
        :level 'waspala
        :art-group "skel-sidekick-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '()
        :cloth-commands '()
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        )
      (new 'static 'scene-actor
        :name "damus-highres"
        :level 'waspala
        :art-group "skel-damus-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '(911 991 1178 (1185 1265) 1453 (1464 1468) 1615 1900)
        :cloth-commands '((1187 reset) (1466 reset))
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        )
      )
    :load-point "waspala-start"
    :end-point #f
    :borrow '((waspala 0 ljakc special))
    :music-delay 1500.0
    :on-running '(sound-play-loop "pal-movie-amb")
    :on-complete #f
    )
  )

(defpartgroup group-damus-hand-sand
  :id 726
  :bounds (static-bspherem 0 0 0 640)
  :parts ((sp-item 2756) (sp-item 2757))
  )

(defpart 2756
  :init-specs ((:texture (ceiling-dust waspala-sprite))
    (:birth-func 'birth-func-flip-based-on-scale)
    (:num 0.2 0.8)
    (:x (meters 0) (meters 0.05))
    (:scale-x (meters -0.1) 2.0 (meters 0.2))
    (:scale-y (meters 0.2) (meters 0.1))
    (:r 130.0 30.0)
    (:g 110.0 40.0)
    (:b 95.0)
    (:a 16.0 32.0)
    (:scalevel-y (meters 0.0033333334))
    (:accel-y (meters -0.00066666666))
    (:friction 0.995)
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-13))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpart 2757
  :init-specs ((:texture (dust-sparkle waspala-sprite))
    (:num 0.5 0.5)
    (:scale-x (meters 0.1) (meters 0.1))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 255.0)
    (:a 0.0)
    (:accel-y (meters -0.00066666666))
    (:friction 0.995)
    (:timer (seconds 1))
    (:flags ())
    (:next-time (seconds 0.017) (seconds 0.165))
    (:next-launcher 2758)
    (:rotate-y (degrees 0))
    )
  )

(defpart 2758
  :init-specs ((:fade-a 2.56) (:next-time (seconds 0.085) (seconds 0.08)) (:next-launcher 2759))
  )

(defpart 2759
  :init-specs ((:fade-a -5.12))
  )

(defpartgroup group-fma-daxter-swim-ripples
  :id 727
  :bounds (static-bspherem 0 0 0 640)
  :parts ((sp-item 2760 :flags (is-3d sp7)))
  )

(defpart 2760
  :init-specs ((:texture (splash-foam level-default-sprite))
    (:num 0.5)
    (:rot-y (degrees 0) (degrees 360))
    (:r 140.0 60.0)
    (:g :copy r)
    (:b :copy r)
    (:a 64.0 64.0)
    (:scalevel-x (meters 0.0033333334) (meters 0.0016666667))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-13))
    (:rotate-y (degrees 0))
    )
  )
