small jak 2 bug fixes (#2649)

- elec gates now always render at max quality if you have PS2 lods
disabled. the original render distances are so low that the one in
caspad is impossible to see in normal gameplay.
- `fort-entry-gate-11` and `com-airlock-outer-13` are specifically
banned from the all actors hack because they are placed in a bad spot
and Naughty Dog did not program the airlocks very well.
- fixed NPC talk distance being bad for 1 frame.
- fix `sew-scare-grunt` erroneously keeping its spool anim active if you
killed the enemy.
This commit is contained in:
ManDude
2023-05-15 17:26:25 +01:00
committed by GitHub
parent 2e9aa1f962
commit e30ecb361f
7 changed files with 30 additions and 20 deletions
+6 -6
View File
@@ -90,8 +90,8 @@
(part-off sparticle-launch-control :offset-assert 368)
(part-spawner-left part-spawner :offset-assert 372)
(part-spawner-right part-spawner :offset-assert 376)
(on-start basic :offset-assert 380)
(on-stop basic :offset-assert 384)
(on-start pair :offset-assert 380)
(on-stop pair :offset-assert 384)
(dividing-wall elec-wall :inline :offset-assert 400)
(plane elec-wall 2 :inline :offset-assert 432)
(wall-y float :offset-assert 496)
@@ -328,7 +328,7 @@
:enter (behavior ()
(process-entity-status! self (entity-perm-status subtask-complete) #f)
(if (-> self on-start)
(script-eval (the-as pair (-> self on-start)) :vector (-> self root trans))
(script-eval (-> self on-start) :vector (-> self root trans))
)
(dotimes (bolt-idx 5)
(let* ((curr-bolt (-> self l-bolt bolt-idx bolt))
@@ -708,7 +708,7 @@
(sound-play "elec-gate-off")
(blocking-plane-destroy)
(if (-> self on-stop)
(script-eval (the-as pair (-> self on-stop)) :vector (-> self root trans))
(script-eval (-> self on-stop) :vector (-> self root trans))
)
(none)
)
@@ -967,8 +967,8 @@ This commonly includes things such as:
(set! (-> obj sound)
(new 'process 'ambient-sound (static-sound-spec "electric-gate" :fo-max 70) (-> obj root trans))
)
(set! (-> obj on-start) (res-lump-struct (-> obj entity) 'on-start basic))
(set! (-> obj on-stop) (res-lump-struct (-> obj entity) 'on-stop basic))
(set! (-> obj on-start) (res-lump-struct (-> obj entity) 'on-start pair))
(set! (-> obj on-stop) (res-lump-struct (-> obj entity) 'on-stop pair))
(elec-gate-method-24 obj)
(set-palette! obj)
(set-state! obj)