Files
jak-project/test/decompiler/reference/jak2/engine/camera/camera-defs-h_REF.gc
T
water111 f7bd0752f8 [decomp] Decompile first batch of files in engine (#1787)
* wip

* getting stuff set up so we can actually run test cases

* better handle block entry stuff

* types2 working on gstring

* comments

* math ref working

* up to first stack stuff

* stack fixes

* bounding box

* math stuff is working

* float fixes

* temp debug for (method 9 profile-array)

* stupid stupid bug

* debugging

* everything is broken

* some amount of type stuff works

* bitfield

* texture bitfields not working

* temp

* types

* more stuff

* type check

* temp

* float related fixes for light and res problems

* revisit broken files, fix bugs

* more types

* vector debug

* bug fixes for decompiler crashes in harder functions

* update goal_src
2022-08-24 00:29:51 -04:00

111 lines
4.7 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type camera-bank
(deftype camera-bank (basic)
((collide-move-rad float :offset-assert 4)
(joypad uint32 :offset-assert 8)
(min-detectable-velocity float :offset-assert 12)
(attack-timeout time-frame :offset-assert 16)
(default-string-max-y meters :offset-assert 24)
(default-string-min-y meters :offset-assert 28)
(default-string-max-z meters :offset-assert 32)
(default-string-min-z meters :offset-assert 36)
(default-string-push-z meters :offset-assert 40)
(default-tilt-adjust degrees :offset-assert 44)
)
:method-count-assert 9
:size-assert #x30
:flag-assert #x900000030
)
;; definition for method 3 of type camera-bank
(defmethod inspect camera-bank ((obj camera-bank))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~1Tcollide-move-rad: ~f~%" (-> obj collide-move-rad))
(format #t "~1Tjoypad: ~D~%" (-> obj joypad))
(format #t "~1Tmin-detectable-velocity: ~f~%" (-> obj min-detectable-velocity))
(format #t "~1Tattack-timeout: ~D~%" (-> obj attack-timeout))
(format #t "~1Tdefault-string-max-y: (meters ~m)~%" (-> obj default-string-max-y))
(format #t "~1Tdefault-string-min-y: (meters ~m)~%" (-> obj default-string-min-y))
(format #t "~1Tdefault-string-max-z: (meters ~m)~%" (-> obj default-string-max-z))
(format #t "~1Tdefault-string-min-z: (meters ~m)~%" (-> obj default-string-min-z))
(format #t "~1Tdefault-string-push-z: (meters ~m)~%" (-> obj default-string-push-z))
(format #t "~1Tdefault-tilt-adjust: (deg ~r)~%" (-> obj default-tilt-adjust))
(label cfg-4)
obj
)
;; definition for symbol *CAMERA-bank*, type camera-bank
(define *CAMERA-bank* (new 'static 'camera-bank
:collide-move-rad 1638.4
:min-detectable-velocity 40.96
:attack-timeout (seconds 0.25)
:default-string-max-y (meters 3)
:default-string-min-y (meters 1)
:default-string-max-z (meters 12.5)
:default-string-min-z (meters 5)
:default-string-push-z (meters 10)
:default-tilt-adjust (degrees -6.5000005)
)
)
;; definition of type camera-master-bank
(deftype camera-master-bank (basic)
((onscreen-head-height meters :offset-assert 4)
(onscreen-foot-height meters :offset-assert 8)
(target-height meters :offset-assert 12)
(up-move-to-pitch-ratio-in-air float :offset-assert 16)
(down-move-to-pitch-ratio-in-air float :offset-assert 20)
(up-move-to-pitch-on-ground float :offset-assert 24)
(down-move-to-pitch-on-ground float :offset-assert 28)
(pitch-off-blend float :offset-assert 32)
)
:method-count-assert 9
:size-assert #x24
:flag-assert #x900000024
)
;; definition for method 3 of type camera-master-bank
(defmethod inspect camera-master-bank ((obj camera-master-bank))
(when (not obj)
(set! obj obj)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~1Tonscreen-head-height: (meters ~m)~%" (-> obj onscreen-head-height))
(format #t "~1Tonscreen-foot-height: (meters ~m)~%" (-> obj onscreen-foot-height))
(format #t "~1Ttarget-height: (meters ~m)~%" (-> obj target-height))
(format #t "~1Tup-move-to-pitch-ratio-in-air: ~f~%" (-> obj up-move-to-pitch-ratio-in-air))
(format #t "~1Tdown-move-to-pitch-ratio-in-air: ~f~%" (-> obj down-move-to-pitch-ratio-in-air))
(format #t "~1Tup-move-to-pitch-on-ground: ~f~%" (-> obj up-move-to-pitch-on-ground))
(format #t "~1Tdown-move-to-pitch-on-ground: ~f~%" (-> obj down-move-to-pitch-on-ground))
(format #t "~1Tpitch-off-blend: ~f~%" (-> obj pitch-off-blend))
(label cfg-4)
obj
)
;; definition for symbol *CAMERA_MASTER-bank*, type camera-master-bank
(define *CAMERA_MASTER-bank* (new 'static 'camera-master-bank
:onscreen-head-height (meters 2.65)
:onscreen-foot-height (meters -0.5)
:target-height (meters 2.15)
:up-move-to-pitch-ratio-in-air 1.0
:down-move-to-pitch-ratio-in-air 0.5
:up-move-to-pitch-on-ground 0.9
:down-move-to-pitch-on-ground 0.9
:pitch-off-blend 0.5
)
)
;; failed to figure out what this is:
0