Skip to content

Commit

Permalink
g/j2: make the turret controls respect the camera settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser committed Oct 14, 2024
1 parent b50652c commit 1b1a074
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-horizontal-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 1b1a074

Please sign in to comment.