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

;; name: sewer-scenes.gc
;; name in dgo: sewer-scenes
;; dgos: SEA

(define-extern *range-jsplash-color* curve-color-fast)
(define-extern *range-jsplash-alpha* curve2d-fast)
(define-extern *range-jsplash-scale-x* curve2d-fast)
(define-extern *range-jsplash-scale-y* curve2d-fast)
(define-extern *curve-jsplash-alpha* curve2d-fast)
(define-extern *curve-jsplash-scale-x* curve2d-fast)
(define-extern *curve-jsplash-scale-y* curve2d-fast)
(define-extern *range-dsplash-color* curve-color-fast)
(define-extern *range-dsplash-alpha* curve2d-fast)
(define-extern *range-dsplash-scale-x* curve2d-fast)
(define-extern *range-dsplash-scale-y* curve2d-fast)
(define-extern *curve-dsplash-alpha* curve2d-fast)
(define-extern *curve-dsplash-scale-x* curve2d-fast)
(define-extern *curve-dsplash-scale-y* curve2d-fast)

;; DECOMP BEGINS

(load-scene
  (new 'static 'scene
    :name "sewer-kg-entrance"
    :extra #f
    :info #f
    :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
    :mask-to-clear (process-mask movie projectile)
    :entity "scene-stage-114"
    :art-group "scenecamera"
    :anim "sewer-kg-entrance"
    :parts 2
    :command-list '((0 (kill "sew-elevator-35") (kill "sew-elevator-34") (kill "sew-elevator-43"))
      (2 (want-load 'sewa 'sewk 'sewg) (want-display 'sewk 'display))
      (10000 (restore "sew-elevator-35") (restore "sew-elevator-34") (restore "sew-elevator-43") (save))
      )
    :cut-list '(129)
    :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 'sewa
        :art-group "skel-jakc-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '((0 195))
        :cloth-commands '()
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        :no-draw-seg #x380
        )
      (new 'static 'scene-actor
        :name "sidekick-highres"
        :level 'sewa
        :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 "sew-elevator"
        :level 'sewa
        :art-group "skel-sew-elevator"
        :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 "ctyinda-sewer"
    :end-point "sewk-elevator"
    :borrow '()
    :sfx-volume -1.0
    :ambient-volume -1.0
    :music-delay 1500.0
    :on-running #f
    :on-complete #f
    )
  )

(load-scene
  (new 'static 'scene
    :name "sewer-genb-entrance"
    :extra #f
    :info #f
    :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
    :mask-to-clear (process-mask movie projectile)
    :entity "scene-stage-145"
    :art-group "scenecamera"
    :anim "sewer-genb-entrance"
    :parts 2
    :command-list '((0 (kill "sew-elevator-42") (kill "sew-elevator-34") (kill "sew-elevator-44") (kill "sew-elevator-50"))
      (2 (want-load 'sewa 'sewm 'sewl) (want-display 'sewl 'display))
      (10000
        (restore "sew-elevator-42")
        (restore "sew-elevator-34")
        (restore "sew-elevator-44")
        (restore "sew-elevator-50")
        (save)
        )
      )
    :cut-list '(129)
    :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 'sewa
        :art-group "skel-jakc-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '((25 195))
        :cloth-commands '()
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        :no-draw-seg #x380
        )
      (new 'static 'scene-actor
        :name "sidekick-highres"
        :level 'sewa
        :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 "sew-elevator"
        :level 'sewa
        :art-group "skel-sew-elevator"
        :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 "ctygenb-sewer"
    :end-point "sewl-elevator"
    :borrow '()
    :sfx-volume -1.0
    :ambient-volume -1.0
    :music-delay 1500.0
    :on-running #f
    :on-complete #f
    )
  )

(load-scene (new 'static 'scene
              :name "sewer-kg-exit"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-114"
              :art-group "scenecamera"
              :anim "sewer-kg-exit"
              :parts 2
              :command-list '((0 (kill "sew-elevator-27") (kill "sew-elevator-35"))
                (68
                  (want-load 'ctywide-kg 'ctyinda 'sewa)
                  (want-display 'ctyinda 'display)
                  (want-display 'ctywide-kg 'display)
                  )
                (200 (fadeout (frame-time-30 10)))
                (10000
                  (restore "sew-elevator-27")
                  (restore "sew-elevator-35")
                  (save)
                  (when (task-closed? "sewer-hum-kg-switch-off")
                    (task-close! "sewer-hum-kg-resolution")
                    )
                  )
                )
              :cut-list '(129)
              :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '((25 195))
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "sew-elevator"
                  :level 'sewa
                  :art-group "skel-sew-elevator"
                  :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 "sewf-start"
              :end-point "sewa-inda"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(load-scene (new 'static 'scene
              :name "sewer-port-exit"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-142"
              :art-group "scenecamera"
              :anim "sewer-port-exit"
              :parts 2
              :command-list '((0 (kill "sew-elevator-39") (kill "sew-elevator-47") (kill "sew-elevator-64"))
                (64 (want-load 'ctywide-ff 'ctyport 'sewa))
                (200 (fadeout (frame-time-30 10)))
                (10000
                  (restore "sew-elevator-39")
                  (restore "sew-elevator-47")
                  (restore "sew-elevator-64")
                  (save)
                  (task-close! "sewer-met-hum-resolution")
                  )
                )
              :cut-list '(129)
              :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '((0 193))
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "sew-elevator"
                  :level 'sewa
                  :art-group "skel-sew-elevator"
                  :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 "sewo-exit"
              :end-point "sewa-port"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(load-scene (new 'static 'scene
              :name "sewer-mh-exit"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-143"
              :art-group "scenecamera"
              :anim "sewer-mh-exit"
              :parts 2
              :command-list '((0
                  (kill "sew-elevator-40")
                  (kill "sew-elevator-34")
                  (kill "sew-elevator-46")
                  (kill "sew-elevator-26")
                  (kill "sew-elevator-65")
                  )
                (2
                  (want-load 'ctywide-mh 'mhcityb 'sewa)
                  (want-display 'mhcityb 'display)
                  (want-display 'ctywide-mh 'display)
                  )
                (200 (fadeout (frame-time-30 10)))
                (10000
                  (restore "sew-elevator-40")
                  (restore "sew-elevator-34")
                  (restore "sew-elevator-46")
                  (restore "sew-elevator-26")
                  (restore "sew-elevator-65")
                  (save)
                  (task-close! "sewer-kg-met-resolution")
                  )
                )
              :cut-list '(129)
              :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '((0 195))
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "sew-elevator"
                  :level 'sewa
                  :art-group "skel-sew-elevator"
                  :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 "sewj-exit"
              :end-point "sewa-mhcity"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(load-scene (new 'static 'scene
              :name "sewer-genb-exit"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-142"
              :art-group "scenecamera"
              :anim "sewer-port-exit"
              :parts 2
              :command-list '((0 (kill "sew-elevator-39") (kill "sew-elevator-47") (kill "sew-elevator-64"))
                (64)
                (200 (fadeout (frame-time-30 10)))
                (10000)
                )
              :cut-list '(129)
              :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '((0 193))
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "sew-elevator"
                  :level 'sewa
                  :art-group "skel-sew-elevator"
                  :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 "sewo-exit"
              :end-point "ctygenb-sewer-exit"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(load-scene (new 'static 'scene
              :name "sewer-slumb-exit"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-142"
              :art-group "scenecamera"
              :anim "sewer-port-exit"
              :parts 2
              :command-list '((0 (kill "sew-elevator-39") (kill "sew-elevator-47") (kill "sew-elevator-64"))
                (64)
                (200 (fadeout (frame-time-30 10)))
                (10000)
                )
              :cut-list '(129)
              :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '((0 193))
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :art-group "skel-sidekick-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((0 100) (129 end))
                  :cloth-reset-frames '()
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  )
                (new 'static 'scene-actor
                  :name "sew-elevator"
                  :level 'sewa
                  :art-group "skel-sew-elevator"
                  :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 "sewo-exit"
              :end-point "ctyslumb-sewer-exit"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(load-scene
  (new 'static 'scene
    :name "sewer-hum-kg-entrance"
    :extra #f
    :info #f
    :scene-flags (scene-flags scf1 scf2 scf3 scf4 scf8)
    :mask-to-clear (process-mask movie projectile)
    :entity "scene-stage-146"
    :art-group "scenecamera"
    :anim "sewer-hum-kg-entrance"
    :parts 2
    :command-list '((0 (kill "sew-elevator-35") (kill "sew-elevator-34") (kill "sew-elevator-49") (kill "sew-elevator-48"))
      (2 (want-load 'sewa 'sewb 'sewc) (want-display 'sewb 'display))
      (10000
        (restore "sew-elevator-35")
        (restore "sew-elevator-34")
        (restore "sew-elevator-49")
        (restore "sew-elevator-48")
        (save)
        )
      )
    :cut-list '(129)
    :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 'sewa
        :art-group "skel-jakc-highres"
        :prefix ""
        :draw-frames '((min max))
        :scissor-frames '()
        :shadow-frames '((min max))
        :cloth-reset-frames '((0 195))
        :cloth-commands '()
        :flags #x1
        :shadow-flags -1
        :shadow-volume-joint #f
        :no-draw-seg #x380
        )
      (new 'static 'scene-actor
        :name "sidekick-highres"
        :level 'sewa
        :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 "sew-elevator"
        :level 'sewa
        :art-group "skel-sew-elevator"
        :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 "ctyslumb-sewer-movie"
    :end-point "sewb-elevator"
    :borrow '()
    :sfx-volume -1.0
    :ambient-volume -1.0
    :music-delay 1500.0
    :on-running #f
    :on-complete #f
    )
  )

(load-scene
  (new 'static 'scene
    :name "sewer-hum-kg-res"
    :extra #f
    :info #f
    :scene-flags (scene-flags scf1 scf2 scf3 scf4)
    :mask-to-clear (process-mask movie projectile)
    :entity "scene-stage-121"
    :art-group "scenecamera"
    :anim "sewer-hum-kg-res"
    :parts 2
    :command-list '((0 (kill "sew-power-switch-1") (fadein (frame-time-30 5)))
      (163 (fadeout (frame-time-30 5)) (want-display 'ctyinda 'display))
      (10000 (restore "sew-power-switch-1") (entity-status! "sew-power-switch-1" #t subtask-complete))
      )
    :cut-list '(46)
    :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 'sewa
        :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 #x380
        )
      (new 'static 'scene-actor
        :name "sidekick-highres"
        :level 'sewa
        :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 "sew-power-switch"
        :level 'sewe
        :art-group "skel-sew-power-switch"
        :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 "sewe-switch"
    :end-point "sewe-inda"
    :borrow '()
    :sfx-volume -1.0
    :ambient-volume -1.0
    :music-delay 1500.0
    :on-running '(sound-play-loop "sew-mov-amb")
    :on-complete #f
    )
  )

(load-scene (new 'static 'scene
              :name "sewer-waterslide"
              :extra #f
              :info #f
              :scene-flags (scene-flags scf1 scf2 scf3 scf4)
              :mask-to-clear (process-mask movie projectile)
              :entity "scene-stage-115"
              :art-group "scenecamera"
              :anim "sewer-waterslide"
              :parts 4
              :command-list '((0
                  (part-tracker
                    "group-sewer-water-trail"
                    entity
                    "particleman"
                    joint
                    "particleA"
                    track
                    #t
                    duration
                    (frame-range 0 40)
                    )
                  (kill "sew-gate-1")
                  )
                (2 (want-load 'sewa 'sewd 'sewe))
                (18 (part-tracker
                      "group-sewer-water-trail-body"
                      entity
                      "jakc-highres"
                      joint
                      "sk_rhand"
                      track
                      #t
                      duration
                      (frame-range 18 25)
                      )
                    )
                (48 (part-tracker
                      "group-sewer-water-splash"
                      entity
                      "particleman"
                      joint
                      "particleC"
                      track
                      #t
                      duration
                      (frame-range 48 49)
                      )
                    )
                (50
                  (part-tracker
                    "group-sewer-water-trail-body-long"
                    entity
                    "jakc-highres"
                    joint
                    "main"
                    track
                    #t
                    duration
                    (frame-range 50 90)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "Lankle"
                    track
                    #t
                    duration
                    (frame-range 50 51)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "Rankle"
                    track
                    #t
                    duration
                    (frame-range 50 51)
                    )
                  )
                (52
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "sk_lhand"
                    track
                    #t
                    duration
                    (frame-range 52 53)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "sidekick-highres"
                    joint
                    "Rhand"
                    track
                    #t
                    duration
                    (frame-range 52 98)
                    )
                  )
                (65
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "sk_lhand"
                    track
                    #t
                    duration
                    (frame-range 65 68)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body-long"
                    entity
                    "sidekick-highres"
                    joint
                    "main"
                    track
                    #t
                    duration
                    (frame-range 65 90)
                    )
                  )
                (68 (part-tracker
                      "group-sewer-water-trail-body"
                      entity
                      "jakc-highres"
                      joint
                      "sk_rhand"
                      track
                      #t
                      duration
                      (frame-range 68 69)
                      )
                    )
                (69 (part-tracker
                      "group-sewer-water-trail-body"
                      entity
                      "jakc-highres"
                      joint
                      "Rankle"
                      track
                      #t
                      duration
                      (frame-range 69 71)
                      )
                    )
                (79 (part-tracker
                      "group-sewer-water-trail-body"
                      entity
                      "sidekick-highres"
                      joint
                      "Rhand"
                      track
                      #t
                      duration
                      (frame-range 79 81)
                      )
                    )
                (84
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "Lankle"
                    track
                    #t
                    duration
                    (frame-range 84 90)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "sidekick-highres"
                    joint
                    "Rankle"
                    track
                    #t
                    duration
                    (frame-range 69 71)
                    )
                  )
                (88 (part-tracker
                      "group-sewer-water-trail-body"
                      entity
                      "jakc-highres"
                      joint
                      "sk_rhand"
                      track
                      #t
                      duration
                      (frame-range 88 92)
                      )
                    )
                (92 (part-tracker
                      "group-sewer-water-splash"
                      entity
                      "particleman"
                      joint
                      "particleB"
                      track
                      #t
                      duration
                      (frame-range 92 93)
                      )
                    )
                (93
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "Lankle"
                    track
                    #t
                    duration
                    (frame-range 93 98)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "Rankle"
                    track
                    #t
                    duration
                    (frame-range 93 97)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "sk_rhand"
                    track
                    #t
                    duration
                    (frame-range 93 99)
                    )
                  )
                (100 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Rhand"
                       track
                       #t
                       duration
                       (frame-range 100 240)
                       )
                     )
                (104 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lhand"
                       track
                       #t
                       duration
                       (frame-range 104 106)
                       )
                     )
                (106 (part-tracker
                       "group-sewer-water-trail-body-long"
                       entity
                       "sidekick-highres"
                       joint
                       "main"
                       track
                       #t
                       duration
                       (frame-range 106 220)
                       )
                     )
                (107 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Rhand"
                       track
                       #t
                       duration
                       (frame-range 107 110)
                       )
                     )
                (108
                  (part-tracker
                    "group-sewer-water-trail-body"
                    entity
                    "jakc-highres"
                    joint
                    "sk_rhand"
                    track
                    #t
                    duration
                    (frame-range 108 110)
                    )
                  (part-tracker
                    "group-sewer-water-trail-body-long"
                    entity
                    "jakc-highres"
                    joint
                    "main"
                    track
                    #t
                    duration
                    (frame-range 108 240)
                    )
                  )
                (110 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "Lankle"
                       track
                       #t
                       duration
                       (frame-range 110 113)
                       )
                     )
                (116 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "Rankle"
                       track
                       #t
                       duration
                       (frame-range 116 123)
                       )
                     )
                (119 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Rankle"
                       track
                       #t
                       duration
                       (frame-range 69 71)
                       )
                     )
                (120 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_lhand"
                       track
                       #t
                       duration
                       (frame-range 120 123)
                       )
                     )
                (121 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lankle"
                       track
                       #t
                       duration
                       (frame-range 121 124)
                       )
                     )
                (125 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lhand"
                       track
                       #t
                       duration
                       (frame-range 125 129)
                       )
                     )
                (126 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Rhand"
                       track
                       #t
                       duration
                       (frame-range 126 150)
                       )
                     )
                (133 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lankle"
                       track
                       #t
                       duration
                       (frame-range 133 140)
                       )
                     )
                (138 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_rhand"
                       track
                       #t
                       duration
                       (frame-range 138 140)
                       )
                     )
                (142 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_lhand"
                       track
                       #t
                       duration
                       (frame-range 142 161)
                       )
                     )
                (155 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_rhand"
                       track
                       #t
                       duration
                       (frame-range 155 160)
                       )
                     )
                (160 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lankle"
                       track
                       #t
                       duration
                       (frame-range 160 187)
                       )
                     )
                (178 (part-tracker
                       "group-sewer-water-splash"
                       entity
                       "particleman"
                       joint
                       "particleC"
                       track
                       #t
                       duration
                       (frame-range 178 181)
                       )
                     )
                (189 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Lhand"
                       track
                       #t
                       duration
                       (frame-range 189 198)
                       )
                     )
                (190 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "sidekick-highres"
                       joint
                       "Rhand"
                       track
                       #t
                       duration
                       (frame-range 190 215)
                       )
                     )
                (193 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_lhand"
                       track
                       #t
                       duration
                       (frame-range 193 195)
                       )
                     )
                (202 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "sk_rhand"
                       track
                       #t
                       duration
                       (frame-range 202 205)
                       )
                     )
                (220 (part-tracker
                       "group-sewer-water-edge-splash"
                       entity
                       "particleman"
                       joint
                       "particleB"
                       track
                       #t
                       duration
                       (frame-range 220 221)
                       )
                     )
                (230 (part-tracker
                       "group-sewer-water-trail-body"
                       entity
                       "jakc-highres"
                       joint
                       "Lankle"
                       track
                       #t
                       duration
                       (frame-range 230 236)
                       )
                     )
                (240 (part-tracker
                       "group-sewer-water-edge-splash"
                       entity
                       "particleman"
                       joint
                       "particleG"
                       track
                       #t
                       duration
                       (frame-range 240 241)
                       )
                     )
                (270 (part-tracker
                       "group-sewer-water-splash-jak"
                       entity
                       "particleman"
                       joint
                       "particleD"
                       track
                       #t
                       duration
                       (frame-range 270 400)
                       )
                     )
                (275 (part-tracker
                       "group-sewer-water-splash-daxter"
                       entity
                       "particleman"
                       joint
                       "particleE"
                       track
                       #t
                       duration
                       (frame-range 275 400)
                       )
                     )
                (305 (part-tracker
                       "group-sewer-water-jak-rings"
                       entity
                       "particleman"
                       joint
                       "particleD"
                       track
                       #t
                       duration
                       (frame-range 305 310)
                       )
                     )
                (335 (part-tracker
                       "group-sewer-bubbles-daxter"
                       entity
                       "particleman"
                       joint
                       "particleF"
                       track
                       #t
                       duration
                       (frame-range 335 500)
                       )
                     )
                (365 (part-tracker
                       "group-sewer-bubbles-daxter-pop"
                       entity
                       "particleman"
                       joint
                       "particleE"
                       track
                       #f
                       duration
                       (frame-range 365 500)
                       )
                     )
                (390 (fadeout (frame-time-30 20)))
                )
              :cut-list '(84 129 170 194 226 263 334)
              :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 'sewa
                  :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 'sewa
                  :art-group "skel-jakc-highres"
                  :prefix ""
                  :draw-frames '((min max))
                  :scissor-frames '()
                  :shadow-frames '((min max))
                  :cloth-reset-frames '(263)
                  :cloth-commands '()
                  :flags #x1
                  :shadow-flags -1
                  :shadow-volume-joint #f
                  :no-draw-seg #x380
                  )
                (new 'static 'scene-actor
                  :name "sidekick-highres"
                  :level 'sewa
                  :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
                  )
                )
              :load-point "sewd-start"
              :end-point "sewd-waterslide-end"
              :borrow '()
              :sfx-volume -1.0
              :ambient-volume -1.0
              :music-delay 1500.0
              :on-running #f
              :on-complete #f
              )
            )

