102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1#ifndef PCDOGS_ACTOR_CONSTANTS_H
2#define PCDOGS_ACTOR_CONSTANTS_H
3
5
6/* Actor flags have subtype-specific uses; these names describe their observed consumers. */
7#define ACTOR_BEHAVIOR_SKIP_UPDATE 0x1
8#define ACTOR_BEHAVIOR_DEFERRED_DESTROY 0x2
9#define ACTOR_BEHAVIOR_CULL_MODE 0x4
10#define ACTOR_BEHAVIOR_TRAIL_OVERRIDE 0x8
11#define ACTOR_BEHAVIOR_SKIP_ANIMATION 0x10
12#define ACTOR_BEHAVIOR_GROUND_TRACKING 0x20
13#define ACTOR_BEHAVIOR_AIRBORNE 0x40
14#define ACTOR_BEHAVIOR_GROUNDED_MOTION 0x80
15#define ACTOR_BEHAVIOR_VISIBILITY_PENDING 0x100
16#define ACTOR_BEHAVIOR_MOVEMENT_LOCKED 0x200
17#define ACTOR_BEHAVIOR_MOVING_LEFT 0x400
18#define ACTOR_BEHAVIOR_BYPASS_COLLISION 0x800
19#define ACTOR_BEHAVIOR_MOVEMENT_ACTIVE 0x1000
20#define ACTOR_BEHAVIOR_PREPROCESSED 0x2000
21#define ACTOR_BEHAVIOR_GROUND_TILT_ENABLED 0x4000
22#define ACTOR_ROOT_MOTION_LOOP 0x8000
23#define ACTOR_ROOT_MOTION_WRAP 0x10000
24#define ACTOR_ROOT_MOTION_REVERSE 0x20000
25#define ACTOR_ROOT_MOTION_LATCHED 0x40000
26#define ACTOR_ROOT_MOTION_STEP 0x80000
27#define ACTOR_BEHAVIOR_ANIMATION_PENDING 0x100000
28#define ACTOR_BEHAVIOR_DESTROY_AFTER_ANIMATION 0x400000
29#define ACTOR_BEHAVIOR_FADE_DESTROY 0x800000
30#define ACTOR_BEHAVIOR_FORCE_VISIBLE 0x1000000
31#define ACTOR_BEHAVIOR_PENETRATING 0x2000000
32#define ACTOR_BEHAVIOR_GROUND_BASIS_CHANGED 0x4000000
33#define ACTOR_BEHAVIOR_COLLISION_CORRECTION 0x8000000
34#define ACTOR_BEHAVIOR_WORKLIST_MEMBER 0x10000000
35#define ACTOR_BEHAVIOR_FORCE_PRIMARY_LOD 0x40000000
36#define ACTOR_BEHAVIOR_FORCE_ALTERNATE_LOD 0x80000000u
37#define ACTOR_BEHAVIOR_UPPER_WORD_MASK 0xffff0000u
38
39#define ACTOR_LIFECYCLE_DISABLED 0x1
40#define ACTOR_LIFECYCLE_HIDDEN 0x4
41#define ACTOR_LIFECYCLE_DESTROY_QUEUED 0x8
42#define ACTOR_LIFECYCLE_COLLISION_ENABLED 0x10
43#define ACTOR_LIFECYCLE_DESTROYING 0x20
44#define ACTOR_LIFECYCLE_FORCE_HIDDEN 0x80
45
46#define ACTOR_ATTACHMENT_INHERIT_ROTATION 0x1
47#define ACTOR_ATTACHMENT_HAS_TIMED_EVENT 0x1
48#define ACTOR_ATTACHMENT_SUPPRESS_PLATFORM_CONTACT 0x4
49#define ACTOR_CONTROLLER_PRESERVE_DEFAULTS 0x20
50#define ACTOR_CONTROLLER_BONE_ACTION 0x40
51#define ACTOR_CONTROLLER_GROUND_REACTION 0x80
52
53/* Commands occupy an ordered byte opcode, rather than independent flag bits. */
68
69#define ACTOR_BEHAVIOR_POWERUP_ACTOR 0x20000000
70/* Movement-node aliases of behavior bits reused by other actor subtypes. */
71#define ACTOR_ROOT_MOTION_LEFT ACTOR_BEHAVIOR_MOVING_LEFT
72#define ACTOR_ROOT_MOTION_RIGHT ACTOR_BEHAVIOR_BYPASS_COLLISION
73#define ACTOR_TRACE_VIEW_CONE 0x8
74#define ACTOR_TRACE_USE_TARGET_POSITION 0x20
75#define ACTOR_TRACE_USE_TARGET_RESULT 0x40
76#define ACTOR_TRACE_SKIP_ACTOR_OCCLUSION 0x80
77#define ACTOR_TRACE_KEEP_NEAREST 0x100
78#define ACTOR_TRACE_NAVIGATION_RECORDS 0x200
79#define ACTOR_TRACE_MATCH_ACTIVATION 0x400
80#define ACTOR_TRACE_INCLUDE_PERSISTENT 0x8000
81#define ACTOR_CONTACT_REQUIRES_JUMP_SURFACE 0x4
82#define ACTOR_CONTACT_INPUT_SELECTOR_MASK 0xf
83#define ACTOR_COLLISION_RESPONSE_REJECT_BIT 0x1
84#define ACTOR_SOUND_VARIANT_LOW_BIT 0x2
85#define ACTOR_RENDER_ENTRY_INITIALIZED 0x40
86#define ACTOR_RENDER_ENTRY_INDEX_MASK 0x3f
87#define ACTOR_RENDER_FADE_COLOR_MASK 0xffffff
88#define ACTOR_RENDER_CONTROLLER_GROUP_RELOCATED 0x80
89#define ACTOR_ANIMATION_INTERRUPTS_MOVEMENT 0x4
90#define ACTOR_ATTACHMENT_RETRY_TICKS 30
91#define ACTOR_REACTION_ANIMATION_TICKS 30
92#define ACTOR_RUNNING_INPUT_MAGNITUDE_Q12 0x6c2
93#define ACTOR_COMPONENT_DISABLE_POSITIVE_COLLISION 0x2000
94
115
116#define ACTOR_FADE_MODE_LOW 0x10000
117#define ACTOR_FADE_OUT 0x20000
118#define ACTOR_FADE_MODE_HIGH 0x40000
119#define ACTOR_FADE_ACTIVE 0x80000
120#define ACTOR_LOD_SHRINK_START_DISTANCE 0xa000
121#define ACTOR_LOD_SHRINK_END_DISTANCE 0x64000
122#define ACTOR_LOD_SHRINK_RAMP_MULTIPLIER 45
123#define ACTOR_LOD_MINIMUM_SCALE_Q12 0x800
124#define ACTOR_DEATH_AIRBORNE_TIMEOUT 300
125#define ACTOR_DEATH_SETTLE_TICKS 60
126#define ACTOR_DEATH_INITIAL_HEALTH (-0x1400)
127#define ACTOR_DEATH_FADE_STEP_Q12 0x111
128
137
146
154
172
186
192
200
201#define ACTOR_COLLISION_AUDIO_COOLDOWN_FRAMES 15
202#define ACTOR_FADE_ALPHA_MAX 0x7f
203#define ACTOR_DEATH_FADE_TICKS 15
204#define ACTOR_ANIMATION_FRAMES_PER_SECOND 30
205#define ACTOR_CAMERA_DEATH_TRANSITION_TICKS 30
206#define ACTOR_TARGET_DEFAULT_RADIUS 0x1800
207#define ACTOR_STEERING_PHASE_LIMIT 0x400000
208#define ACTOR_STEERING_PHASE_BIAS 0x800000
209#define ACTOR_PUPPY_MAX_WEIGHT_RATIO 10
210#define ACTOR_FACING_TARGET_TOLERANCE 0x71
211#define ACTOR_POSITION_FACING_EPSILON 0x20
212#define ACTOR_CHILD_TILT_BLEND_TICKS 0x100
213#define ACTOR_GROUND_HEIGHT_SLOP 0xaa
214#define ACTOR_GROUND_ALIGNMENT_NEAR_ONE 0xff8
215#define ACTOR_GROUND_DETACH_SPEED 0x2aa
216#define ACTOR_CONTACT_DEFAULT_IMPULSE 0x199
217#define ACTOR_DAMAGE_ACCELERATION_PRIMARY 0x4cc
218#define ACTOR_DAMAGE_ACCELERATION_SECONDARY 0x999
219#define ACTOR_COLLISION_COMPONENT_QUERY_RADIUS 0x64000
220#define ACTOR_RENDER_EXCLUDED_DISTANCE 0x8381
221#define ACTOR_RENDER_EXCLUDED_RANGE_BEGIN 0x30d40
222#define ACTOR_RENDER_EXCLUDED_RANGE_END 0x493e0
223#define ACTOR_ANIMATION_BLEND_UNIT_Q18 0x40000
224
235
240
241#define ACTOR_VELOCITY_FACING_EPSILON 32
242#define ACTOR_PATH_OCCLUSION_PROBE_RADIUS 16
243#define ACTOR_LANDING_SOUND_BASE_INDEX 11
244#define ACTOR_DEATH_MUSIC_VOLUME_Q12 2048
245#define ACTOR_DEATH_MUSIC_FADE_FRAMES 9
246#define ACTOR_INPUT_CONTACT_LAYER_MAX 11
247#define ACTOR_CONDITION_LAYER_COUNT 11
248#define ACTOR_ANIMATION_DEFAULT_SPEED_Q6 64
249#define ACTOR_ROLL_RECENTER_STEP 64
250
256
264
265#define ACTOR_MOVE_TARGET_GROUND_HEIGHT_SLOP 170
266
267#endif
Actor_InputCondition
Definition constants.h:174
@ ACTOR_INPUT_CONDITION_ACTION_1
Definition constants.h:177
@ ACTOR_INPUT_CONDITION_RIGHT
Definition constants.h:182
@ ACTOR_INPUT_CONDITION_ACTION_2
Definition constants.h:178
@ ACTOR_INPUT_CONDITION_DOWN
Definition constants.h:184
@ ACTOR_INPUT_CONDITION_CONFIRM
Definition constants.h:180
@ ACTOR_INPUT_CONDITION_MOVING
Definition constants.h:176
@ ACTOR_INPUT_CONDITION_LEFT
Definition constants.h:181
@ ACTOR_INPUT_CONDITION_ACTION_3
Definition constants.h:179
@ ACTOR_INPUT_CONDITION_UP
Definition constants.h:183
@ ACTOR_INPUT_CONDITION_ALWAYS
Definition constants.h:175
Actor_TraceTarget
Definition constants.h:156
@ ACTOR_TARGET_BONUS_RESPAWN_POSITION
Definition constants.h:167
@ ACTOR_TARGET_ALL_ENTITIES
Definition constants.h:168
@ ACTOR_TARGET_CURRENT_RESPAWN
Definition constants.h:158
@ ACTOR_TARGET_ENTITY_SCAN
Definition constants.h:160
@ ACTOR_TARGET_LAST_RESPAWN
Definition constants.h:164
@ ACTOR_TARGET_NAVIGATION_POSITION_ALTERNATE
Definition constants.h:165
@ ACTOR_TARGET_CURRENT_RESPAWN_FALLBACK
Definition constants.h:166
@ ACTOR_TARGET_NEAREST_RESPAWN
Definition constants.h:159
@ ACTOR_TARGET_NAVIGATION_POSITION
Definition constants.h:161
@ ACTOR_TARGET_COMMAND_END
Definition constants.h:170
@ ACTOR_TARGET_ACTIVE_ENTITIES
Definition constants.h:157
@ ACTOR_TARGET_CURRENT_RESPAWN_ALTERNATE
Definition constants.h:162
@ ACTOR_TARGET_COMMAND_FIRST
Definition constants.h:169
@ ACTOR_TARGET_FIRST_RESPAWN
Definition constants.h:163
Actor_AnimationState
Definition constants.h:96
@ ACTOR_ANIMATION_NONE
Definition constants.h:97
@ ACTOR_ANIMATION_PRIMARY_ACTION
Definition constants.h:106
@ ACTOR_ANIMATION_SURFACE_MOVE
Definition constants.h:113
@ ACTOR_ANIMATION_ATTACHMENT_ACTION
Definition constants.h:107
@ ACTOR_ANIMATION_IDLE
Definition constants.h:98
@ ACTOR_ANIMATION_RUN
Definition constants.h:101
@ ACTOR_ANIMATION_JUMP_START
Definition constants.h:102
@ ACTOR_ANIMATION_DRIFT
Definition constants.h:105
@ ACTOR_ANIMATION_NO_BONE
Definition constants.h:109
@ ACTOR_ANIMATION_DAMAGE
Definition constants.h:104
@ ACTOR_ANIMATION_BONE_ACTION
Definition constants.h:110
@ ACTOR_ANIMATION_FORCED
Definition constants.h:108
@ ACTOR_ANIMATION_SURFACE_IDLE
Definition constants.h:112
@ ACTOR_ANIMATION_DEATH
Definition constants.h:99
@ ACTOR_ANIMATION_AIRBORNE
Definition constants.h:103
@ ACTOR_ANIMATION_DEATH_SETTLE
Definition constants.h:111
@ ACTOR_ANIMATION_WALK
Definition constants.h:100
Actor_MovementOpcode
Definition constants.h:55
@ ACTOR_MOVE_LEFT
Definition constants.h:58
@ ACTOR_MOVE_STEP_REVERSE
Definition constants.h:62
@ ACTOR_MOVE_REVERSE
Definition constants.h:61
@ ACTOR_MOVE_LATCH_STOP
Definition constants.h:66
@ ACTOR_MOVE_SKIP_UPDATE
Definition constants.h:65
@ ACTOR_MOVE_RIGHT
Definition constants.h:57
@ ACTOR_MOVE_RESET
Definition constants.h:56
@ ACTOR_MOVE_RESUME
Definition constants.h:63
@ ACTOR_MOVE_STEP_FORWARD
Definition constants.h:60
@ ACTOR_MOVE_FORWARD
Definition constants.h:59
@ ACTOR_MOVE_PAUSE
Definition constants.h:64
Actor_TraceFilter
Definition constants.h:252
@ ACTOR_TRACE_FILTER_INACTIVE_ENTITIES
Definition constants.h:254
@ ACTOR_TRACE_FILTER_ACTIVE_ENTITIES
Definition constants.h:253
Actor_ConditionSelector
Definition constants.h:194
@ ACTOR_CONDITION_ALWAYS
Definition constants.h:195
@ ACTOR_CONDITION_HAZARD_TIMER_EXPIRED
Definition constants.h:196
@ ACTOR_CONDITION_INPUT_OR_CONTACT
Definition constants.h:198
@ ACTOR_CONDITION_CAMERA_PRIORITY
Definition constants.h:197
Actor_DeathStage
Definition constants.h:130
@ ACTOR_DEATH_ANIMATING
Definition constants.h:133
@ ACTOR_DEATH_RESPAWN_OR_FADE
Definition constants.h:135
@ ACTOR_DEATH_SETTLING
Definition constants.h:134
@ ACTOR_DEATH_ALIVE
Definition constants.h:131
@ ACTOR_DEATH_WAIT_FOR_LANDING
Definition constants.h:132
Actor_FacingSelector
Definition constants.h:188
@ ACTOR_FACING_ABSOLUTE
Definition constants.h:190
@ ACTOR_FACING_RELATIVE
Definition constants.h:189
Actor_NavigationCommand
Definition constants.h:258
@ ACTOR_NAV_COMMAND_GEOMETRY_CONTACT
Definition constants.h:260
@ ACTOR_NAV_COMMAND_FIRST_COMPONENT_ACTION
Definition constants.h:262
@ ACTOR_NAV_COMMAND_DEATH
Definition constants.h:259
@ ACTOR_NAV_COMMAND_ACTOR_CONTACT
Definition constants.h:261
Actor_TransitionPhase
Definition constants.h:148
@ ACTOR_PHASE_NONE
Definition constants.h:149
@ ACTOR_PHASE_ACTIVE
Definition constants.h:150
@ ACTOR_PHASE_PROJECTILE
Definition constants.h:151
@ ACTOR_PHASE_LEAVING
Definition constants.h:152
Actor_ObjectKind
Definition constants.h:139
@ ACTOR_OBJECT_RUNTIME
Definition constants.h:143
@ ACTOR_OBJECT_STATIC_COLLISION
Definition constants.h:142
@ ACTOR_OBJECT_UNTYPED
Definition constants.h:140
@ ACTOR_OBJECT_SCENE_OWNER
Definition constants.h:141
@ ACTOR_OBJECT_FORCE_EMITTER
Definition constants.h:144
Actor_ContactLayer
Definition constants.h:226
@ ACTOR_CONTACT_CAMERA_OVERRIDE
Definition constants.h:233
@ ACTOR_CONTACT_RESPONSE_SLOT_2
Definition constants.h:229
@ ACTOR_CONTACT_MOVING_PLATFORM
Definition constants.h:232
@ ACTOR_CONTACT_RESPONSE_SLOT_3
Definition constants.h:230
@ ACTOR_CONTACT_RESPONSE_SLOT_4
Definition constants.h:231
@ ACTOR_CONTACT_TIMED_DAMAGE
Definition constants.h:228
@ ACTOR_CONTACT_RESPONSE_SLOT_0
Definition constants.h:227
Actor_RenderExclusionMode
Definition constants.h:237
@ ACTOR_RENDER_DISTANCE_RANGE_EXCLUSION
Definition constants.h:238