mirror of
https://github.com/open-goal/jak-project
synced 2026-06-11 05:08:53 -04:00
58a5440c8a
Makes a bunch of missions mostly playable, including: - `arena-training-1` - `arena-fight-1` - `wascity-chase` - `arena-fight-2` - `arena-fight-3` - `volcano-darkeco` - `desert-hover` - `nest-eggs` - `temple-climb` - `temple-oracle` - `temple-tests` - `desert-beast-battle` - `desert-turtle-training` - `desert-course-race` - `desert-artifact-race1` - `wascity-leaper-race` - `wascity-pre-game` - `sewer-met-hum` - `forest-kill-plants` - `forest-ring-chase` - `temple-defend` - `tower-destroy` - `desert-glide` --- Files: - `ripple` - `waswide-mood` - `sig-rider` - `nst-tasks` - `nst-part` - `nst-gas` - `nst-eggs-h` - `nst-obs` - `nst-mood` - `egg-spider` - `wasdoors-init` - `wasall-tasks` - `wvehicle-race` - `wcar-marauder` - `wcar-marauder-b` - `turret-control` - `was-squad-control` - `turtle-training` - `kleever-rider` - `course-race` - `artifact-race` - `desert-hover` - `desbeast-path-h` - `des-beast` - `desertg-obs` - `desertf-obs` - `desertd-obs` - `desert-dust-storm` - `des-cactus` - `race-hud` - `race-info` - `race-manager` - `tizard` - `flyingsaw` - `hover-training` - `temple-mood` - `temple-obs` - `temple-obs2` - `temple-part` - `temple-scenes` - `templex-mood` - `templex-obs` - `templex-part` - `tomb-baby-spider` - `target-turret-shot` - `target-turret` - `beast-battle-path` - `des-beast-2` - `mh-flyer` - `scorpion-gun` - `hover-enemy-h` - `hover-enemy` - `hover-formation-h` - `hover-formation` - `hover-nav-control-h` - `hover-nav-control` - `flamer-hover` - `hover-nav-templea` - `robo-hover` - `hover-nav-sewb` - `hover-nav-sewg` - `hover-nav-sewj` - `hover-nav-sewl` - `hover-nav-sewo` - `hover-nav-towera` - `tower-mood` - `tower-obs` - `tower-scenes` - `tower-part` - `eco-green-collider` - `forest-bridges` - `forest-kill-plants` - `forest-mood` - `forest-ring-chase` - `forest-tasks` - `forest-part` - `foresta-obs` - `hover-nav-foresta` - `mh-plant` - `dp-bipedal-part` - `dp-bipedal-shot` - `dp-bipedal` - `neo-spawner` - `for-turret` - `for-turret-shot` - `neo-wasp` - `neo-wasp-part` - `volcanox-scenes` - `volcanox-mood` - `volcano-scenes` - `volcano-mood` - `volcano-obs` - `volcano-obs2` - `chain-physics` - `rigid-body-plat` - `volcano-part` - `flamer-lava` - `flitter` - `spiky-frog` - `flut-wild` - `target-indax` - `target-indax-hang` - `mantis` - `volcanox-obs` - `spyder` - `wcar-faccar` - `mhcity-obs2` - `mhcity-part` - `mhcity-obs` - `dm-mine-spider` - `rapid-gunner` - `stadium-mood` - `stadium-scenes` - `stadiuma-mood` - `stadiuma-part` - `kanga-lizard` - `marauder` - `arena-scenes` - `wasstada-mood` - `wasstada-obs` - `wasstada-part` - `wasstadb-obs` - `wasstadc-obs` - `dm-flyer` - `maker-part` - `maker-projectile` - `skeet-part` - `wascity-turret` - `wasgun-h` - `wasgun-hud` - `wasgun-manager` - `nav-graph-h` - `traffic-engine-h` - `waswide-init` - `cty-borrow-manager-h` - `cty-borrow-manager` - `desert-part` - `height-map-h` - `height-map` - `traffic-height-map` - `vehicle-control` - `hvehicle-h` - `hvehicle` - `hvehicle-effects` - `hvehicle-physics` - `hvehicle-util` - `glider-h` - `glider-hud` - `glider-manager` - `glider-ring` - `glider-ring-part` - `h-glider` - `hanga-init` - `was-pre-game` - `was-leaper-race` - `flut-racer` - `desert-scenes` - `desert-lizard-h` - `desert-lizard-task` - `desert-lizard` - `throne-scenes` - `waspal-mood` - `waspala-obs` - `waspala-part` - `deswalk-obs` - `deswalk-part` - `terraformer-drone` - `terraformer-head` - `terraformer-part` - `terraformer-setup`
319 lines
8.6 KiB
Common Lisp
Vendored
Generated
319 lines
8.6 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type sync-info-params
|
|
(deftype sync-info-params (structure)
|
|
"Parameters used to set up a [[sync-info]]."
|
|
((sync-type symbol)
|
|
(sync-flags sync-flags)
|
|
(entity entity-actor)
|
|
(period uint32)
|
|
(percent float)
|
|
(ease-in float)
|
|
(ease-out float)
|
|
(pause-in float)
|
|
(pause-out float)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type sync-info-params
|
|
(defmethod inspect ((this sync-info-params))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'sync-info-params)
|
|
(format #t "~1Tsync-type: ~A~%" (-> this sync-type))
|
|
(format #t "~1Tsync-flags: ~D~%" (-> this sync-flags))
|
|
(format #t "~1Tentity: ~A~%" (-> this entity))
|
|
(format #t "~1Tperiod: ~D~%" (-> this period))
|
|
(format #t "~1Tpercent: ~f~%" (-> this percent))
|
|
(format #t "~1Tease-in: ~f~%" (-> this ease-in))
|
|
(format #t "~1Tease-out: ~f~%" (-> this ease-out))
|
|
(format #t "~1Tpause-in: ~f~%" (-> this pause-in))
|
|
(format #t "~1Tpause-out: ~f~%" (-> this pause-out))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type sync-info
|
|
(deftype sync-info (structure)
|
|
((sync-flags sync-flags)
|
|
(offset float)
|
|
(period uint32)
|
|
)
|
|
(:methods
|
|
(get-current-phase-no-mod (_type_) float)
|
|
(get-phase-offset (_type_) float)
|
|
(get-norm! (_type_ int) float)
|
|
(get-scaled-val! (_type_ float int) float)
|
|
(initialize! (_type_ sync-info-params) none)
|
|
(get-timeframe-offset! (_type_ time-frame) time-frame)
|
|
(sync-now! (_type_ float) none)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type sync-info
|
|
(defmethod inspect ((this sync-info))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'sync-info)
|
|
(format #t "~1Tsync-flags: ~D~%" (-> this sync-flags))
|
|
(format #t "~1Toffset: ~f~%" (-> this offset))
|
|
(format #t "~1Tperiod: ~D~%" (-> this period))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type sync-linear
|
|
(deftype sync-linear (sync-info)
|
|
()
|
|
:pack-me
|
|
)
|
|
|
|
;; definition for method 3 of type sync-linear
|
|
(defmethod inspect ((this sync-linear))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'sync-linear)
|
|
(format #t "~1Tsync-flags: ~D~%" (-> this sync-flags))
|
|
(format #t "~1Toffset: ~f~%" (-> this offset))
|
|
(format #t "~1Tperiod: ~D~%" (-> this period))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type sync-eased
|
|
(deftype sync-eased (sync-info)
|
|
((tlo float)
|
|
(thi float)
|
|
(ylo float)
|
|
(m2 float)
|
|
(yend float)
|
|
(pause-in float)
|
|
(pause-out float)
|
|
)
|
|
:pack-me
|
|
)
|
|
|
|
;; definition for method 3 of type sync-eased
|
|
(defmethod inspect ((this sync-eased))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'sync-eased)
|
|
(format #t "~1Tsync-flags: ~D~%" (-> this sync-flags))
|
|
(format #t "~1Toffset: ~f~%" (-> this offset))
|
|
(format #t "~1Tperiod: ~D~%" (-> this period))
|
|
(format #t "~1Ttlo: ~f~%" (-> this tlo))
|
|
(format #t "~1Tthi: ~f~%" (-> this thi))
|
|
(format #t "~1Tylo: ~f~%" (-> this ylo))
|
|
(format #t "~1Tm2: ~f~%" (-> this m2))
|
|
(format #t "~1Tyend: ~f~%" (-> this yend))
|
|
(format #t "~1Tpause-in: ~f~%" (-> this pause-in))
|
|
(format #t "~1Tpause-out: ~f~%" (-> this pause-out))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type sync-paused
|
|
(deftype sync-paused (sync-info)
|
|
((pause-in float)
|
|
(pause-out float)
|
|
)
|
|
:pack-me
|
|
)
|
|
|
|
;; definition for method 3 of type sync-paused
|
|
(defmethod inspect ((this sync-paused))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'sync-paused)
|
|
(format #t "~1Tsync-flags: ~D~%" (-> this sync-flags))
|
|
(format #t "~1Toffset: ~f~%" (-> this offset))
|
|
(format #t "~1Tperiod: ~D~%" (-> this period))
|
|
(format #t "~1Tpause-in: ~f~%" (-> this pause-in))
|
|
(format #t "~1Tpause-out: ~f~%" (-> this pause-out))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type delayed-rand-float
|
|
(deftype delayed-rand-float (structure)
|
|
((min-time int32)
|
|
(max-time int32)
|
|
(max-val float)
|
|
(timer int32)
|
|
(start-time time-frame)
|
|
(value float)
|
|
)
|
|
:pack-me
|
|
(:methods
|
|
(set-params! (_type_ int int float) float)
|
|
(reset! (_type_) float)
|
|
(update! (_type_) float)
|
|
(update-and-clear! (_type_) float)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type delayed-rand-float
|
|
(defmethod inspect ((this delayed-rand-float))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'delayed-rand-float)
|
|
(format #t "~1Tmin-time: ~D~%" (-> this min-time))
|
|
(format #t "~1Tmax-time: ~D~%" (-> this max-time))
|
|
(format #t "~1Tmax-val: ~f~%" (-> this max-val))
|
|
(format #t "~1Ttimer: ~D~%" (-> this timer))
|
|
(format #t "~1Tstart-time: ~D~%" (-> this start-time))
|
|
(format #t "~1Tvalue: ~f~%" (-> this value))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type oscillating-float
|
|
(deftype oscillating-float (structure)
|
|
((value float)
|
|
(target float)
|
|
(vel float)
|
|
(max-vel float)
|
|
(damping float)
|
|
(accel float)
|
|
)
|
|
:allow-misaligned
|
|
(:methods
|
|
(set-params! (_type_ float float float float) float)
|
|
(update! (_type_ float) float)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type oscillating-float
|
|
(defmethod inspect ((this oscillating-float))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'oscillating-float)
|
|
(format #t "~1Tvalue: ~f~%" (-> this value))
|
|
(format #t "~1Ttarget: ~f~%" (-> this target))
|
|
(format #t "~1Tvel: ~f~%" (-> this vel))
|
|
(format #t "~1Tmax-vel: ~f~%" (-> this max-vel))
|
|
(format #t "~1Tdamping: ~f~%" (-> this damping))
|
|
(format #t "~1Taccel: ~f~%" (-> this accel))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type bouncing-float
|
|
(deftype bouncing-float (structure)
|
|
((osc oscillating-float :inline)
|
|
(max-value float)
|
|
(min-value float)
|
|
(elasticity float)
|
|
(state int32)
|
|
)
|
|
:allow-misaligned
|
|
(:methods
|
|
(set-params! (_type_ float float float float float float float) float)
|
|
(update! (_type_ float) float)
|
|
(at-min? (_type_) symbol)
|
|
(at-max? (_type_) symbol)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type bouncing-float
|
|
(defmethod inspect ((this bouncing-float))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'bouncing-float)
|
|
(format #t "~1Tosc: #<oscillating-float @ #x~X>~%" (-> this osc))
|
|
(format #t "~1Tmax-value: ~f~%" (-> this max-value))
|
|
(format #t "~1Tmin-value: ~f~%" (-> this min-value))
|
|
(format #t "~1Telasticity: ~f~%" (-> this elasticity))
|
|
(format #t "~1Tstate: ~D~%" (-> this state))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type delayed-rand-vector
|
|
(deftype delayed-rand-vector (structure)
|
|
((min-time int32)
|
|
(max-time int32)
|
|
(xz-max float)
|
|
(y-max float)
|
|
(timer int32)
|
|
(start-time time-frame)
|
|
(value vector :inline)
|
|
)
|
|
(:methods
|
|
(set-params! (_type_ int int float float) vector)
|
|
(update-now! (_type_) vector)
|
|
(update-with-delay! (_type_) vector)
|
|
(update-with-delay-or-reset! (_type_) vector)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type delayed-rand-vector
|
|
(defmethod inspect ((this delayed-rand-vector))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'delayed-rand-vector)
|
|
(format #t "~1Tmin-time: ~D~%" (-> this min-time))
|
|
(format #t "~1Tmax-time: ~D~%" (-> this max-time))
|
|
(format #t "~1Txz-max: ~f~%" (-> this xz-max))
|
|
(format #t "~1Ty-max: ~f~%" (-> this y-max))
|
|
(format #t "~1Ttimer: ~D~%" (-> this timer))
|
|
(format #t "~1Tstart-time: ~D~%" (-> this start-time))
|
|
(format #t "~1Tvalue: #<vector @ #x~X>~%" (-> this value))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; definition of type oscillating-vector
|
|
(deftype oscillating-vector (structure)
|
|
((value vector :inline)
|
|
(target vector :inline)
|
|
(vel vector :inline)
|
|
(max-vel float)
|
|
(damping float)
|
|
(accel float)
|
|
)
|
|
(:methods
|
|
(set-params! (_type_ vector float float float) vector)
|
|
(update! (_type_ vector) vector)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type oscillating-vector
|
|
(defmethod inspect ((this oscillating-vector))
|
|
(when (not this)
|
|
(set! this this)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" this 'oscillating-vector)
|
|
(format #t "~1Tvalue: #<vector @ #x~X>~%" (-> this value))
|
|
(format #t "~1Ttarget: #<vector @ #x~X>~%" (-> this target))
|
|
(format #t "~1Tvel: #<vector @ #x~X>~%" (-> this vel))
|
|
(format #t "~1Tmax-vel: ~f~%" (-> this max-vel))
|
|
(format #t "~1Tdamping: ~f~%" (-> this damping))
|
|
(format #t "~1Taccel: ~f~%" (-> this accel))
|
|
(label cfg-4)
|
|
this
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|