(defpartgroup group-sewer-water-trail
  :id 1508
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 40)
  :parts ((sp-item 4947 :flags (sp7)))
  )

(defpart 4947
  :init-specs ((:texture (water-drops level-default-sprite))
    (:num 3.0)
    (:x (meters 0) (meters 0.5))
    (:scale-x (meters 0.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 16.0 64.0)
    (:vel-z (meters -0.033333335))
    (:scalevel-x (meters 0.01))
    (:scalevel-y :copy scalevel-x)
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:func 'check-drop-group-center)
    (:conerot-x (degrees 0) (degrees 30))
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-sewer-water-trail-body
  :id 1509
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 40)
  :parts ((sp-item 4948 :flags (sp7)))
  )

(defpart 4948
  :init-specs ((:texture (water-drops level-default-sprite))
    (:num 3.0)
    (:x (meters 0) (meters 0.5))
    (:scale-x (meters 0.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 16.0 64.0)
    (:vel-z (meters -0.033333335))
    (:scalevel-x (meters 0.01))
    (:scalevel-y :copy scalevel-x)
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:func 'check-drop-group-center)
    (:conerot-x (degrees 0) (degrees 30))
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-sewer-water-trail-body-long
  :id 1510
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 40)
  :parts ((sp-item 4949 :flags (is-3d sp7)))
  )

(defpart 4949
  :init-specs ((:texture (water-trail sewa-sprite))
    (:num 0.5)
    (:scale-x (meters 0.5) (meters 1))
    (:rot-x (degrees 0))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 64.0 64.0)
    (:vel-x (meters 0.0033333334))
    (:scalevel-x (meters 0.026666667))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334 -0.21333334)
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:func 'sparticle-turn-to-vel)
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-sewer-water-splash
  :id 1511
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 40)
  :parts ((sp-item 4950 :flags (sp7)))
  )

