add a bunch of new cheat codes & re-do all pc cheat codes (#1770)

* redo cheat encodings

* fix error

* add no texture cheat

* tiny cleanup + add sidekick stats button

* crappy implementation of big/small head mode

* more correct bone scaling

* redo bone manip code a bit

* jp text fixes

* improved matrix math!

* add big fist cheat, minor type cleanup, add some debug toggles

* move all this mess to a new file

* slightly rework joint scaling function

* add big head npc cheat

* subtitles typo

* WIP mirror mode

* fix mirrored hud sprites

* fix mirror mode sound pan

* add cheats to menu!

* split some subtitles
This commit is contained in:
ManDude
2022-08-20 15:30:37 +01:00
committed by GitHub
parent 04d6b13ced
commit 7b25afa697
47 changed files with 587 additions and 280 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
;; definition of type joint
(deftype joint (basic)
((name basic :offset-assert 4)
((name string :offset-assert 4)
(number int32 :offset-assert 8)
(parent joint :offset-assert 12)
(bind-pose matrix :inline :offset-assert 16)
+14 -15
View File
@@ -20,8 +20,8 @@
(up uint8 :offset-assert 136)
(nose uint8 :offset-assert 137)
(ear uint8 :offset-assert 138)
(shutting-down? basic :offset-assert 140)
(parented-scale? basic :offset 128)
(shutting-down? symbol :offset-assert 140)
(parented-scale? symbol :offset 128)
)
:method-count-assert 16
:size-assert #x90
@@ -34,7 +34,7 @@
(reset-blend! (_type_) _type_ 12)
(set-twist! (_type_ float float float) vector 13)
(set-trs! (_type_ vector quaternion vector) none 14)
(shut-down! (_type_) float 15)
(shut-down! (_type_) none 15)
)
)
@@ -159,12 +159,11 @@
)
;; definition for method 15 of type joint-mod
;; INFO: Return type mismatch float vs none.
(defmethod shut-down! joint-mod ((obj joint-mod))
(set! (-> obj shutting-down?) #t)
(let ((f0-0 0.0))
(set! (-> obj blend) f0-0)
f0-0
)
(set! (-> obj blend) 0.0)
(none)
)
;; definition for method 13 of type joint-mod
@@ -667,16 +666,16 @@
;; definition of type joint-mod-set-local
(deftype joint-mod-set-local (basic)
((transform transformq :inline :offset-assert 16)
(set-rotation basic :offset-assert 64)
(set-scale basic :offset-assert 68)
(set-translation basic :offset-assert 72)
(enable basic :offset-assert 76)
(set-rotation symbol :offset-assert 64)
(set-scale symbol :offset-assert 68)
(set-translation symbol :offset-assert 72)
(enable symbol :offset-assert 76)
)
:method-count-assert 9
:size-assert #x50
:flag-assert #x900000050
(:methods
(new (symbol type process-drawable int basic basic basic) _type_ 0)
(new (symbol type process-drawable int symbol symbol symbol) _type_ 0)
)
)
@@ -722,9 +721,9 @@
(type-to-make type)
(arg0 process-drawable)
(arg1 int)
(arg2 basic)
(arg3 basic)
(arg4 basic)
(arg2 symbol)
(arg3 symbol)
(arg4 symbol)
)
(let ((v0-0 (object-new allocation type-to-make (the-as int (-> type-to-make size)))))
(set! (-> v0-0 set-translation) arg2)