From feaa7fb873f9b0415c827cbcec4b6a2b9036b657 Mon Sep 17 00:00:00 2001 From: Matt Dallmeyer Date: Wed, 10 Jun 2026 23:26:41 -0700 Subject: [PATCH] [jak1] Show max of flying-lurker distances on HUD (#4309) previously only showed the distance from `flying-lurker-1`, but any of the 3 getting 500m can cause you to fail, so we should show the max --- goal_src/jak1/pc/hud-classes-pc.gc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/goal_src/jak1/pc/hud-classes-pc.gc b/goal_src/jak1/pc/hud-classes-pc.gc index 5eb847ad11..297e30a7fa 100644 --- a/goal_src/jak1/pc/hud-classes-pc.gc +++ b/goal_src/jak1/pc/hud-classes-pc.gc @@ -364,10 +364,15 @@ (set! (-> obj battle-alive) alive-count)) (update-display-status obj (-> obj want-skel) (-> obj battle-entity) 0 #t)))) ((and (= 'debug *cheat-mode*) (= (-> obj battle-entity) (actor-by-name "flying-lurker-1"))) - (let ((battle (the process-drawable battle))) - (if *target* - (set! (-> obj battle-alive) (the int (/ (vector-vector-distance (-> battle root trans) (target-pos 0)) METER_LENGTH)))) - (update-display-status obj (-> obj want-skel) (-> obj battle-entity) 0 #t))))) + (when *target* + (let* ((lurker1 (the process-drawable battle)) + (dist1 (if lurker1 (vector-vector-distance (-> lurker1 root trans) (target-pos 0)) 0.0)) + (lurker2 (the process-drawable (process-by-ename "flying-lurker-2"))) + (dist2 (if lurker2 (vector-vector-distance (-> lurker2 root trans) (target-pos 0)) 0.0)) + (lurker3 (the process-drawable (process-by-ename "flying-lurker-3"))) + (dist3 (if lurker3 (vector-vector-distance (-> lurker3 root trans) (target-pos 0)) 0.0))) + (set! (-> obj battle-alive) (the int (/ (fmax dist1 dist2 dist3) METER_LENGTH))))) + (update-display-status obj (-> obj want-skel) (-> obj battle-entity) 0 #t)))) (else ;; we have nothing. kill everything. (unless (and (= (-> obj last-battle) INVALID_HANDLE) (hidden? obj))