(defpart 4950
  :init-specs ((:texture (water-drops level-default-sprite))
    (:num 20.0)
    (:x (meters 0) (meters 0.5))
    (:scale-x (meters 0.3) (meters 0.3))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 64.0 64.0)
    (:vel-y (meters 0.033333335) (meters 0.016666668))
    (:scalevel-x (meters 0.01) (meters 0.0033333334))
    (:scalevel-y :copy scalevel-x)
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:func 'check-drop-group-center)
    (:conerot-x (degrees 0) (degrees 30))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpartgroup group-sewer-water-edge-splash
  :id 1512
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 40)
  :parts ((sp-item 4951 :flags (sp7)))
  )

(defpart 4951
  :init-specs ((:texture (water-drops level-default-sprite))
    (:num 20.0)
    (:x (meters 0) (meters 0.5))
    (:scale-x (meters 0.3) (meters 0.3))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 64.0 64.0)
    (:vel-y (meters 0.033333335) (meters 0.016666668))
    (:scalevel-x (meters 0.01) (meters 0.0033333334))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334 -0.21333334)
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:conerot-x (degrees 0) (degrees 30))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpartgroup group-sewer-water-splash-jak
  :id 1513
  :duration (seconds 5)
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 14)
  :parts ((sp-item 4952 :flags (sp7) :period (seconds 10) :length (seconds 0.1))
    (sp-item 4953 :flags (sp7) :period (seconds 10) :length (seconds 0.085))
    (sp-item 4954 :period (seconds 10) :length (seconds 0.2))
    (sp-item 4955 :flags (is-3d) :period (seconds 10) :length (seconds 0.067))
    (sp-item 4956 :period (seconds 10) :length (seconds 0.167))
    (sp-item 4957 :flags (is-3d) :period (seconds 10) :length (seconds 1))
    )
  )

