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

;; name: stadium-part.gc
;; name in dgo: stadium-part
;; dgos: STA

;; DECOMP BEGINS

(deftype stadium-part (part-spawner)
  ()
  )


(defpartgroup group-garage-lights
  :id 894
  :flags (unk-4 unk-6)
  :bounds (static-bspherem 0 0 0 8)
  :rotate ((degrees 90) (degrees 90) (degrees 0))
  :parts ((sp-item 3909 :fade-after (meters 80) :flags (bit6))
    (sp-item 3910 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3911 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3912 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3913 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3914 :fade-after (meters 60) :flags (bit6 bit7))
    )
  )

(defpart 3909
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:scale-x (meters 20) (meters 0.1))
    (:rot-x (degrees 4.5))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 16.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 4096.0)
    )
  )

(defpart 3910
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.3))
    (:z (meters -4))
    (:scale-x (meters 6) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 14.0 2.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3911
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.3))
    (:z (meters -2))
    (:scale-x (meters 6) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 14.0 2.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3912
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.3))
    (:z (meters 0))
    (:scale-x (meters 6) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 14.0 2.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3913
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.3))
    (:z (meters 2))
    (:scale-x (meters 6) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 14.0 2.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3914
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.3))
    (:z (meters 4))
    (:scale-x (meters 6) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -36))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 255.0)
    (:b 128.0 32.0)
    (:a 14.0 2.0)
    (:omega (degrees 1354.5))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-garage-pump-glow
  :id 895
  :bounds (static-bspherem 0 -3.5 0 4)
  :parts ((sp-item 3915 :fade-after (meters 80) :flags (bit6)) (sp-item 3916 :fade-after (meters 80) :flags (bit6)))
  )

(defpart 3916
  :init-specs ((:texture (glow effects))
    (:num 1.0)
    (:y (meters -0.25) (meters 0.5))
    (:scale-x (meters 7) (meters 0.5))
    (:rot-x (degrees 22.5))
    (:rot-z (degrees -17) (degrees 10))
    (:scale-y (meters 5) (meters 0.5))
    (:r 128.0)
    (:g 192.0)
    (:b 0.0)
    (:a 6.0 4.0)
    (:omega (degrees 1804.4999))
    (:timer (seconds 0.035))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 4096.0)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3915
  :init-specs ((:texture (glow-soft effects))
    (:num 2.0)
    (:y (meters 0.7) 7 (meters -0.2))
    (:scale-x (meters 0.7) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:scale-y (meters 1.6) (meters 0.1))
    (:r 128.0)
    (:g 192.0)
    (:b 0.0)
    (:a 20.0 4.0)
    (:omega (degrees 1804.4999))
    (:timer (seconds 0.035))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 1228.8)
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-garage-guage-lights
  :id 896
  :flags (unk-4)
  :bounds (static-bspherem 0 0 0 5)
  :parts ((sp-item 3917 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3918 :fade-after (meters 60) :flags (bit6 bit7))
    (sp-item 3919 :fade-after (meters 60) :flags (bit6 bit7))
    )
  )

(defpart 3917
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters 0))
    (:z (meters 0.03))
    (:scale-x (meters 1.5) (meters 0.05))
    (:rot-x (degrees 0.5625))
    (:scale-y :copy scale-x)
    (:r 0.0 64.0)
    (:g 128.0)
    (:b 64.0)
    (:a 32.0 8.0)
    (:omega (degrees 1365.75))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 122.88)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3918
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -0.725))
    (:z (meters 0.03))
    (:scale-x (meters 1.25) (meters 0.04))
    (:rot-x (degrees 0.5625))
    (:scale-y :copy scale-x)
    (:r 0.0 64.0)
    (:g 128.0)
    (:b 64.0)
    (:a 32.0 8.0)
    (:omega (degrees 1365.75))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 122.88)
    (:rotate-y (degrees 0))
    )
  )

(defpart 3919
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:x (meters 0))
    (:y (meters -1.4))
    (:z (meters 0.05))
    (:scale-x (meters 1) (meters 0.03))
    (:rot-x (degrees 0.5625))
    (:scale-y :copy scale-x)
    (:r 0.0 64.0)
    (:g 128.0)
    (:b 64.0)
    (:a 32.0 8.0)
    (:omega (degrees 1365.75))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 163.84)
    (:rotate-y (degrees 0))
    )
  )

