mirror of
https://github.com/open-goal/jak-project
synced 2026-08-16 13:17:34 -04:00
111af1ec19
* decomp: finish `sidekick` * decomp: got a lot of `target` done * decompiler: Add support for non power of 2 offsets for inline arr access * decomp: finish `target` mostly * decomp: finish `water` * decomp: finished `robotboss-weapon` * decomp: finish `robotboss-misc` * decomp: finish the majority of `robotboss` * blocked: `racer` has an issue around entering a state * blocked: `target-racer` done mostly, but NYI case in one function * blocked: `racer-states` mostly finished, but bitfield issue * blocked: `billy` on state decomping * blocked: `bully` on state decomping * waiting: `rolling-lightning-mole` waiting on navigate for 2 funcs * blocked: `rolling-robber` finished but `s6-1` issue * blocked: `ogreboss` uint64's for types cant label load em! * blocked: `mother-spider` state decompilation * half-done `target-flut` * blocked: `target-flut` some sort of new bitfield state * some improvements in `racer-states` with my new-found knowledge * progress: started on `target-death` * blocked: `target-death` handle casts * decomp: finish `collide-reaction-racer` * blocked: `target-handler` handler forced to return `none` * decomp: 99% of `target2` finished * decomp: finish `target2` * gsrc: update * update post merge * address feedback * scripts: add script to detect decomp issues * fix wide-spread `collide-shape` method missing arg * some small things i changed from master * address feedback * fix typeconsistency issue
128 lines
5.6 KiB
Common Lisp
Vendored
Generated
128 lines
5.6 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type target
|
|
(deftype target (process-drawable)
|
|
((self-override target :offset 28)
|
|
(control control-info :offset 112)
|
|
(fact-info-target fact-info-target :offset 144)
|
|
(skel2 basic :offset-assert 176)
|
|
(racer racer-info :offset-assert 180)
|
|
(game game-info :offset-assert 184)
|
|
(neck joint-mod :offset-assert 188)
|
|
(state-hook-time uint64 :offset-assert 192)
|
|
(state-hook (function none :behavior target) :offset-assert 200)
|
|
(cam-user-mode symbol :offset-assert 204)
|
|
(sidekick (pointer sidekick) :offset-assert 208)
|
|
(manipy (pointer manipy) :offset-assert 212)
|
|
(attack-info attack-info :inline :offset-assert 224)
|
|
(attack-info-rec attack-info :inline :offset-assert 336)
|
|
(anim-seed uint64 :offset-assert 440)
|
|
(alt-cam-pos vector :inline :offset-assert 448)
|
|
(snowball snowball-info :offset-assert 464)
|
|
(tube tube-info :offset-assert 468)
|
|
(flut flut-info :offset-assert 472)
|
|
(current-level level :offset-assert 476)
|
|
(saved-pos transformq :inline :offset-assert 480)
|
|
(saved-owner uint64 :offset-assert 528)
|
|
(alt-neck-pos vector :inline :offset-assert 544)
|
|
(fp-hud handle :offset-assert 560)
|
|
(no-load-wait uint64 :offset-assert 568)
|
|
(no-look-around-wait uint64 :offset-assert 576)
|
|
)
|
|
:heap-base #x1e0
|
|
:method-count-assert 21
|
|
:size-assert #x248
|
|
:flag-assert #x1501e00248
|
|
(:methods
|
|
(dummy-20 (_type_ collide-cache) object 20)
|
|
)
|
|
(:states
|
|
(target-clone-anim handle)
|
|
(target-death symbol)
|
|
(target-hit-ground symbol)
|
|
(target-racing-bounce float float symbol)
|
|
(target-racing-clone-anim handle)
|
|
(target-racing-death symbol)
|
|
target-racing-falling
|
|
(target-racing-get-off handle)
|
|
(target-racing-get-off-hit-ground symbol)
|
|
(target-racing-get-off-jump handle)
|
|
(target-racing-get-on handle)
|
|
target-racing-grab
|
|
(target-racing-hit handle attack-info)
|
|
(target-racing-jump float float symbol)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type target
|
|
(defmethod inspect target ((obj target))
|
|
(let ((t9-0 (method-of-type process-drawable inspect)))
|
|
(t9-0 obj)
|
|
)
|
|
(format #t "~T~Tcontrol: ~A~%" (-> obj control))
|
|
(format #t "~T~Tskel2: ~A~%" (-> obj skel2))
|
|
(format #t "~T~Tracer: ~A~%" (-> obj racer))
|
|
(format #t "~T~Tgame: ~A~%" (-> obj game))
|
|
(format #t "~T~Tneck: ~A~%" (-> obj neck))
|
|
(format #t "~T~Tstate-hook-time: ~D~%" (-> obj state-hook-time))
|
|
(format #t "~T~Tstate-hook: ~A~%" (-> obj state-hook))
|
|
(format #t "~T~Tcam-user-mode: ~A~%" (-> obj cam-user-mode))
|
|
(format #t "~T~Tsidekick: #x~X~%" (-> obj sidekick))
|
|
(format #t "~T~Tmanipy: #x~X~%" (-> obj manipy))
|
|
(format #t "~T~Tattack-info: #<attack-info @ #x~X>~%" (-> obj attack-info))
|
|
(format
|
|
#t
|
|
"~T~Tattack-info-rec: #<attack-info @ #x~X>~%"
|
|
(-> obj attack-info-rec)
|
|
)
|
|
(format #t "~T~Tanim-seed: ~D~%" (-> obj anim-seed))
|
|
(format #t "~T~Talt-cam-pos: ~`vector`P~%" (-> obj alt-cam-pos))
|
|
(format #t "~T~Tsnowball: ~A~%" (-> obj snowball))
|
|
(format #t "~T~Ttube: ~A~%" (-> obj tube))
|
|
(format #t "~T~Tflut: ~A~%" (-> obj flut))
|
|
(format #t "~T~Tcurrent-level: ~A~%" (-> obj current-level))
|
|
(format #t "~T~Tsaved-pos: #<transformq @ #x~X>~%" (-> obj saved-pos))
|
|
(format #t "~T~Tsaved-owner: ~D~%" (-> obj saved-owner))
|
|
(format #t "~T~Talt-neck-pos: ~`vector`P~%" (-> obj alt-neck-pos))
|
|
(format #t "~T~Tfp-hud: ~D~%" (-> obj fp-hud))
|
|
(format #t "~T~Tno-load-wait: ~D~%" (-> obj no-load-wait))
|
|
(format #t "~T~Tno-look-around-wait: ~D~%" (-> obj no-look-around-wait))
|
|
obj
|
|
)
|
|
|
|
;; definition (perm) for symbol *target*, type target
|
|
(define-perm *target* target #f)
|
|
|
|
;; definition of type sidekick
|
|
(deftype sidekick (process-drawable)
|
|
((parent-override (pointer target) :offset 12)
|
|
(control control-info :offset 112)
|
|
(anim-seed uint64 :offset 192)
|
|
(shadow-in-movie? symbol :offset-assert 200)
|
|
)
|
|
:heap-base #x60
|
|
:method-count-assert 20
|
|
:size-assert #xcc
|
|
:flag-assert #x14006000cc
|
|
)
|
|
|
|
;; definition for method 3 of type sidekick
|
|
(defmethod inspect sidekick ((obj sidekick))
|
|
(let ((t9-0 (method-of-type process-drawable inspect)))
|
|
(t9-0 obj)
|
|
)
|
|
(format #t "~T~Tcontrol: ~A~%" (-> obj root))
|
|
(format #t "~T~Tstate-time: ~D~%" (-> obj state-time))
|
|
(format #t "~T~Tstate-flags: ~D~%" (-> obj state-flags))
|
|
(format #t "~T~Tanim-seed: ~D~%" (-> obj anim-seed))
|
|
(format #t "~T~Tshadow-in-movie?: ~A~%" (-> obj shadow-in-movie?))
|
|
obj
|
|
)
|
|
|
|
;; definition (perm) for symbol *sidekick*, type sidekick
|
|
(define-perm *sidekick* sidekick #f)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|