(defpart 4952
  :init-specs ((:texture (lakedrop level-default-sprite))
    (:num 20.0)
    (:x (meters 0) (meters 1))
    (:y (meters -0.5))
    (:scale-x (meters 0.1) (meters 0.1))
    (:scale-y :copy scale-x)
    (:r 64.0)
    (:g 64.0)
    (:b 64.0)
    (:a 16.0 16.0)
    (:vel-y (meters -0.0033333334) (meters -0.06666667))
    (:fade-a 0.064)
    (:accel-y (meters 0.00033333333) (meters 0.00016666666))
    (:friction 0.97)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 launch-along-z))
    (:func 'check-raise-group-center)
    (:conerot-x (degrees 0) (degrees 10))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpart 4953
  :init-specs ((:texture (water-drops level-default-sprite))
    (:num 20.0)
    (:scale-x (meters 0.3) (meters 0.3))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 64.0 64.0)
    (:vel-y (meters 0) (meters 0.05))
    (:scalevel-x (meters 0.0016666667))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334 -0.21333334)
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:func 'check-drop-group-center)
    (:conerot-x (degrees 0) (degrees 10))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpart 4954
  :init-specs ((:texture (splash level-default-sprite))
    (:birth-func 'birth-func-curve)
    (:num 10.0)
    (:scale-x (meters 1))
    (:scale-y (meters 1))
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 128.0)
    (:vel-z (meters 0.016666668))
    (:friction 0.96)
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13))
    (:userdata 0.0)
    (:func 'live-func-curve)
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(if #t
    (set! *range-jsplash-color* (new 'static 'curve-color-fast
                                  :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                  :ys (new 'static 'inline-array vector 4
                                    (new 'static 'vector :x 128.0 :y 158.0 :z 128.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    )
                                  :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *range-jsplash-alpha* (new 'static 'curve2d-fast
                                  :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                  :ys (new 'static 'vector :x 64.0 :y 128.0 :z 129.0 :w 130.0)
                                  :one-over-x-deltas (new 'static 'vector :x 64.0 :y 1.0 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *range-jsplash-scale-x* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 0.5 :y 1.0 :z 2.0 :w 3.0)
                                    :one-over-x-deltas (new 'static 'vector :x 0.5 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *range-jsplash-scale-y* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 1.0 :y 2.0 :z 3.0 :w 4.0)
                                    :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *curve-jsplash-alpha* (new 'static 'curve2d-fast
                                  :xs (new 'static 'vector :y -0.1 :z -1.0 :w -2.0)
                                  :ys (new 'static 'vector :y 1.0 :w 1.0)
                                  :one-over-x-deltas (new 'static 'vector :x 10.0 :y -1.1111112 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *curve-jsplash-scale-x* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 1.0 :y 2.0 :z 3.0 :w 4.0)
                                    :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *curve-jsplash-scale-y* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -0.4 :z -0.7 :w -1.0)
                                    :ys (new 'static 'vector :y 2.0 :z 0.5)
                                    :one-over-x-deltas (new 'static 'vector :x 5.0 :y -5.0000005 :z -1.6666666 :w 1.0)
                                    )
          )
    )

(define *part-sewer-water-splash-jak-curve-settings*
  (new 'static 'particle-curve-settings :lifetime-base (seconds 0.95) :lifetime-offset (seconds 0.1))
  )

(set! (-> *part-id-table* 4954 init-specs 13 initial-valuef)
      (the-as float *part-sewer-water-splash-jak-curve-settings*)
      )

(set! (-> *part-sewer-water-splash-jak-curve-settings* color-start) *range-jsplash-color*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* alpha-start) *range-jsplash-alpha*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* scale-x-start) *range-jsplash-scale-x*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* scale-y-start) *range-jsplash-scale-y*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* r-scalar) #f)