(defpartgroup group-garage-steam-release
  :id 897
  :flags (unk-4)
  :bounds (static-bspherem 0 0 0 6)
  :parts ((sp-item 3920 :fade-after (meters 20) :falloff-to (meters 20) :flags (bit7))
    (sp-item 3921 :fade-after (meters 100) :falloff-to (meters 140) :flags (bit7))
    )
  )

(defpart 3920
  :init-specs ((:texture (motion-blur-part effects))
    (:num 0.0 5.0)
    (:z (meters -0.2))
    (:scale-x (meters 0.025) (meters 0.01))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 128.0)
    (:g :copy r)
    (:b :copy g)
    (:a 64.0 32.0)
    (:omega (degrees 0.005625) (degrees 0.00225))
    (:vel-z (meters 0.033333335) (meters 0.033333335))
    (:fade-a -0.64 -0.64)
    (:friction 0.92 0.015)
    (:timer (seconds 0.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-12))
    (:func 'sparticle-motion-blur)
    (:launchrot-x (degrees -7.5) (degrees 15))
    (:launchrot-y (degrees -7.5) (degrees 15))
    (:rotate-y (degrees 0))
    )
  )

(defpart 3921
  :init-specs ((:texture (bigpuff effects))
    (:num 1.0 3.0)
    (:z (meters -0.2))
    (:scale-x (meters 0.25) (meters 0.05))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 64.0 128.0)
    (:g :copy r)
    (:b :copy g)
    (:a 0.0)
    (:vel-z (meters 0.033333335) (meters 0.033333335))
    (:scalevel-x (meters 0.005) (meters 0.008333334))
    (:rotvel-z (degrees -1.2) (degrees 2.4))
    (:scalevel-y :copy scalevel-x)
    (:fade-a 0.96)
    (:friction 0.9 0.015)
    (:timer (seconds 0.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12))
    (:next-time (seconds 0.085) (seconds 0.08))
    (:next-launcher 3922)
    (:launchrot-x (degrees -5) (degrees 10))
    (:launchrot-y (degrees -5) (degrees 10))
    (:rotate-y (degrees 0))
    )
  )

(defpart 3922
  :init-specs ((:fade-a -0.48 -0.48))
  )

(defpartgroup group-stadium-flamepot
  :id 898
  :bounds (static-bspherem 0 3 0 16)
  :parts ((sp-item 3923 :fade-after (meters 200) :falloff-to (meters 200))
    (sp-item 3924 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 0.335) :length (seconds 0.167))
    (sp-item 3925 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 0.4) :length (seconds 0.185) :offset 20)
    (sp-item 3926 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 0.535) :length (seconds 0.1) :offset 35)
    (sp-item 3924 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 0.85) :length (seconds 0.2) :offset 65)
    (sp-item 3925 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 1.25) :length (seconds 0.135) :offset 15)
    (sp-item 3926 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 1.435) :length (seconds 0.167) :offset 85)
    (sp-item 3924 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 2) :length (seconds 0.235) :offset 100)
    (sp-item 3925 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 4.167) :length (seconds 0.15) :offset 450)
    (sp-item 3926 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 5) :length (seconds 0.085) :offset 115)
    (sp-item 3924 :fade-after (meters 250) :falloff-to (meters 250) :period (seconds 7) :length (seconds 0.185) :offset 80)
    (sp-item 3927 :fade-after (meters 120) :falloff-to (meters 120))
    (sp-item 3928 :fade-after (meters 120) :falloff-to (meters 120))
    (sp-item 3929 :fade-after (meters 300))
    )
  )

(defpart 3929
  :init-specs ((:texture (glow-soft effects))
    (:num 0.25)
    (:x (meters -1) (meters 2))
    (:y (meters 4) (meters 2))
    (:z (meters -1) (meters 2))
    (:scale-x (meters 24) (meters 4))
    (:rot-x (degrees 22.5))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 0.0 128.0)
    (:b 0.0)
    (:a 0.0)
    (:omega (degrees 6765.7505))
    (:fade-a 0.5)
    (:timer (seconds 0.267))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow sp-cpuinfo-flag-21))
    (:userdata 10240.0)
    (:next-time (seconds 0.085))
    (:next-launcher 3930)
    )
  )

(defpart 3930
  :init-specs ((:fade-a -0.16666667))
  )

