Skip to content

Commit

Permalink
g/j2: make the turret controls respect the camera settings (#3715)
Browse files Browse the repository at this point in the history
Fixes #3664
  • Loading branch information
xTVaser authored Oct 19, 2024
1 parent d82b620 commit e144406
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions goal_src/jak2/engine/target/target-turret.gc
Original file line number Diff line number Diff line change
Expand Up @@ -1250,8 +1250,9 @@
)
)
(when (and (-> self enable-controls) (>= (-> *camera-combiner* interp-val) 1.0))
(set! (-> self rotyvv) (analog-input (the-as int (-> *cpad-list* cpads 0 leftx)) 128.0 32.0 110.0 -98304.0))
(set! (-> self rotxvv) (analog-input (the-as int (-> *cpad-list* cpads 0 lefty)) 128.0 32.0 110.0 -65536.0))
;; og:preserve-this respect the camera settings
(set! (-> self rotyvv) (analog-input-horizontal-first (the-as int (-> *cpad-list* cpads 0 leftx)) 128.0 32.0 110.0 -98304.0))
(set! (-> self rotxvv) (analog-input-vertical-first (the-as int (-> *cpad-list* cpads 0 lefty)) 128.0 32.0 110.0 -65536.0))
)
(+! (-> self rotyv) (* (-> self rotyvv) (seconds-per-frame)))
(seek! (-> self rotyv) 0.0 (* 32768.0 (seconds-per-frame)))
Expand Down

0 comments on commit e144406

Please sign in to comment.