(set! (-> *part-sewer-water-splash-jak-curve-settings* g-scalar) #f)

(set! (-> *part-sewer-water-splash-jak-curve-settings* b-scalar) #f)

(set! (-> *part-sewer-water-splash-jak-curve-settings* a-scalar) *curve-jsplash-alpha*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* scale-x-scalar) *curve-jsplash-scale-x*)

(set! (-> *part-sewer-water-splash-jak-curve-settings* scale-y-scalar) *curve-jsplash-scale-y*)

(defpart 4955
  :init-specs ((:texture (splash-foam level-default-sprite))
    (:num 0.3)
    (:x (meters 0.5))
    (:scale-x (meters 1) (meters 0.5))
    (:rot-y (degrees 0) (degrees 3600))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 255.0)
    (:a 128.0)
    (:scalevel-x (meters 0.01) (meters 0.0033333334))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13))
    )
  )

(defpart 4956
  :init-specs ((:texture (lakedrop level-default-sprite))
    (:num 2.0)
    (:x (meters 0) (meters 1))
    (:scale-x (meters 0.05) (meters 0.05))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 32.0 32.0)
    (:vel-y (meters 0.016666668) (meters 0.033333335))
    (:accel-y (meters -0.0016666667))
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-3))
    (:func 'check-drop-group-center)
    (:conerot-x (degrees -40) (degrees 80))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpart 4957
  :init-specs ((:texture (ripples level-default-sprite))
    (:birth-func 'birth-func-texture-group)
    (:num 2.0)
    (:x (meters 1) (meters 5))
    (:scale-x (meters 0.1) (meters 0.2))
    (:rot-y (degrees 0) (degrees 3600))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 255.0)
    (:a 32.0 32.0)
    (:scalevel-x (meters 0.001) (meters 0.0033333334))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.10666667)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 left-multiply-quat))
    (:userdata :data (new 'static 'boxed-array :type int32 5 1 0 #x408300 #x408300 #x408300 #x408200))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpartgroup group-sewer-water-splash-daxter
  :id 1514
  :duration (seconds 5)
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 14)
  :parts ((sp-item 4958 :period (seconds 10) :length (seconds 0.2))
    (sp-item 4959 :flags (is-3d) :period (seconds 10) :length (seconds 2))
    )
  )