(defpart 3924
  :init-specs ((:texture (explosion-nebula effects))
    (:birth-func 'birth-func-texture-group)
    (:num 2.0 4.0)
    (:x (meters 0) (meters -2))
    (:y (meters 1))
    (:scale-x (meters 2.5) (meters 1.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 240.0 15.0)
    (:g 200.0 16.0)
    (:b 160.0 16.0)
    (:a 32.0 32.0)
    (:vel-x (meters 0.0033333334))
    (:vel-y (meters 0.033333335) (meters 0.033333335))
    (:rotvel-z (degrees -0.4) (degrees 0.8))
    (:fade-r -2.1333334 -1.0666667)
    (:fade-g -4.266667 -2.1333334)
    (:fade-b -5.3333335)
    (:accel-y (meters -0.001))
    (:timer (seconds 0.535) (seconds 0.265))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-21))
    (:userdata :data (new 'static 'boxed-array :type int32 40 1 0 #xc00000 #xc00000 #xc03300))
    (:next-time (seconds 0.1) (seconds 0.03))
    (:next-launcher 3931)
    (:conerot-x (degrees -8) 4 (degrees 4))
    (:conerot-y (degrees -180) (degrees 360))
    (:rotate-y (degrees 0) (degrees 87))
    (:conerot-radius (meters 0) (meters 0.5))
    )
  )

(defpart 3925
  :init-specs ((:texture (explosion-nebula effects))
    (:birth-func 'birth-func-texture-group)
    (:num 2.0 4.0)
    (:x (meters 0) (meters -2))
    (:y (meters 1))
    (:scale-x (meters 2.5) (meters 1.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 240.0 15.0)
    (:g 200.0 16.0)
    (:b 160.0 16.0)
    (:a 32.0 32.0)
    (:vel-x (meters 0.0033333334))
    (:vel-y (meters 0.033333335) (meters 0.033333335))
    (:rotvel-z (degrees -0.4) (degrees 0.8))
    (:fade-r -2.1333334 -1.0666667)
    (:fade-g -4.266667 -2.1333334)
    (:fade-b -5.3333335)
    (:accel-y (meters -0.001))
    (:timer (seconds 0.535) (seconds 0.265))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-21))
    (:userdata :data (new 'static 'boxed-array :type int32 40 1 0 #xc00000 #xc00000 #xc03300))
    (:next-time (seconds 0.1) (seconds 0.03))
    (:next-launcher 3931)
    (:conerot-x (degrees -8) 4 (degrees 4))
    (:conerot-y (degrees -180) (degrees 360))
    (:rotate-y (degrees 120) (degrees 90))
    (:conerot-radius (meters 0) (meters 0.5))
    )
  )

(defpart 3926
  :init-specs ((:texture (explosion-nebula effects))
    (:birth-func 'birth-func-texture-group)
    (:num 2.0 4.0)
    (:x (meters 0) (meters -2))
    (:y (meters 1))
    (:scale-x (meters 2.5) (meters 1.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 240.0 15.0)
    (:g 200.0 16.0)
    (:b 160.0 16.0)
    (:a 32.0 32.0)
    (:vel-x (meters 0.0033333334))
    (:vel-y (meters 0.033333335) (meters 0.033333335))
    (:rotvel-z (degrees -0.4) (degrees 0.8))
    (:fade-r -2.1333334 -1.0666667)
    (:fade-g -4.266667 -2.1333334)
    (:fade-b -5.3333335)
    (:accel-y (meters -0.001))
    (:timer (seconds 0.535) (seconds 0.265))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-21))
    (:userdata :data (new 'static 'boxed-array :type int32 40 1 0 #xc00000 #xc00000 #xc03300))
    (:next-time (seconds 0.1) (seconds 0.03))
    (:next-launcher 3931)
    (:conerot-x (degrees -8) 4 (degrees 4))
    (:conerot-y (degrees -180) (degrees 360))
    (:rotate-y (degrees 240) (degrees 110))
    (:conerot-radius (meters 0) (meters 0.5))
    )
  )

(defpart 3931
  :init-specs ((:b 0.0)
    (:fade-r 0.0)
    (:fade-g 0.0)
    (:fade-b 0.0)
    (:fade-a -0.4 -0.2)
    (:next-time (seconds 0.135) (seconds 0.03))
    (:next-launcher 3932)
    )
  )

(defpart 3932
  :init-specs ((:fade-r -0.125) (:fade-g 0.4) (:fade-b 0.4))
  )

(defpart 3923
  :init-specs ((:texture (explosion-nebula effects))
    (:birth-func 'birth-func-texture-group)
    (:num 1.0 2.0)
    (:x (meters 0) (meters -2))
    (:y (meters 1))
    (:scale-x (meters 2.5) (meters 1.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 32.0)
    (:g 128.0)
    (:b 128.0)
    (:a 16.0 16.0)
    (:vel-x (meters 0.0033333334))
    (:vel-y (meters 0.033333335) (meters 0.033333335))
    (:rotvel-z (degrees -0.4) (degrees 0.8))
    (:fade-a -0.16 -0.16)
    (:accel-y (meters -0.001))
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-4 sp-cpuinfo-flag-21))
    (:userdata :data (new 'static 'boxed-array :type int32 40 1 0 #xc00000 #xc00000 #xc03300))
    (:conerot-x (degrees -8) 4 (degrees 4))
    (:conerot-y (degrees -180) (degrees 360))
    (:rotate-y (degrees 0) (degrees 360))
    (:conerot-radius (meters 0) (meters 0.5))
    )
  )

(defpart 3927
  :init-specs ((:texture (bigpuff effects))
    (:num 0.2 0.2)
    (:x (meters -1.5))
    (:y (meters 1))
    (:scale-x (meters 4) (meters 3.5))
    (:rot-z (degrees 0) (degrees 360))
    (:scale-y :copy scale-x)
    (:r 196.0)
    (:g 128.0)
    (:b 128.0)
    (:a 16.0 8.0)
    (:vel-y (meters 0.06666667) (meters 0.06666667))
    (:scalevel-x (meters 0.024444444))
    (:rotvel-z (degrees -0.2) (degrees 0.4))
    (:scalevel-y :copy scalevel-x)
    (:fade-r -0.64)
    (:fade-g -0.32)
    (:fade-b -0.32)
    (:fade-a -0.017777778 -0.04)
    (:accel-y (meters -0.00006666667))
    (:friction 0.97)
    (:timer (seconds 2))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-21))
    (:next-time (seconds 0.5) (seconds 0.165))
    (:next-launcher 3933)
    (:rotate-y (degrees 0) (degrees 360))
    )
  )

(defpart 3933
  :init-specs ((:fade-r 0.0) (:fade-g 0.0) (:fade-b 0.0))
  )

(defpart 3928
  :init-specs ((:num 0.4)
    (:x (meters 0) (meters -2))
    (:rot-x 8)
    (:r 12288.0)
    (:g 9216.0)
    (:b 10240.0)
    (:vel-x (meters 0.0033333334) (meters 0.0033333334))
    (:vel-y (meters 0.1) (meters 0.06666667))
    (:friction 0.97)
    (:timer (seconds 1))
    (:flags (distort sp-cpuinfo-flag-21))
    (:next-time (seconds 0.5))
    (:next-launcher 3934)
    (:rotate-y (degrees 0) (degrees 360))
    )
  )

(defpart 3934
  :init-specs ((:fade-b -6.826667))
  )

(defpartgroup group-stadium-flamepot-waterspout
  :id 899
  :flags (unk-4)
  :bounds (static-bspherem 0 -2 0 24)
  :parts ((sp-item 3935 :fade-after (meters 100) :falloff-to (meters 100) :flags (bit7))
    (sp-item 3936 :fade-after (meters 200) :falloff-to (meters 200) :flags (bit7))
    (sp-item 3937 :fade-after (meters 100) :falloff-to (meters 100) :flags (bit7))
    )
  )

(defun check-drop-level-stadium-drop-userdata ((arg0 sparticle-system) (arg1 sparticle-cpuinfo) (arg2 matrix))
  "Ensures the fountains in the stadium don't go through the ground / the splash effect is rendered"
  (when (< (-> arg2 vector 0 y) (-> arg1 user-float))
    (let ((vec (new 'stack-no-clear 'vector)))
      (sp-kill-particle arg0 arg1)
      (set-vector! vec (-> arg2 vector 0 x) (-> arg1 user-float) (-> arg2 vector 0 z) 1.0)
      (launch-particles (-> *part-id-table* 3938) vec)
      (launch-particles (-> *part-id-table* 3939) vec)
      (launch-particles :system *sp-particle-system-3d* (-> *part-id-table* 3940) vec)
      )
    )
  (sparticle-motion-blur arg0 arg1 (the-as vector arg2))
  (none)
  )

(defpart 3936
  :init-specs ((:texture (lakedrop effects))
    (:num 1.0)
    (:x (meters -0.1) (meters 0.2))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.1))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.045))
    (:vel-z (meters 0.04) (meters 0.013333334))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 0.4))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata 42188.8 1228.8)
    (:func 'sparticle-motion-blur)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3941)
    (:launchrot-x (degrees -3.0000002) (degrees 6.0000005))
    (:launchrot-y (degrees -3.0000002) (degrees 6.0000005))
    )
  )

