102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
lifecycle.c
Go to the documentation of this file.
1/* Recovered game implementation; original addresses identify provenance. */
11#include "pcdogs/game/globals.h"
14#include "pcdogs/level/types.h"
16#include "pcdogs/math/types.h"
24#include "pcdogs/scene/types.h"
26#include "pcdogs/script/types.h"
28#include "pcdogs/trail/types.h"
29#include <math.h>
30#include <stdarg.h>
31#include <string.h>
32
33// Original pcdogs.exe: 0x403b80
34// Updates live powerup actors and detaches actors marked for removal, stopping positional sound before destroying unreferenced entries. Referenced removed actors remain linked until their references are released.
36{
37 struct Actor *actor = Powerup_LiveActorListHead;
38 struct Actor **list_link = &Powerup_LiveActorListHead;
39
40 for (; actor; actor = *list_link)
41 {
42 struct Actor *update_actor = actor;
43
45 {
46 Physics_UpdateActorBehavior((struct Actor_State *)(update_actor));
47 Actor_ProcessRendering((struct Actor_State *)(actor));
48 list_link = (struct Actor **)(actor);
49 }
50 else
51 {
52 Actor_DetachFromParent((struct Actor_State *)(update_actor));
54
55 int32_t behavior_flags = actor->behavior_flags;
56
58 {
62 Actor_ProcessRendering((struct Actor_State *)(actor));
63 list_link = (struct Actor **)(actor);
64 }
65 else
66 {
67 *list_link = actor->list_next;
68 Actor_Destroy((struct Actor_State *)(actor));
69 }
70 }
71 }
72}
73
74// Original pcdogs.exe: 0x43f500
75// Clears the live powerup list, stops each actor's positional audio, and destroys every actor.
77{
78 struct Actor *actor = Powerup_LiveActorListHead;
79
80 if (!actor)
81 return;
82
84
85 struct Actor *list_next;
86
87 do
88 {
90 list_next = actor->list_next;
91 Actor_Destroy((struct Actor_State *)(actor));
92 actor = list_next;
93 } while (list_next);
94}
95
96// Original pcdogs.exe: 0x43f540
97// Clones a powerup actor template into the live powerup list, returning null for a missing template or clone failure.
99{
100 if (!actor_template)
101 return NULL;
102
104 (struct Actor_State *)(actor_template->lod_nodes), (struct Actor_State **)(&Powerup_LiveActorListHead));
105}
106
107// Original pcdogs.exe: 0x43f560
108// Consumes spawn signals and applies transition, attachment, and visibility gates before spawning powerups. It requires an initialized current level, a valid list for positive counts, and nonnull parents for attached entries.
110{
112 int32_t powerup_index = 0;
113 struct Powerup_Entry *powerup_list = level->powerup_list;
114
115 if ((uint16_t)level->powerup_count == 0)
116 return;
117
118 bool more_powerups;
119
120 do
121 {
122 if (!(powerup_list->flags & POWERUP_ENTRY_COLLECTED))
123 {
124 uint32_t frame_transition_flags = Game_FrameTransitionFlags;
125 int16_t spawn_signal_id = powerup_list->spawn_signal_id;
126 struct Signal_QueueEntry event_buffer;
127
128 event_buffer.signal_id = spawn_signal_id;
129
130 int32_t transition_blocks_spawn = (frame_transition_flags & GAME_TRANSITION_SCRIPT_PAUSED) >> 4;
131
132 if (spawn_signal_id > 0 && Signal_Poll(&event_buffer, 1))
133 {
134 int32_t event_type = (int32_t)event_buffer.event_type;
135
137 {
138 uint8_t flags_1 = powerup_list->flags;
139
140 if (flags_1 & POWERUP_ENTRY_DISABLED || transition_blocks_spawn)
141 {
142 transition_blocks_spawn = 0;
143 powerup_list->flags = flags_1 & (uint8_t)~POWERUP_ENTRY_DISABLED;
144 }
145 }
147 {
148 uint8_t flags = powerup_list->flags;
149
150 if (!(flags & POWERUP_ENTRY_DISABLED))
151 powerup_list->flags = flags | (POWERUP_ENTRY_DISABLED | POWERUP_ENTRY_SPAWN_PENDING);
152 }
153 }
154
155 uint8_t flags_2 = powerup_list->flags;
156
157 if (!(flags_2 & (POWERUP_ENTRY_DISABLED | POWERUP_ENTRY_TRAIL_TARGET_PENDING)) && !transition_blocks_spawn)
158 {
160 {
161 if (powerup_list->flags & POWERUP_ENTRY_SPAWN_PENDING)
162 Powerup_SpawnActorFromEntry(powerup_list);
163 }
164 else
165 {
166 struct Actor *attach_parent_actor = powerup_list->attach_parent_actor;
167
168 if (flags_2 & POWERUP_ENTRY_ATTACHED)
169 {
170 if (!(attach_parent_actor->behavior_flags & ACTOR_BEHAVIOR_SKIP_UPDATE))
171 {
172 if (powerup_list->flags & POWERUP_ENTRY_SPAWN_PENDING)
173 Powerup_SpawnActorFromEntry(powerup_list);
174 }
175 else
176 powerup_list->flags = flags_2 | POWERUP_ENTRY_SPAWN_PENDING;
177 }
178 else if (!attach_parent_actor || (uint32_t)attach_parent_actor->anim_frame_time + 1u >= (uint32_t)g_frameCounter)
179 {
180 if (Graphics_CheckFrustumCull((struct Math_Vec3I32 *)(&powerup_list->pos), POWERUP_SPAWN_CULL_RADIUS, 0))
181 {
182 if (powerup_list->flags & POWERUP_ENTRY_SPAWN_PENDING)
183 Powerup_SpawnActorFromEntry(powerup_list);
184 }
185 else
186 powerup_list->flags |= POWERUP_ENTRY_SPAWN_PENDING;
187 }
188 else
189 powerup_list->flags = flags_2 | POWERUP_ENTRY_SPAWN_PENDING;
190 }
191 }
192 }
193
194 int32_t powerup_count = (uint16_t)(pkg_resource_current_level_data->powerup_count);
195
196 powerup_list = &powerup_list[1];
197 more_powerups = powerup_index + 1 < powerup_count;
198 powerup_index += 1;
199 } while (more_powerups);
200}
201
202// Original pcdogs.exe: 0x43f680
203// Selects a level powerup template, clones an actor, and initializes its position, attachment, and collision state. Clone failure returns without spawning, while template indices remain unchecked and attached entries require a nonnull parent.
205{
206 struct Powerup_Entry *entry = powerup_entry;
207 int32_t template_index;
208
209 if (!(entry->flags & POWERUP_ENTRY_TRAIL_SOURCE))
210 {
211 template_index = (uint8_t)entry->powerup_type;
212 }
213 else
214 template_index = POWERUP_TRAIL_TEMPLATE;
215
217 ->powerup_actor_template_slots[template_index]);
218
219 if (!child_actor)
220 return;
221
222 uint8_t spawned_entry_flags = entry->flags & (uint8_t)~POWERUP_ENTRY_SPAWN_PENDING;
223
224 entry->flags = spawned_entry_flags;
225
226 struct Math_Vec3I32 *spawn_position;
227 struct Math_Vec3I32 attachment_position;
228
229 if (spawned_entry_flags & POWERUP_ENTRY_ATTACHED)
230 {
231 struct Actor *attach_parent_actor = entry->attach_parent_actor;
232
233 Actor_AttachToParent(child_actor, (struct Actor_State *)(attach_parent_actor), (struct Scene_TransformNodePrefix *)(attach_parent_actor), 0);
234 child_actor->attach_offset.x = (int32_t)entry->spawn_params_a << 6;
235 child_actor->attach_offset.y = (int32_t)entry->spawn_params_b << 6;
236 child_actor->attach_offset.z = (int32_t)(int16_t)entry->runtime_value_08 << 6;
237
238 int64_t world_x_from_local_x_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m00 * child_actor->attach_offset.x;
239 int64_t world_x_from_local_y_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m01 * child_actor->attach_offset.y;
240 int64_t world_x_from_local_z_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m02 * child_actor->attach_offset.z;
241
242 attachment_position.x = attach_parent_actor->position.x + ((int32_t)(((uint64_t)world_x_from_local_z_wide + (uint64_t)world_x_from_local_x_wide + (uint64_t)world_x_from_local_y_wide) >> 12));
243
244 int64_t world_y_from_local_x_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m10 * child_actor->attach_offset.x;
245 int64_t world_y_from_local_y_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m11 * child_actor->attach_offset.y;
246 int64_t world_y_from_local_z_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m12 * child_actor->attach_offset.z;
247
248 attachment_position.y = attach_parent_actor->position.y + ((int32_t)(((uint64_t)world_y_from_local_z_wide + (uint64_t)world_y_from_local_x_wide + (uint64_t)world_y_from_local_y_wide) >> 12));
249
250 int64_t world_z_from_local_x_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m20 * child_actor->attach_offset.x;
251 int64_t world_z_from_local_y_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m21 * child_actor->attach_offset.y;
252 int64_t world_z_from_local_z_wide = (int64_t)(int32_t)attach_parent_actor->rot_mat.m22 * child_actor->attach_offset.z;
253
254 entry = powerup_entry;
255 spawn_position = &attachment_position;
256 attachment_position.z = attach_parent_actor->position.z + ((int32_t)(((uint64_t)world_z_from_local_z_wide + (uint64_t)world_z_from_local_x_wide + (uint64_t)world_z_from_local_y_wide) >> 12));
257 }
258 else
259 spawn_position = (struct Math_Vec3I32 *)(&entry->pos);
260
261 child_actor->position.x = spawn_position->x;
262 child_actor->position.y = spawn_position->y;
263
264 int32_t spawn_z = spawn_position->z;
265
266 child_actor->ground_collision_node = NULL;
267 child_actor->fade_timer = 1;
268 child_actor->position.z = spawn_z;
269
270 int32_t behavior_flags = child_actor->behavior_flags;
271
272 behavior_flags &= ~(uint32_t)ACTOR_BEHAVIOR_AIRBORNE;
273 child_actor->movement_handler_index = 0;
274
275 int32_t spawned_behavior_flags = behavior_flags | (ACTOR_BEHAVIOR_POWERUP_ACTOR | ACTOR_BEHAVIOR_BYPASS_COLLISION | ACTOR_BEHAVIOR_MOVEMENT_LOCKED);
276
279 child_actor->record_ptr = entry;
280 child_actor->behavior_flags = spawned_behavior_flags;
281
282 if (!(entry->flags & POWERUP_ENTRY_TRAIL_SOURCE))
283 return;
284
285 spawned_behavior_flags |= ACTOR_BEHAVIOR_GROUND_TILT_ENABLED;
287 child_actor->behavior_flags = spawned_behavior_flags;
288}
289
290// Original pcdogs.exe: 0x43f850
291// Installs powerup phase and collision callbacks, then marks entries pending when the level has entities and powerups. The entity-count gate is not a powerup-array bound, and a positive powerup count still requires a valid list.
293{
295
298
299 if (!level || (uint16_t)level->entity_count == 0)
300 return;
301
302 uint32_t powerup_index = 0;
303
304 if ((uint16_t)level->powerup_count == 0)
305 return;
306
307 struct Powerup_Entry *entry = level->powerup_list;
308 uint32_t powerup_count;
309
310 do
311 {
312 uint8_t flags = entry->flags;
313
315 {
318 }
319
320 powerup_index += 1;
321 powerup_count = (uint16_t)level->powerup_count;
322 entry += 1;
323 } while (powerup_index < powerup_count);
324}
325
326// Original pcdogs.exe: 0x43f8b0
327// Updates a powerup actor's phase, respawning or marking it for removal according to its entry state. The callback communicates through side effects only.
328void Powerup_UpdateActorState(struct Actor_State *powerup_actor)
329{
330 struct Powerup_Entry *source_entry = powerup_actor->record_ptr;
331
332 if (!powerup_actor->anim_asset_table->anim_ptrs[1])
333 {
335
336 if (source_entry)
337 {
338 Powerup_SpawnActorFromEntry(source_entry);
339
340 uint8_t destroy_pending_flags = powerup_actor->lifecycle_flags | ACTOR_LIFECYCLE_DESTROYING;
341
342 powerup_actor->transition_phase = POWERUP_PHASE_IDLE;
343 powerup_actor->lifecycle_flags = destroy_pending_flags;
344
345 return;
346 }
347 }
348 else if (Actor_GetAnimSeqIndex(powerup_actor) != POWERUP_ANIMATION_COLLECTION)
349 {
351
352 if (!source_entry)
354 }
355 else if (Actor_GetAnimationProgress(powerup_actor) >= MATH_Q12_ONE)
356 {
357 if (source_entry)
358 {
359 Powerup_SpawnActorFromEntry(source_entry);
360
361 uint8_t destroy_pending_flags = powerup_actor->lifecycle_flags | ACTOR_LIFECYCLE_DESTROYING;
362
363 powerup_actor->transition_phase = POWERUP_PHASE_IDLE;
364 powerup_actor->lifecycle_flags = destroy_pending_flags;
365
366 return;
367 }
368 }
369
370 if (!powerup_actor->record_ptr)
371 powerup_actor->transition_phase = POWERUP_PHASE_IDLE;
372}
373
374// Original pcdogs.exe: 0x43f940
375// Returns zero immediately unless the incoming collision result is -2. For that result it suppresses flagged powerups or non-player actors with -2, marking flagged powerups for removal, and permits player collection with zero. The reserved argument is unused.
376int32_t Powerup_FilterCollision(struct Actor_State *powerup_actor, struct Actor_State *other_actor, int32_t reserved_zero, int32_t collision_result)
377{
378 (void)reserved_zero;
379 if (collision_result != POWERUP_COLLISION_FILTERED)
380 return 0;
381
382 if (((struct Powerup_Entry *)powerup_actor->record_ptr)->flags & (POWERUP_ENTRY_DISABLED | POWERUP_ENTRY_SPAWN_PENDING))
383 {
384 uint8_t lifecycle_flags = powerup_actor->lifecycle_flags;
385
386 powerup_actor->collision_class = 0;
387 powerup_actor->lifecycle_flags = lifecycle_flags | ACTOR_LIFECYCLE_DESTROYING;
388
390 }
391
392 return ((other_actor->actor_type != ACTOR_OBJECT_RUNTIME) ? (int32_t)POWERUP_COLLISION_FILTERED : 0);
393}
394
395// Original pcdogs.exe: 0x43f980
396// Applies a normal powerup or advances the special trail-spawn countdown, then clears collision state, changes phase, and detaches the actor. Early exits preserve animation and spawn timing, and the handler has no result contract.
397void Powerup_HandleCollection(struct Actor_State *powerup_actor, struct Actor_State *collector_actor)
398{
399 struct Powerup_Entry *source_entry = powerup_actor->record_ptr;
400
401 if (!(source_entry->flags & POWERUP_ENTRY_TRAIL_SOURCE))
402 {
403 int32_t powerup_type = (uint8_t)(source_entry->powerup_type);
404
406 source_entry->flags |= POWERUP_ENTRY_COLLECTED;
407 powerup_actor->record_ptr = NULL;
408 powerup_actor->collision_class = 0;
410 Actor_DetachFromParent(powerup_actor);
411
412 return;
413 }
414
415 struct Pkg_ActorRecord *collector_record = collector_actor->record_ptr;
416 uint32_t collector_powerup_flags = (uint32_t)collector_record->reserved_160[8] |
417 (uint32_t)collector_record->reserved_160[9] << 8 |
418 (uint32_t)collector_record->reserved_160[0xa] << 16 |
419 (uint32_t)collector_record->reserved_160[0xb] << 24;
420 int32_t enabled_collector_powerup_flags = collector_powerup_flags | POWERUP_COLLECTOR_TRAIL_ENABLED;
421
422 collector_record->reserved_160[8] = (uint8_t)enabled_collector_powerup_flags;
423 collector_record->reserved_160[9] = (uint32_t)enabled_collector_powerup_flags >> 8;
424 collector_record->reserved_160[0xa] = (uint32_t)enabled_collector_powerup_flags >> 16;
425 collector_record->reserved_160[0xb] = (uint32_t)enabled_collector_powerup_flags >> 24;
426 powerup_actor->fade_timer -= 1;
427
428 if (!powerup_actor->fade_timer)
429 {
430 source_entry->flags &= (uint8_t)~POWERUP_ENTRY_TRAIL_SOURCE;
431
432 powerup_actor->collision_class = 0;
434 Actor_DetachFromParent(powerup_actor);
435
436 return;
437 }
438
440 {
443
444 return;
445 }
446
447 uint32_t spawn_period = (uint32_t)((int32_t)(int16_t)pkg_resource_current_level_data->trail_list[7].spawn_interval + 1);
448
449 if ((uint32_t)g_frameCounter % spawn_period)
450 return;
451
452 if (g_powerupSpawnDelay <= 0)
453 {
455
456 return;
457 }
458
459 Trail_SpawnFromEntry(collector_actor, 7);
461}
#define ACTOR_BEHAVIOR_SKIP_UPDATE
Definition constants.h:7
@ ACTOR_ANIMATION_BONE_ACTION
Definition constants.h:110
#define ACTOR_BEHAVIOR_MOVEMENT_LOCKED
Definition constants.h:16
#define ACTOR_BEHAVIOR_DESTROY_AFTER_ANIMATION
Definition constants.h:28
#define ACTOR_BEHAVIOR_AIRBORNE
Definition constants.h:13
#define ACTOR_BEHAVIOR_POWERUP_ACTOR
Definition constants.h:69
#define ACTOR_BEHAVIOR_GROUND_TILT_ENABLED
Definition constants.h:21
#define ACTOR_LIFECYCLE_DESTROYING
Definition constants.h:43
@ ACTOR_OBJECT_RUNTIME
Definition constants.h:143
#define ACTOR_BEHAVIOR_BYPASS_COLLISION
Definition constants.h:18
#define ACTOR_BEHAVIOR_PREPROCESSED
Definition constants.h:20
struct Scene_TransformNodePrefix * Actor_AttachToParent(struct Actor_State *child_actor, struct Actor_State *parent_actor, struct Scene_TransformNodePrefix *attach_point_or_auto_sentinel, uint32_t attachment_flags_and_face_selector)
void Actor_ProcessRendering(struct Actor_State *actor)
Definition rendering.c:86
void Actor_DetachFromParent(struct Actor_State *actor)
int32_t Actor_GetAnimSeqIndex(struct Actor_State *actor)
Definition animation.c:519
int32_t Actor_GetAnimationProgress(struct Actor_State *actor)
Definition animation.c:526
struct Actor_State * Actor_CloneTemplateWithTemplateRelativeFixups(struct Actor_State *template_actor, struct Actor_State **list_head)
Definition lifecycle.c:311
void Actor_Destroy(struct Actor_State *actor)
Definition lifecycle.c:568
void Animation_QueueStateChange(int32_t anim_state)
Definition controller.c:71
#define AUDIO_INVALID_SOUND_INDEX
Definition constants.h:49
#define AUDIO_DETACH_EMITTER_MODE
Definition constants.h:50
void Audio_StopOrUpdateSoundsAtPosition(int32_t sound_index_or_mode, struct Math_Vec3I32 *position, char looping_only)
Definition spatial.c:76
@ COLLISION_ACTOR_CLASS_POWERUP
Definition constants.h:70
#define GAME_TRANSITION_SCRIPT_PAUSED
Definition constants.h:20
void Player_CollectPowerup(int32_t powerup_type)
Definition player.c:694
#define Game_FrameTransitionFlags
Definition globals.h:47
int32_t Graphics_CheckFrustumCull(struct Math_Vec3I32 *position, int32_t cull_radius, uint32_t cull_flags)
Definition clipping.c:772
#define MATH_Q12_ONE
Definition constants.h:9
#define pkg_resource_current_level_data
Definition globals.h:117
void Physics_UpdateActorBehavior(struct Actor_State *actor)
Definition behavior.c:565
@ POWERUP_ANIMATION_COLLECTION
Definition constants.h:34
#define POWERUP_COLLECTOR_TRAIL_ENABLED
Definition constants.h:30
#define POWERUP_ENTRY_TRAIL_SOURCE
Definition constants.h:10
#define POWERUP_SPAWN_CULL_RADIUS
Definition constants.h:28
#define POWERUP_ENTRY_ATTACHED
Definition constants.h:8
@ POWERUP_PHASE_IDLE
Definition constants.h:39
@ POWERUP_PHASE_COLLECTED
Definition constants.h:40
@ POWERUP_COLLISION_FILTERED
Definition constants.h:45
#define POWERUP_TRAIL_WARMUP_FRAMES
Definition constants.h:29
#define POWERUP_ENTRY_COLLECTED
Definition constants.h:6
#define POWERUP_ENTRY_DISABLED
Definition constants.h:7
#define POWERUP_ENTRY_TRAIL_TARGET_PENDING
Definition constants.h:11
#define POWERUP_ENTRY_SPAWN_PENDING
Definition constants.h:9
@ POWERUP_TRAIL_TEMPLATE
Definition constants.h:19
@ POWERUP_SIGNAL_ENABLE
Definition constants.h:24
@ POWERUP_SIGNAL_DISABLE
Definition constants.h:25
void Powerup_Cleanup(void)
Definition lifecycle.c:76
int32_t Powerup_FilterCollision(struct Actor_State *powerup_actor, struct Actor_State *other_actor, int32_t reserved_zero, int32_t collision_result)
Definition lifecycle.c:376
void Powerup_UpdateActorState(struct Actor_State *powerup_actor)
Definition lifecycle.c:328
#define g_powerupSpawnDelay
Definition globals.h:18
#define Powerup_CollisionFilterCallback
Definition globals.h:9
#define Powerup_InitializeSystem_UpdateCallback
Definition globals.h:12
#define Powerup_LiveActorListHead
Definition globals.h:15
void Powerup_UpdateSpawnLogic()
Definition lifecycle.c:109
void Powerup_InitializeSystem()
Definition lifecycle.c:292
struct Actor_State * Powerup_CloneActorFromTemplate(struct Pkg_ActorTemplate *actor_template)
Definition lifecycle.c:98
void Powerup_UpdateLiveActorList()
Definition lifecycle.c:35
int32_t Powerup_FilterCollision(struct Actor_State *powerup_actor, struct Actor_State *other_actor, int32_t reserved_zero, int32_t collision_result)
Definition lifecycle.c:376
void Powerup_SpawnActorFromEntry(struct Powerup_Entry *powerup_entry)
Definition lifecycle.c:204
void Powerup_HandleCollection(struct Actor_State *powerup_actor, struct Actor_State *collector_actor)
Definition lifecycle.c:397
void Powerup_UpdateActorState(struct Actor_State *powerup_actor)
Definition lifecycle.c:328
uint8_t Signal_Poll(struct Signal_QueueEntry *event_buffer, int32_t max_events)
Definition signals.c:37
uint8_t collision_class
Definition types.h:435
uint8_t transition_phase
Definition types.h:434
uint8_t lifecycle_flags
Definition types.h:392
uint8_t movement_handler_index
Definition types.h:433
uint8_t actor_type
Definition types.h:391
struct Actor_State * child_actor
Definition types.h:478
struct Collision_Node * ground_collision_node
Definition types.h:451
struct Animation_StateTable * anim_asset_table
Definition types.h:425
int32_t behavior_flags
Definition types.h:407
void * record_ptr
Definition types.h:477
int16_t fade_timer
Definition types.h:438
struct Math_Vec3I32 position
Definition types.h:385
Definition types.h:118
uint8_t lifecycle_flags
Definition types.h:139
struct Math_Matrix3x3I16 rot_mat
Definition types.h:130
struct Math_Vec3I32 position
Definition types.h:132
struct Actor * list_next
Definition types.h:119
struct Math_Vec3I32 attach_offset
Definition types.h:129
int32_t anim_frame_time
Definition types.h:137
int32_t behavior_flags
Definition types.h:160
struct Actor * child_actor
Definition types.h:208
uint8_t attach_refcount
Definition types.h:189
struct Animation_DataBlock * anim_ptrs[0x2b]
Definition types.h:422
int16_t powerup_count
Definition types.h:50
int16_t entity_count
Definition types.h:44
struct Powerup_Entry * powerup_list
Definition types.h:52
int16_t m21
Definition types.h:169
int16_t m00
Definition types.h:162
int16_t m01
Definition types.h:163
int16_t m12
Definition types.h:167
int16_t m11
Definition types.h:166
int16_t m20
Definition types.h:168
int16_t m22
Definition types.h:170
int16_t m02
Definition types.h:164
int16_t m10
Definition types.h:165
int32_t y
Definition types.h:471
int32_t x
Definition types.h:470
int32_t z
Definition types.h:472
uint8_t reserved_160[0xc]
Definition types.h:1118
struct PKG_ObjectNodeFixupView * lod_nodes
Definition types.h:158
Definition types.h:9
int32_t runtime_value_08
Definition types.h:13
struct Powerup_Entry::@336143272047254075051102357366017247347220271357 pos
int16_t spawn_params_b
Definition types.h:12
int16_t spawn_signal_id
Definition types.h:16
int16_t spawn_params_a
Definition types.h:11
uint8_t powerup_type
Definition types.h:14
struct Actor * attach_parent_actor
Definition types.h:10
uint8_t flags
Definition types.h:15
int16_t signal_id
Definition types.h:60
uint8_t event_type
Definition types.h:61
struct Actor_State * Trail_SpawnFromEntry(struct Actor_State *actor, int32_t trail_index)
Definition effects.c:124
#define g_frameCounter
Definition values.h:501