You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: goal_src/jak3/pc/debug/pc-debug-methods.gc
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -135,10 +135,25 @@
135
135
(when (nonzero? actors)
136
136
(dotimes (ii (-> actors length))
137
137
(let ((e (-> actors data ii actor)))
138
-
(when (and (= (-> e etype symbol) 'skill) (or (not (-> e extra)) (zero? (-> e extra)) (not (logtest? (-> e extra perm status) (entity-perm-status dead)))))
139
-
(add-debug-line #t (bucket-id debug-no-zbuf1) start-pos (-> e trans) (new 'static 'rgba :r#xff:a#x80) #f (the-as rgba -1))
140
-
(format*stdcon*"~S at ~m ~m ~m (~m away)~%" (res-lump-struct e 'name string) (-> e trans x) (-> e trans y) (-> e trans z) (vector-vector-distance start-pos (-> e trans)))
138
+
(when (or (not (-> e extra)) (zero? (-> e extra)) (not (logtest? (-> e extra perm status) (entity-perm-status dead))))
139
+
(case (-> e etype symbol)
140
+
(('skill)
141
+
;; standalone orb, always track
142
+
(add-debug-line #t (bucket-id debug-no-zbuf1) start-pos (-> e trans) (new 'static 'rgba :r#xff:a#x80) #f (the-as rgba -1))
143
+
(format*stdcon*"~S at ~m ~m ~m (~m away)~%" (res-lump-struct e 'name string) (-> e trans x) (-> e trans y) (-> e trans z) (vector-vector-distance start-pos (-> e trans)))
;; some kind of crate, only track if pickup-type = skill and pickup-amount != collected amount (there is one crate that spawns 2 orbs, one crate that spawns a golden triple orb)
147
+
(let ((e-info (res-lump-data e 'eco-info (pointer int32) :time0.0)))
148
+
(when (and (= (-> e-info 0) (pickup-type skill))
149
+
(!= (-> e-info 1) (-> e extra perm user-int8 1)))
150
+
(add-debug-line #t (bucket-id debug-no-zbuf1) start-pos (-> e trans) (new 'static 'rgba :r#xff:a#x80) #f (the-as rgba -1))
151
+
(format*stdcon*"~S at ~m ~m ~m (~m away)~%" (res-lump-struct e 'name string) (-> e trans x) (-> e trans y) (-> e trans z) (vector-vector-distance start-pos (-> e trans)))
0 commit comments