(defpart 3935
  :init-specs ((:texture (lakedrop effects))
    (:num 0.8)
    (:x (meters -0.1) (meters 0.2))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.1))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.045))
    (:vel-z (meters 0.04) (meters 0.013333334))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 1.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata 42188.8 1228.8)
    (:func 'check-drop-level-stadium-drop-userdata)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3941)
    (:launchrot-x (degrees -3.0000002) (degrees 6.0000005))
    (:launchrot-y (degrees -3.0000002) (degrees 6.0000005))
    )
  )

(defpart 3941
  :init-specs ((:r 255.0) (:g 255.0) (:b 255.0) (:next-time (seconds 0.017)) (:next-launcher 3942))
  )

(defpart 3942
  :init-specs ((:r 32.0 32.0) (:g 32.0 32.0) (:b 64.0 32.0) (:next-time (seconds 0) (seconds 0.747)) (:next-launcher 3941))
  )

(defpart 3937
  :init-specs ((:texture (lakedrop effects))
    (:num 0.0 0.3)
    (:x (meters -0.1) (meters 0.2))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.1))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.045))
    (:vel-z (meters 0.04) (meters 0.013333334))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 1.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata 42188.8 1228.8)
    (:func 'check-drop-level-stadium-drop-userdata)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3941)
    (:launchrot-x (degrees -30) (degrees 60))
    (:launchrot-y (degrees -30) (degrees 60))
    )
  )

