(include "sci.sh")
(use "Main")
(use "n958")
(use "Cycle")
(use "Sounds")
(use "View")
(use "Obj")
(script 1045)



(instance public rm1045 of Rm
    (properties
        picture 127
    )

    (method (init)
        proc958_0(128 695 688)
        proc958_0(132 160 656)
        proc0_6(0)
        (wd40:init())
        (wd40Parts:init())
        (super:init())
        (send gRoom:setScript(sWD40Freezes))
    )

)
(instance sWD40Freezes of Script
    (properties)

    (method (changeState newState)
        (switch (= state newState)
            (case 0
                (= seconds 2  )
            )
            (case 1
                ((wd40Parts:setCycle(End self)) (send gSq5Music2:
                    number(160)
                    setLoop(1)
                    play()
                )
  )
            )
            (case 2
                ((wd40Parts:
                    setLoop(2)
                    cel(0)
                    x(132)
                    y(126)
                    setCycle(End self)
                )
  )
            )
            (case 3
                ((wd40Parts:
                    setLoop(3)
                    cel(0)
                    setCycle(End self)
                )
  )
            )
            (case 4
                ((wd40:
                    view(695)
                    loop(0)
                    cel(0)
                    x(111)
                    y(163)
                )
 (wd40Parts:dispose()) (leftShot:init()) (rightShot:init()) = ticks 20  )
            )
            (case 5
                ((wd40:setCel(1)) (leftShot:
                    setLoop(1)
                    x(137)
                    y(108)
                )
 (rightShot:
                    setLoop(1)
                    x(137)
                    y(108)
                )
 (send gSq5Music2:
                    number(656)
                    setLoop(1)
                    play()
                )
 = ticks 20  )
            )
            (case 6
                ((wd40:setCel(2)) (leftShot:
                    setLoop(2)
                    x(161)
                    y(109)
                )
 (rightShot:
                    setLoop(2)
                    x(161)
                    y(109)
                )
 (send gSq5Music2:
                    number(656)
                    setLoop(1)
                    play()
                )
 = ticks 20  )
            )
            (case 7
                ((wd40:setCel(3)) (leftShot:
                    setLoop(3)
                    x(176)
                    y(116)
                )
 (rightShot:
                    setLoop(3)
                    x(176)
                    y(116)
                )
 (send gSq5Music2:
                    number(656)
                    setLoop(1)
                    play()
                )
 = ticks 20  )
            )
            (case 8
                ((wd40:setCel(4)) (leftShot:
                    setLoop(4)
                    x(191)
                    y(123)
                )
 (rightShot:
                    setLoop(4)
                    x(191)
                    y(123)
                )
 (send gSq5Music2:
                    number(656)
                    setLoop(1)
                    play()
                )
 = ticks 20  )
            )
            (case 9
                ((send gSq5Music2:stop()) (send gRoom:newRoom(1040)) (self:dispose()) )
            )
        )
    )

)
(instance wd40 of Actor
    (properties
        x 111
        y 163
        view 695
        loop rm1045
        priority 14
        signal 16400
    )
)
(instance wd40Parts of Prop
    (properties
        x 132
        y 126
        view 695
        loop 1
        priority 15
        signal 16400
        cycleSpeed 10
    )
)
(instance leftShot of View
    (properties
        x 112
        y 116
        view 6951
        priority 15
        signal 16400
    )
)
(instance rightShot of View
    (properties
        x 112
        y 116
        view 6951
        cel 1
        priority 15
        signal 16400
    )
)