(defpart 4958
  :init-specs ((:texture (splash level-default-sprite))
    (:birth-func 'birth-func-curve)
    (:num 10.0)
    (:scale-x (meters 1))
    (:scale-y (meters 1))
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 128.0)
    (:vel-z (meters 0.016666668))
    (:friction 0.96)
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13))
    (:userdata 0.0)
    (:func 'live-func-curve)
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(if #t
    (set! *range-dsplash-color* (new 'static 'curve-color-fast
                                  :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                  :ys (new 'static 'inline-array vector 4
                                    (new 'static 'vector :x 128.0 :y 158.0 :z 128.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    (new 'static 'vector :x 255.0 :y 255.0 :z 255.0 :w 128.0)
                                    )
                                  :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *range-dsplash-alpha* (new 'static 'curve2d-fast
                                  :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                  :ys (new 'static 'vector :x 64.0 :y 128.0 :z 129.0 :w 130.0)
                                  :one-over-x-deltas (new 'static 'vector :x 64.0 :y 1.0 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *range-dsplash-scale-x* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 0.5 :y 1.0 :z 2.0 :w 3.0)
                                    :one-over-x-deltas (new 'static 'vector :x 0.5 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *range-dsplash-scale-y* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 1.0 :y 2.0 :z 3.0 :w 4.0)
                                    :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *curve-dsplash-alpha* (new 'static 'curve2d-fast
                                  :xs (new 'static 'vector :y -0.1 :z -1.0 :w -2.0)
                                  :ys (new 'static 'vector :y 1.0 :w 1.0)
                                  :one-over-x-deltas (new 'static 'vector :x 10.0 :y -1.1111112 :z 1.0 :w 1.0)
                                  )
          )
    )

(if #t
    (set! *curve-dsplash-scale-x* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -1.0 :z -2.0 :w -3.0)
                                    :ys (new 'static 'vector :x 1.0 :y 2.0 :z 3.0 :w 4.0)
                                    :one-over-x-deltas (new 'static 'vector :x 1.0 :y 1.0 :z 1.0 :w 1.0)
                                    )
          )
    )

(if #t
    (set! *curve-dsplash-scale-y* (new 'static 'curve2d-fast
                                    :xs (new 'static 'vector :y -0.4 :z -0.7 :w -1.0)
                                    :ys (new 'static 'vector :y 2.0 :z 0.5)
                                    :one-over-x-deltas (new 'static 'vector :x 5.0 :y -5.0000005 :z -1.6666666 :w 1.0)
                                    )
          )
    )

(define *part-sewer-water-splash-daxter-curve-settings*
  (new 'static 'particle-curve-settings :lifetime-base (seconds 0.95) :lifetime-offset (seconds 0.1))
  )

(set! (-> *part-id-table* 4958 init-specs 13 initial-valuef)
      (the-as float *part-sewer-water-splash-daxter-curve-settings*)
      )

(set! (-> *part-sewer-water-splash-daxter-curve-settings* color-start) *range-dsplash-color*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* alpha-start) *range-dsplash-alpha*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* scale-x-start) *range-dsplash-scale-x*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* scale-y-start) *range-dsplash-scale-y*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* r-scalar) #f)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* g-scalar) #f)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* b-scalar) #f)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* a-scalar) *curve-dsplash-alpha*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* scale-x-scalar) *curve-dsplash-scale-x*)