(defpart 3938
  :init-specs ((:texture (lakedrop effects))
    (:num 1.0)
    (:scale-x (meters 0.15) (meters 0.05))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 64.0 32.0)
    (:omega (degrees 0.0675))
    (:vel-y (meters 0.01) (meters 0.026666667))
    (:fade-a -0.21333334)
    (:accel-y (meters -0.001) (meters -0.00016666666))
    (:friction 0.97)
    (:timer (seconds 0.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3))
    (:func 'sparticle-motion-blur)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3941)
    (:conerot-x (degrees 0) (degrees 60))
    (:conerot-y (degrees 0) (degrees 360))
    )
  )

(defpart 3939
  :init-specs ((:texture (bigpuff effects))
    (:num 1.0)
    (:x (meters -0.5) (meters 1))
    (:y (meters 0.25) (meters 0.25))
    (:z (meters -0.5) (meters 1))
    (:scale-x (meters 4) (meters 0.3))
    (:scale-y (meters 2) (meters 0.3))
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 0.0)
    (:vel-y (meters 0))
    (:scalevel-x (meters 0.006666667) (meters 0.006666667))
    (:rotvel-z (degrees -0.1) (degrees 0.2))
    (:scalevel-y :copy scalevel-x)
    (:fade-a 0.10666667)
    (:accel-y (meters 0) (meters 0.00006666667))
    (:timer (seconds 1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3))
    (:next-time (seconds 0.2) (seconds 0.047))
    (:next-launcher 3943)
    )
  )

(defpart 3943
  :init-specs ((:fade-a -0.10666667))
  )

(defpart 3940
  :init-specs ((:texture (water-ring effects))
    (:num 1.0)
    (:y (meters 0.02))
    (:scale-x (meters 2))
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 96.0 32.0)
    (:vel-y (meters 0) (meters -0.0033333334))
    (:scalevel-x (meters 0.026666667) (meters 0.013333334))
    (:scalevel-y (meters 0.026666667) (meters 0.013333334))
    (:fade-a -0.96 -0.96)
    (:timer (seconds 0.335))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12))
    (:rotate-y (degrees 0) (degrees 360))
    )
  )

