mirror of
https://github.com/open-goal/jak-project
synced 2026-08-09 18:58:50 -04:00
dd959d0d0d
* decomp: finish `babak` - :code is called in `(code nav-enemy-patrol babak)` * decomp: almost finish `process-taskable` * blocked: mistycannon / pelican * decomp: finish `babak-with-cannon` write a script to fix gsrc * decomp: finish `process-taskable` * decomp: finish `flutflut` and `yakow` * decomp: finish `fishermans-boat` * blocked: state decomp `training-obs` * decomp: finish `muse` * decomp: finish `bonelurker` * blocked: state decomp in `quicksandlurker`| `balloonlurker` * decomp: finish `assistant-village2` * scripts: script to help updating goal_src * starting to update goal_src * tests: update ref tests * src: more src updating * src: waiting on `process-taskable` and `muse` * blocked: `citb-plat` state decomp * decomp: finish `square-platform` * blocked: `orbit-plat` due to overlays + static data * decomp: finish `qbert-plat` * blocked: almost finish `misty-conveyor`, sparticle-callback * blocked: jungle-mirrors * blocked: state decomp in `swamp-blimp` * decomp: finish `swamp-bat` * decomp: finish `swamp-rat` * decomp: finish `swamp-rat-nest` * blocked: state decomp `kermit` * decomp: finish `cavecrystal-light` * decomp: finish `spiderwebs` * blocked: state decomp `dark-crystal` * decomp: finish `baby-spider` * decomp: finish `mother-spider-h` * decomp: finish `mother-spider-proj` * blocked: state decomp in `gnawer` * blocked: state decomp in `driller-lurker` * blocked: `sun-exit-chamber` breaks when adding handle cast * decomp: finish `sunken-water` * blocked: `target-tube` ShortCircuitElement::push_to_stack * decomp: finish `sunken-fish` * blocked: `minecart` decomp crash when adding stack cast * decomp: finish `assistant-village3` * decomp: finish `sage-village3` * blocked: `cave-trap` done but ran into `go` issue * blocked: `spider-egg` state decomp * decomp: finish `target-snowball` * blocked/stuck: `target-ice` decomp issue around cpad * pausing: ice-cube has some weird collide-shape-prim handling * blocked: `snow-ball` state decomp * blocked: `snow-bumper` state decomp * decomp: finish `snow-ram-h` * decomp: finish `yeti` * decomp: finish `assistant-lavatube` * re-enable the float cast log * decomp: updating to new sparticle definitions * decomp: address feedback up to `swamp-rat-nest` * address remaining feedback * all-types: move the `pointer` def * add back temporary `hud-hidden?`
996 lines
27 KiB
Common Lisp
Vendored
996 lines
27 KiB
Common Lisp
Vendored
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type explorer
|
|
(deftype explorer (process-taskable)
|
|
()
|
|
:heap-base #x110
|
|
:method-count-assert 53
|
|
:size-assert #x17c
|
|
:flag-assert #x350110017c
|
|
)
|
|
|
|
;; definition for method 3 of type explorer
|
|
(defmethod inspect explorer ((obj explorer))
|
|
(let ((t9-0 (method-of-type process-taskable inspect)))
|
|
(t9-0 obj)
|
|
)
|
|
obj
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
(let
|
|
((v1-1
|
|
(new 'static 'skeleton-group
|
|
:art-group-name "explorer"
|
|
:bounds (new 'static 'vector :w 10240.0)
|
|
:version #x6
|
|
:shadow 2
|
|
)
|
|
)
|
|
)
|
|
(set! (-> v1-1 jgeo) 0)
|
|
(set! (-> v1-1 janim) 3)
|
|
(set! (-> v1-1 mgeo 0) (the-as uint 1))
|
|
(set! (-> v1-1 lod-dist 0) 4095996000.0)
|
|
(set! *explorer-sg* v1-1)
|
|
)
|
|
|
|
;; definition for method 52 of type explorer
|
|
;; INFO: Return type mismatch int vs none.
|
|
(defmethod dummy-52 explorer ((obj explorer))
|
|
(let ((v1-1 (-> obj draw shadow-ctrl)))
|
|
(when v1-1
|
|
(let ((f0-0 (-> obj root-override trans y)))
|
|
(let ((a0-2 v1-1))
|
|
(set! (-> a0-2 settings bot-plane w) (- (+ -4096.0 f0-0)))
|
|
)
|
|
0
|
|
(let ((a0-4 v1-1))
|
|
(set! (-> a0-4 settings top-plane w) (- (+ 4096.0 f0-0)))
|
|
)
|
|
)
|
|
0
|
|
(set! (-> v1-1 settings flags) (logand -9 (-> v1-1 settings flags)))
|
|
)
|
|
)
|
|
(none)
|
|
)
|
|
|
|
;; definition for method 48 of type explorer
|
|
(defmethod draw-npc-shadow explorer ((obj explorer))
|
|
(-> obj draw shadow-ctrl)
|
|
(cond
|
|
((and
|
|
(-> obj draw shadow)
|
|
(zero? (-> obj draw cur-lod))
|
|
(logtest? (-> obj draw status) 8)
|
|
)
|
|
(let ((v1-9 (-> obj draw shadow-ctrl)))
|
|
(set! (-> v1-9 settings flags) (logand -33 (-> v1-9 settings flags)))
|
|
)
|
|
0
|
|
(dummy-14 (-> obj draw shadow-ctrl))
|
|
)
|
|
(else
|
|
(let ((v1-14 (-> obj draw shadow-ctrl)))
|
|
(logior! (-> v1-14 settings flags) 32)
|
|
)
|
|
0
|
|
)
|
|
)
|
|
(none)
|
|
)
|
|
|
|
;; definition for method 32 of type explorer
|
|
(defmethod play-anim! explorer ((obj explorer) (arg0 symbol))
|
|
(with-pp
|
|
(set! (-> obj talk-message) (the-as uint 260))
|
|
(case (current-status (-> obj tasks))
|
|
((2 3)
|
|
(if arg0
|
|
(close-status! (-> obj tasks) (task-status need-introduction))
|
|
)
|
|
(new 'static 'spool-anim
|
|
:name "explorer-introduction"
|
|
:index 9
|
|
:parts 11
|
|
:command-list
|
|
'(
|
|
((the binteger 418)
|
|
joint
|
|
"cameraB"
|
|
)
|
|
((the binteger 695)
|
|
shadow
|
|
self
|
|
#f
|
|
)
|
|
((the binteger 695)
|
|
joint
|
|
"camera"
|
|
)
|
|
((the binteger 838)
|
|
shadow
|
|
self
|
|
#t
|
|
)
|
|
((the binteger 838) joint "cameraB")
|
|
)
|
|
)
|
|
)
|
|
((5)
|
|
(set! (-> obj skippable) #t)
|
|
(cond
|
|
((zero? (get-reminder (-> obj tasks) 0))
|
|
(if arg0
|
|
(save-reminder (-> obj tasks) 1 0)
|
|
)
|
|
(new 'static 'spool-anim
|
|
:name "explorer-reminder-1"
|
|
:index 10
|
|
:parts 5
|
|
:command-list
|
|
'(
|
|
(0
|
|
send-event
|
|
target
|
|
draw
|
|
#f
|
|
)
|
|
((the binteger 148)
|
|
send-event
|
|
target
|
|
draw
|
|
#t
|
|
)
|
|
((the binteger 148)
|
|
joint
|
|
"cameraB"
|
|
)
|
|
((the binteger 390)
|
|
send-event
|
|
target
|
|
draw
|
|
#f
|
|
)
|
|
((the binteger 390)
|
|
joint
|
|
"camera"
|
|
)
|
|
((the binteger 505) send-event target draw #t)
|
|
)
|
|
)
|
|
)
|
|
(else
|
|
(if arg0
|
|
(save-reminder (-> obj tasks) 0 0)
|
|
)
|
|
(new 'static 'spool-anim
|
|
:name "explorer-reminder-2"
|
|
:index 11
|
|
:parts 3
|
|
:command-list '()
|
|
)
|
|
)
|
|
)
|
|
)
|
|
((6)
|
|
(cond
|
|
(arg0
|
|
(set!
|
|
(-> obj cell-for-task)
|
|
(the-as game-task (current-task (-> obj tasks)))
|
|
)
|
|
(close-current! (-> obj tasks))
|
|
(let ((a1-7 (new 'stack-no-clear 'event-message-block)))
|
|
(set! (-> a1-7 from) pp)
|
|
(set! (-> a1-7 num-params) 2)
|
|
(set! (-> a1-7 message) 'get-pickup)
|
|
(set! (-> a1-7 param 0) (the-as uint 5))
|
|
(set!
|
|
(-> a1-7 param 1)
|
|
(the-as uint (- (-> *GAME-bank* money-task-inc)))
|
|
)
|
|
(send-event-function *target* a1-7)
|
|
)
|
|
)
|
|
(else
|
|
(set! (-> obj will-talk) #t)
|
|
(set! (-> obj talk-message) (the-as uint 282))
|
|
)
|
|
)
|
|
(new 'static 'spool-anim
|
|
:name "explorer-resolution"
|
|
:index 12
|
|
:parts 5
|
|
:command-list
|
|
'(
|
|
((the binteger 167) joint "cameraB") ((the binteger 310) joint "camera")
|
|
)
|
|
)
|
|
)
|
|
(else
|
|
(if arg0
|
|
(format
|
|
0
|
|
"ERROR: <GMJ>: ~S playing anim for task status ~S~%"
|
|
(-> obj name)
|
|
(task-status->string
|
|
(the-as task-status (current-status (-> obj tasks)))
|
|
)
|
|
)
|
|
)
|
|
(-> obj draw art-group data 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
;; definition for method 31 of type explorer
|
|
(defmethod get-art-elem explorer ((obj explorer))
|
|
(-> obj draw art-group data 3)
|
|
)
|
|
|
|
;; definition for method 43 of type explorer
|
|
(defmethod TODO-RENAME-43 explorer ((obj explorer))
|
|
(when
|
|
(TODO-RENAME-10
|
|
(-> obj ambient)
|
|
(new 'stack-no-clear 'vector)
|
|
9000
|
|
122880.0
|
|
obj
|
|
)
|
|
(let* ((v1-3 (/ (the-as int (rand-uint31-gen *random-generator*)) 256))
|
|
(v1-4 (the-as number (logior #x3f800000 v1-3)))
|
|
(f0-2 (+ -1.0 (the-as float v1-4)))
|
|
)
|
|
(cond
|
|
((< 0.85714287 f0-2)
|
|
(dummy-11 (-> obj ambient) "EXP-AM05" #f (-> obj root-override trans))
|
|
)
|
|
((< 0.71428573 f0-2)
|
|
(if
|
|
(not
|
|
(closed?
|
|
(-> obj tasks)
|
|
(game-task village1-uncle-money)
|
|
(task-status need-reminder)
|
|
)
|
|
)
|
|
(dummy-11 (-> obj ambient) "EXP-LO02" #f (-> obj root-override trans))
|
|
)
|
|
)
|
|
((< 0.5714286 f0-2)
|
|
(dummy-11 (-> obj ambient) "EXP-AM04" #f (-> obj root-override trans))
|
|
)
|
|
((< 0.42857143 f0-2)
|
|
(dummy-11 (-> obj ambient) "EXP-AM03" #f (-> obj root-override trans))
|
|
)
|
|
((< 0.2857143 f0-2)
|
|
(dummy-11 (-> obj ambient) "EXP-AM02" #f (-> obj root-override trans))
|
|
)
|
|
((< 0.14285715 f0-2)
|
|
(if
|
|
(not
|
|
(closed?
|
|
(-> obj tasks)
|
|
(game-task village1-uncle-money)
|
|
(task-status need-reminder)
|
|
)
|
|
)
|
|
(dummy-11 (-> obj ambient) "EXP-AM01" #f (-> obj root-override trans))
|
|
)
|
|
)
|
|
(else
|
|
(dummy-11 (-> obj ambient) "EXP-LO1A" #f (-> obj root-override trans))
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
;; definition for method 47 of type explorer
|
|
;; INFO: Return type mismatch basic vs symbol.
|
|
(defmethod target-above-threshold? explorer ((obj explorer))
|
|
(the-as
|
|
symbol
|
|
(and
|
|
*target*
|
|
(< (-> (target-pos 0) x) -202752.0)
|
|
(< 98304.0 (-> (target-pos 0) z))
|
|
)
|
|
)
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
(defstate idle (explorer)
|
|
:virtual #t
|
|
:code
|
|
(behavior ()
|
|
(if (!= (if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
(-> self draw art-group data 3)
|
|
)
|
|
(ja-channel-push! 1 60)
|
|
)
|
|
(while #t
|
|
(TODO-RENAME-43 self)
|
|
(let ((v1-9 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> v1-9 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 3))
|
|
)
|
|
)
|
|
(let* ((f30-0 2.0)
|
|
(v1-11 (/ (the-as int (rand-uint31-gen *random-generator*)) 256))
|
|
(v1-12 (the-as number (logior #x3f800000 v1-11)))
|
|
)
|
|
(countdown (gp-0 (+ (the int (* f30-0 (+ -1.0 (the-as float v1-12)))) 1))
|
|
(let ((a0-12 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-12 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 3))
|
|
)
|
|
(set!
|
|
(-> a0-12 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 3))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-12 param 1) 1.0)
|
|
(set! (-> a0-12 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-12
|
|
(the-as art-joint-anim (-> self draw art-group data 3))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-13 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-13 param 0)
|
|
(the float (+ (-> a0-13 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-13 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-13
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(let* ((v1-40 (/ (the-as int (rand-uint31-gen *random-generator*)) 256))
|
|
(v1-41 (the-as number (logior #x3f800000 v1-40)))
|
|
)
|
|
(cond
|
|
((< (+ -1.0 (the-as float v1-41)) 0.5)
|
|
(let ((a0-17 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-17 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
)
|
|
(set!
|
|
(-> a0-17 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-17 param 1) 1.0)
|
|
(set! (-> a0-17 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-17
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-18 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-18 param 0)
|
|
(the float (+ (-> a0-18 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-18 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-18
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-1 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-0 (-> *display* base-frame-counter))
|
|
(f30-1 300.0)
|
|
(f28-0 0.5)
|
|
(f26-0 0.5)
|
|
(v1-68
|
|
(/ (the-as int (rand-uint31-gen *random-generator*)) 256)
|
|
)
|
|
(v1-69 (the-as number (logior #x3f800000 v1-68)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-0
|
|
(the
|
|
int
|
|
(* f30-1 (+ f28-0 (* f26-0 (+ -1.0 (the-as float v1-69)))))
|
|
)
|
|
)
|
|
gp-1
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let* ((v1-75 (/ (the-as int (rand-uint31-gen *random-generator*)) 256))
|
|
(v1-76 (the-as number (logior #x3f800000 v1-75)))
|
|
)
|
|
(when (< (+ -1.0 (the-as float v1-76)) 0.75)
|
|
(let ((a0-24 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-24 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
)
|
|
(set!
|
|
(-> a0-24 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-24 param 1) 1.0)
|
|
(set! (-> a0-24 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-24
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-25 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-25 param 0)
|
|
(the float (+ (-> a0-25 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-25 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-25
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-2 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-1 (-> *display* base-frame-counter))
|
|
(f30-2 300.0)
|
|
(f28-1 0.5)
|
|
(f26-1 0.5)
|
|
(v1-104
|
|
(/
|
|
(the-as int (rand-uint31-gen *random-generator*))
|
|
256
|
|
)
|
|
)
|
|
(v1-105 (the-as number (logior #x3f800000 v1-104)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-1
|
|
(the
|
|
int
|
|
(*
|
|
f30-2
|
|
(+ f28-1 (* f26-1 (+ -1.0 (the-as float v1-105))))
|
|
)
|
|
)
|
|
)
|
|
gp-2
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let ((a0-29 (-> self skel root-channel 0)))
|
|
(set! (-> a0-29 frame-group) (if (> (-> self skel active-channels) 0)
|
|
(->
|
|
self
|
|
skel
|
|
root-channel
|
|
0
|
|
frame-group
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-29 param 0) 0.0)
|
|
(set! (-> a0-29 param 1) 1.0)
|
|
(set!
|
|
(-> a0-29 frame-num)
|
|
(the float (+ (-> (if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(joint-control-channel-group!
|
|
a0-29
|
|
(if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-30 (-> self skel root-channel 0)))
|
|
(set! (-> a0-30 param 0) 0.0)
|
|
(set! (-> a0-30 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-30
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let*
|
|
((v1-135 (/ (the-as int (rand-uint31-gen *random-generator*)) 256))
|
|
(v1-136 (the-as number (logior #x3f800000 v1-135)))
|
|
)
|
|
(when (< (+ -1.0 (the-as float v1-136)) 0.5)
|
|
(let ((a0-34 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-34 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
)
|
|
(set!
|
|
(-> a0-34 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-34 param 1) 1.0)
|
|
(set! (-> a0-34 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-34
|
|
(the-as art-joint-anim (-> self draw art-group data 5))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-35 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-35 param 0)
|
|
(the float (+ (-> a0-35 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-35 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-35
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-3 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-2 (-> *display* base-frame-counter))
|
|
(f30-3 300.0)
|
|
(f28-2 0.5)
|
|
(f26-2 0.5)
|
|
(v1-164
|
|
(/
|
|
(the-as int (rand-uint31-gen *random-generator*))
|
|
256
|
|
)
|
|
)
|
|
(v1-165 (the-as number (logior #x3f800000 v1-164)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-2
|
|
(the
|
|
int
|
|
(*
|
|
f30-3
|
|
(+ f28-2 (* f26-2 (+ -1.0 (the-as float v1-165))))
|
|
)
|
|
)
|
|
)
|
|
gp-3
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let ((a0-39 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-39 frame-group)
|
|
(if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
)
|
|
(set! (-> a0-39 param 0) 0.0)
|
|
(set! (-> a0-39 param 1) 1.0)
|
|
(set!
|
|
(-> a0-39 frame-num)
|
|
(the float (+ (-> (if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(joint-control-channel-group!
|
|
a0-39
|
|
(if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-40 (-> self skel root-channel 0)))
|
|
(set! (-> a0-40 param 0) 0.0)
|
|
(set! (-> a0-40 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-40
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(let ((a0-42 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-42 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
)
|
|
(set! (-> a0-42 param 0) 0.0)
|
|
(set! (-> a0-42 param 1) 1.0)
|
|
(set!
|
|
(-> a0-42 frame-num)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(joint-control-channel-group!
|
|
a0-42
|
|
(the-as art-joint-anim (-> self draw art-group data 4))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-43 (-> self skel root-channel 0)))
|
|
(set! (-> a0-43 param 0) 0.0)
|
|
(set! (-> a0-43 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-43
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(else
|
|
(let ((a0-45 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-45 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 6))
|
|
)
|
|
(set!
|
|
(-> a0-45 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 6))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-45 param 1) 1.0)
|
|
(set! (-> a0-45 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-45
|
|
(the-as art-joint-anim (-> self draw art-group data 6))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-46 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-46 param 0)
|
|
(the float (+ (-> a0-46 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-46 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-46
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-4 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-3 (-> *display* base-frame-counter))
|
|
(f30-4 300.0)
|
|
(f28-3 0.5)
|
|
(f26-3 0.5)
|
|
(v1-237
|
|
(/ (the-as int (rand-uint31-gen *random-generator*)) 256)
|
|
)
|
|
(v1-238 (the-as number (logior #x3f800000 v1-237)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-3
|
|
(the
|
|
int
|
|
(* f30-4 (+ f28-3 (* f26-3 (+ -1.0 (the-as float v1-238)))))
|
|
)
|
|
)
|
|
gp-4
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let ((a0-50 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-50 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 7))
|
|
)
|
|
(set!
|
|
(-> a0-50 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 7))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-50 param 1) 1.0)
|
|
(set! (-> a0-50 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-50
|
|
(the-as art-joint-anim (-> self draw art-group data 7))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-51 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-51 param 0)
|
|
(the float (+ (-> a0-51 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-51 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-51
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-5 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-4 (-> *display* base-frame-counter))
|
|
(f30-5 300.0)
|
|
(f28-4 0.5)
|
|
(f26-4 0.5)
|
|
(v1-268
|
|
(/ (the-as int (rand-uint31-gen *random-generator*)) 256)
|
|
)
|
|
(v1-269 (the-as number (logior #x3f800000 v1-268)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-4
|
|
(the
|
|
int
|
|
(* f30-5 (+ f28-4 (* f26-4 (+ -1.0 (the-as float v1-269)))))
|
|
)
|
|
)
|
|
gp-5
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let ((a0-55 (-> self skel root-channel 0)))
|
|
(set! (-> a0-55 frame-group) (if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
)
|
|
(set! (-> a0-55 param 0) 0.0)
|
|
(set! (-> a0-55 param 1) 1.0)
|
|
(set!
|
|
(-> a0-55 frame-num)
|
|
(the float (+ (-> (if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(joint-control-channel-group!
|
|
a0-55
|
|
(if (> (-> self skel active-channels) 0)
|
|
(-> self skel root-channel 0 frame-group)
|
|
)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-56 (-> self skel root-channel 0)))
|
|
(set! (-> a0-56 param 0) 0.0)
|
|
(set! (-> a0-56 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-56
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
(let ((gp-6 (-> *display* base-frame-counter)))
|
|
(while (let* ((s5-5 (-> *display* base-frame-counter))
|
|
(f30-6 300.0)
|
|
(f28-5 0.5)
|
|
(f26-5 0.5)
|
|
(v1-301
|
|
(/ (the-as int (rand-uint31-gen *random-generator*)) 256)
|
|
)
|
|
(v1-302 (the-as number (logior #x3f800000 v1-301)))
|
|
)
|
|
(<
|
|
(-
|
|
s5-5
|
|
(the
|
|
int
|
|
(* f30-6 (+ f28-5 (* f26-5 (+ -1.0 (the-as float v1-302)))))
|
|
)
|
|
)
|
|
gp-6
|
|
)
|
|
)
|
|
(suspend)
|
|
)
|
|
)
|
|
(let ((a0-60 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-60 frame-group)
|
|
(the-as art-joint-anim (-> self draw art-group data 8))
|
|
)
|
|
(set!
|
|
(-> a0-60 param 0)
|
|
(the
|
|
float
|
|
(+
|
|
(->
|
|
(the-as art-joint-anim (-> self draw art-group data 8))
|
|
data
|
|
0
|
|
length
|
|
)
|
|
-1
|
|
)
|
|
)
|
|
)
|
|
(set! (-> a0-60 param 1) 1.0)
|
|
(set! (-> a0-60 frame-num) 0.0)
|
|
(joint-control-channel-group!
|
|
a0-60
|
|
(the-as art-joint-anim (-> self draw art-group data 8))
|
|
num-func-seek!
|
|
)
|
|
)
|
|
(until (ja-done? 0)
|
|
(suspend)
|
|
(let ((a0-61 (-> self skel root-channel 0)))
|
|
(set!
|
|
(-> a0-61 param 0)
|
|
(the float (+ (-> a0-61 frame-group data 0 length) -1))
|
|
)
|
|
(set! (-> a0-61 param 1) 1.0)
|
|
(joint-control-channel-group-eval!
|
|
a0-61
|
|
(the-as art-joint-anim #f)
|
|
num-func-seek!
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(none)
|
|
)
|
|
)
|
|
|
|
;; definition for method 11 of type explorer
|
|
(defmethod copy-defaults! explorer ((obj explorer) (arg0 res-lump))
|
|
(dummy-40 obj arg0 *explorer-sg* 3 42 (new 'static 'vector :w 4096.0) 5)
|
|
(set! (-> obj tasks) (get-task-control (game-task village1-uncle-money)))
|
|
(set! (-> obj sound-flava) (the-as uint 10))
|
|
(set! (-> obj draw light-index) (the-as uint 5))
|
|
(dummy-42 obj)
|
|
(none)
|
|
)
|