mirror of
https://github.com/open-goal/jak-project
synced 2026-07-30 16:04:33 -04:00
c235280b91
* [decomp] clean up files 50-100 * update file, fix crash on too many prims * spelling is hard
67 lines
2.1 KiB
Common Lisp
67 lines
2.1 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: hint-control-h.gc
|
|
;; name in dgo: hint-control-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
;; The "hint" system is used to give the player hints if they appear to be stuck
|
|
;; Hints can belong to either a level or a task. The hint-control types have
|
|
;; parameters about how often the hints should come, and what they are tied to.
|
|
|
|
(defenum hint-command
|
|
(if-unknown 0)
|
|
(if-known 1)
|
|
(if-resolved 2)
|
|
(if-need-introduction 3)
|
|
(if-need-reminder 4)
|
|
(if-need-reminder-a 5)
|
|
(if-need-reward-speech 6)
|
|
(close-need-hint 7)
|
|
(close-need-introduction 8)
|
|
(close-need-reminder 9)
|
|
(close-need-reminder-a 10)
|
|
(close-need-reward-speech 11)
|
|
(close-need-resolution 12)
|
|
(if-at-most-need-reminder-a 13)
|
|
)
|
|
|
|
;; information about an in-level hint. These aren't tied to a specific object or task.
|
|
(deftype level-hint-control (structure)
|
|
((delay-before-playing time-frame :offset-assert 0)
|
|
(id game-text-id :offset-assert 8)
|
|
(num-attempts-before-playing int8 :offset-assert 12)
|
|
(num-success-before-killing int8 :offset-assert 13)
|
|
(num-attempts int8 :offset-assert 14)
|
|
(num-success int8 :offset-assert 15)
|
|
(start-time time-frame :offset-assert 16)
|
|
(last-time-called time-frame :offset-assert 24)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x20
|
|
:flag-assert #x900000020
|
|
)
|
|
|
|
;; a "task hint" is explicitly tied to an in-game task.
|
|
(deftype task-hint-control (structure)
|
|
((task game-task :offset-assert 0)
|
|
(delay time-frame :offset-assert 8)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x10
|
|
:flag-assert #x900000010
|
|
)
|
|
|
|
(deftype task-hint-control-group (structure)
|
|
((tasks (array task-hint-control) :offset-assert 0)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x4
|
|
:flag-assert #x900000004
|
|
)
|
|
|
|
(define-extern reset-all-hint-controls (function none))
|
|
(define-extern kill-current-level-hint (function pair pair symbol none))
|
|
(define-extern level-hint-spawn (function game-text-id string entity process-tree game-task none))
|
|
|