(defpartgroup group-stadium-waterfall
  :id 900
  :flags (unk-4)
  :bounds (static-bspherem 0 -4 0 24)
  :parts ((sp-item 3944 :fade-after (meters 100) :falloff-to (meters 100) :flags (bit7))
    (sp-item 3945 :fade-after (meters 200) :falloff-to (meters 200) :flags (bit7))
    (sp-item 3946 :fade-after (meters 100) :falloff-to (meters 100) :flags (bit7))
    )
  )

(defpart 3945
  :init-specs ((:texture (lakedrop effects))
    (:num 2.0)
    (:x (meters -0.2) (meters 0.4))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.1))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.045))
    (:vel-z (meters 0.04) (meters 0.013333334))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 0.6))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata 42188.8 1228.8)
    (:func 'sparticle-motion-blur)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3941)
    (:launchrot-x (degrees -3.0000002) (degrees 6.0000005))
    (:launchrot-y (degrees -3.0000002) (degrees 6.0000005))
    )
  )

(defpart 3944
  :init-specs ((:texture (lakedrop effects))
    (:num 1.0)
    (:x (meters -0.2) (meters 0.4))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.2))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.05625))
    (:vel-z (meters 0.04) (meters 0.006666667))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 1.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata -13516.8 1228.8)
    (:func 'check-drop-level-stadium-drop-userdata)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3947)
    (:launchrot-x (degrees -3.0000002) (degrees 6.0000005))
    (:launchrot-y (degrees -3.0000002) (degrees 6.0000005))
    )
  )

(defpart 3946
  :init-specs ((:texture (lakedrop effects))
    (:num 0.0 0.5)
    (:x (meters -0.1) (meters 0.2))
    (:y (meters -0.1) (meters 0.2))
    (:z (meters -0.5))
    (:scale-x (meters 0.2) (meters 0.1))
    (:rot-x 4)
    (:scale-y :copy scale-x)
    (:r 32.0 32.0)
    (:g 32.0 32.0)
    (:b 64.0 32.0)
    (:a 128.0)
    (:omega (degrees 0.045))
    (:vel-z (meters 0.04) (meters 0.02))
    (:fade-a -0.14222223 -0.42666668)
    (:accel-y (meters -0.0033333334) (meters 0.00033333333))
    (:friction 0.98)
    (:timer (seconds 1.5))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 sp-cpuinfo-flag-12 use-global-acc))
    (:userdata -13516.8 1228.8)
    (:func 'check-drop-level-stadium-drop-userdata)
    (:next-time (seconds 0) (seconds 0.747))
    (:next-launcher 3947)
    (:launchrot-x (degrees -30) (degrees 60))
    (:launchrot-y (degrees -30) (degrees 60))
    )
  )

(defpartgroup group-stadium-quickflash-red-light
  :id 901
  :bounds (static-bspherem 0 0 0 16)
  :parts ((sp-item 3948 :fade-after (meters 160) :flags (bit6) :period (seconds 0.1) :length (seconds 0.017))
    (sp-item 3949 :fade-after (meters 220) :flags (bit6) :period (seconds 0.1) :length (seconds 0.017))
    )
  )

(defpart 3948
  :init-specs ((:texture (glow effects))
    (:num 1.0)
    (:scale-x (meters 1.2) (meters 0.1))
    (:rot-x (degrees 1.125))
    (:rot-z (degrees -17) (degrees 3.0000002))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 0.0 64.0)
    (:b 0.0)
    (:a 20.0 4.0)
    (:omega (degrees 3615.75))
    (:fade-a -0.6666667)
    (:timer (seconds 0.1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    )
  )

(defpart 3949
  :init-specs ((:texture (glow effects))
    (:num 1.0)
    (:scale-x (meters 4) (meters 0.1))
    (:rot-x (degrees 1.125))
    (:rot-z (degrees -17) (degrees 3.0000002))
    (:scale-y :copy scale-x)
    (:r 255.0)
    (:g 0.0 32.0)
    (:b 0.0)
    (:a 14.0)
    (:omega (degrees 4965.75))
    (:fade-a -0.46666667)
    (:timer (seconds 0.1))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 2048.0)
    )
  )

(defpartgroup group-defend-rift-rider-energy
  :id 902
  :bounds (static-bspherem 0 0 0 16)
  :parts ((sp-item 3950 :flags (bit6))
    (sp-item 3951 :flags (bit6))
    (sp-item 3952 :fade-after (meters 120) :falloff-to (meters 120))
    )
  )

