[jak3] Fix disabling nav (#3941)

This needs a parameter, otherwise it was reading some uninitialized
value. In some cases, the uninitialized value would leave the nav stuff
on, and the marauders would go crazy trying to avoid each other.
This commit is contained in:
water111
2025-06-02 21:51:22 -04:00
committed by GitHub
parent c87469cf97
commit fce2dad3c0
2 changed files with 5 additions and 2 deletions
@@ -1227,7 +1227,9 @@
(send-event gp-0 'ai-set-target-speed f30-0)
)
)
(send-event gp-0 'ai-ignore-nav-mesh)
;; og:preserve-this
;; original game bug.
(send-event gp-0 'ai-ignore-nav-mesh #t)
)
)
0
@@ -1677,7 +1677,8 @@
(let ((a0-4 (vehicle-spawn (vehicle-type v-scorpion) gp-0)))
(when a0-4
(set! (-> self scorp) (process->handle a0-4))
(send-event (handle->process (-> self scorp)) 'ai-ignore-nav-mesh)
;; og:preserve-this original game bug.
(send-event (handle->process (-> self scorp)) 'ai-ignore-nav-mesh #t)
)
)
)