(set! (-> *part-sewer-water-splash-daxter-curve-settings* scale-y-scalar) *curve-dsplash-scale-y*)

(defpart 4959
  :init-specs ((:texture (splash-foam level-default-sprite))
    (:num 0.1)
    (:scale-x (meters 1) (meters 0.5))
    (:rot-y (degrees 0) (degrees 3600))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 255.0)
    (:a 128.0)
    (:scalevel-x (meters 0.0033333334))
    (:scalevel-y :copy scalevel-x)
    (:fade-a -0.21333334)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13))
    )
  )

(defpartgroup group-sewer-water-jak-rings
  :id 1515
  :duration (seconds 5)
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 14)
  :parts ((sp-item 4955 :flags (is-3d) :period (seconds 10) :length (seconds 0.5)))
  )

(defpartgroup group-sewer-bubbles-daxter
  :id 1516
  :duration (seconds 5)
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 14)
  :parts ((sp-item 4960 :flags (sp7) :period (seconds 10) :length (seconds 1.5)))
  )

(defpart 4960
  :init-specs ((:texture (lakedrop level-default-sprite))
    (:num 0.5)
    (:x (meters -0.4) (meters 0.2))
    (:y (meters -0.2))
    (:z (meters 0.4) (meters -0.2))
    (:scale-x (meters 0.03) (meters 0.03))
    (:scale-y :copy scale-x)
    (:r 64.0)
    (:g 64.0)
    (:b 64.0)
    (:a 8.0 8.0)
    (:fade-a 0.21333334)
    (:accel-y (meters 0.00006666667) (meters 0.00006666667))
    (:friction 0.97)
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 launch-along-z))
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-sewer-bubbles-daxter-pop
  :id 1517
  :duration (seconds 5)
  :flags (sp0 sp4)
  :bounds (static-bspherem 0 0 0 14)
  :parts ((sp-item 4961 :flags (sp7) :period (seconds 10) :length (seconds 1.5)))
  )

(defpart 4961
  :init-specs ((:texture (laser-hit level-default-sprite))
    (:birth-func 'birth-func-texture-group)
    (:num 0.5)
    (:x (meters -0.4) (meters 0.2))
    (:y (meters 0.3) (meters 0.2))
    (:z (meters 0.4) (meters -0.2))
    (:scale-x (meters 0.01) (meters 0.05))
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g 128.0)
    (:b 128.0)
    (:a 128.0 128.0)
    (:scalevel-x (meters 0.0016666667) (meters 0.006666667))
    (:scalevel-y :copy scalevel-x)
    (:timer (seconds 0.067) (seconds 0.065))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-13 launch-along-z))
    (:userdata :data (new 'static 'boxed-array :type int32 5 1 0 #x405400 #x406400))
    (:rotate-y (degrees 0))
    )
  )
