Skip to content

Commit

Permalink
jak3: fix mirage shot (#3501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hat-Kid authored May 1, 2024
1 parent 39f3549 commit f9e0aa8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion decompiler/config/jak3/ntsc_v1/label_types.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@
["L19", "vector"],
["L18", "vector"],
["L17", "vector"],
["L24", "vector"],
["L24", "(inline-array vector)", 2],
["L15", "vector"],
["L14", "vector"]
],
Expand Down
13 changes: 7 additions & 6 deletions goal_src/jak3/levels/desert/wvehicle/wcar-mirage.gc
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
(set! (-> v1-9 fvec quad) a2-1)
(set! (-> v1-9 trans quad) a3-2)
)
(let ((v1-10 (new 'static 'vector :x 3686.4 :y 5324.8 :z 6144.0 :w 1.0)))
(vector-matrix*!
(-> gp-1 vec0)
(the-as vector (+ (the-as uint v1-10) (* (-> gp-1 barrel-idx) 16)))
(-> gp-1 mat0)
)
(let ((v1-10 (new 'static 'inline-array vector 2
(new 'static 'vector :x 3686.4 :y 5324.8 :z 6144.0 :w 1.0)
(new 'static 'vector :x -3686.4 :y 5324.8 :z 6144.0 :w 1.0)
)
)
)
(vector-matrix*! (-> gp-1 vec0) (-> v1-10 (-> gp-1 barrel-idx)) (-> gp-1 mat0))
)
0
(vector-reset! (-> gp-1 vec4))
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f9e0aa8

Please sign in to comment.