mirror of
https://github.com/open-goal/jak-project
synced 2026-08-10 03:06:18 -04:00
[decompiler] as-type and font method support (#3855)
Add support for `as-type` macro, and detecting inline font methods. This works in all three games but I've only updated jak 3's goal_src for now. Eventually I will go back and work through the others, but I want to get more decompiler features in first.  --------- Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
+2
-16
@@ -688,19 +688,9 @@
|
||||
(defmethod look-at! ((this joint-mod) (target vector) (mode symbol) (proc process))
|
||||
"Activate joint mod to look at the process."
|
||||
(when (= mode 'attacking)
|
||||
(let* ((s2-0 proc)
|
||||
(s1-0 (if (type? s2-0 process-drawable)
|
||||
(the-as process-drawable s2-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((s1-0 (as-type proc process-drawable)))
|
||||
(when s1-0
|
||||
(let* ((s0-0 (-> s1-0 fact))
|
||||
(s2-1 (if (type? s0-0 fact-info-enemy)
|
||||
(the-as fact-info-enemy s0-0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((s2-1 (as-type (-> s1-0 fact) fact-info-enemy)))
|
||||
(when s2-1
|
||||
(when (< (vector-vector-distance (-> this process root trans) (-> s1-0 root trans)) (-> s2-1 cam-notice-dist))
|
||||
(set-time! (-> this notice-time))
|
||||
@@ -1497,7 +1487,3 @@
|
||||
0
|
||||
(none)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user