(defpart 3952
  :init-specs ((:texture (hotdot effects))
    (:num 16.0)
    (:y (meters 1.5))
    (:scale-x (meters 0.125) (meters 0.05))
    (:scale-y :copy scale-x)
    (:r 0.0 196.0)
    (:g 255.0)
    (:b :copy r)
    (:a 255.0)
    (:fade-a -6.375)
    (:timer (seconds 0.267))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3))
    (:conerot-x (degrees 0) (degrees 3600))
    (:conerot-y (degrees 0) (degrees 3600))
    (:conerot-z (degrees 0) (degrees 3600))
    (:conerot-radius (meters 4.1))
    )
  )

(defpart 3950
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:y (meters 1.5))
    (:scale-x (meters 12))
    (:rot-x (degrees 45))
    (:rot-z (degrees -17))
    (:scale-y :copy scale-x)
    (:r 0.0 32.0)
    (:g 255.0)
    (:b 0.0)
    (:a 16.0 4.0)
    (:omega (degrees 5415.75))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 24576.0)
    )
  )

(defpart 3951
  :init-specs ((:texture (peacemaker-plasma effects))
    (:num 1.0)
    (:y (meters 1.5))
    (:scale-x (meters 8.8))
    (:scale-y :copy scale-x)
    (:r 0.0 32.0)
    (:g 255.0)
    (:b 0.0)
    (:a 128.0 4.0)
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3))
    )
  )

(defpartgroup group-defend-stadium-samos-energy
  :id 903
  :bounds (static-bspherem 0 0 0 16)
  :parts ((sp-item 3953 :fade-after (meters 120) :falloff-to (meters 120))
    (sp-item 3954 :flags (bit6))
    (sp-item 3955 :flags (bit6))
    )
  )

(defpart 3955
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:scale-x (meters 6))
    (:rot-x (degrees 4.5))
    (:rot-z (degrees -17))
    (:scale-y :copy scale-x)
    (:r 0.0 32.0)
    (:g 255.0)
    (:b 0.0)
    (:a 12.0 12.0)
    (:omega (degrees 2715.75))
    (:timer (seconds 0.017))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 819.2)
    )
  )

(defpart 3954
  :init-specs ((:texture (glow-soft effects))
    (:num 3.0)
    (:scale-x (meters 2.5) (meters 0.1))
    (:rot-x (degrees 2.25))
    (:rot-z (degrees -17))
    (:scale-y :copy scale-x)
    (:r 128.0 64.0)
    (:g 255.0)
    (:b 0.0)
    (:a 2.0 2.0)
    (:omega (degrees 2715.75))
    (:timer (seconds 0.05))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3 glow))
    (:userdata 819.2)
    (:conerot-x (degrees 0) (degrees 3600))
    (:conerot-y (degrees 0) (degrees 3600))
    (:conerot-z (degrees 0) (degrees 3600))
    (:rotate-y (degrees 0) (degrees 3600))
    (:conerot-radius (meters -0.2) (meters 0.6))
    )
  )

(defpart 3953
  :init-specs ((:texture (glow-soft effects))
    (:num 1.0)
    (:scale-x (meters 0.075) (meters 0.025))
    (:scale-y :copy scale-x)
    (:r 0.0 64.0)
    (:g 255.0)
    (:b 0.0)
    (:a 64.0 64.0)
    (:vel-y (meters 0.053333335) (meters 0.013333334))
    (:fade-a -0.4)
    (:friction 0.94 0.02)
    (:timer (seconds 0.267))
    (:flags (sp-cpuinfo-flag-2 sp-cpuinfo-flag-3))
    (:next-time (seconds 0.017) (seconds 0.13))
    (:next-launcher 3956)
    (:conerot-x (degrees 0) (degrees 3600))
    (:conerot-y (degrees 0) (degrees 3600))
    (:conerot-z (degrees 0) (degrees 3600))
    (:rotate-y (degrees 0) (degrees 3600))
    )
  )

(defpart 3956
  :init-specs ((:r 255.0) (:g 255.0) (:b 255.0) (:a 255.0) (:next-time (seconds 0.035)) (:next-launcher 3957))
  )

(defpart 3957
  :init-specs ((:r 0.0 64.0)
    (:g 255.0)
    (:b 0.0)
    (:a 64.0 64.0)
    (:fade-a -3.2)
    (:next-time (seconds 0.017) (seconds 0.247))
    (:next-launcher 3958)
    )
  )
