45 uint8_t *operand_cursor = (*script_cursor_inout + 1);
47 *script_cursor_inout = (operand_cursor);
49 uint8_t collision_slot = operand_cursor[-1];
51 *script_cursor_inout = (&operand_cursor[2]);
54 int16_t path_selector = 0;
58 path_selector = (uint32_t)(*(
const volatile uint8_t *)operand_cursor) << 8;
59 path_selector |= ((
const volatile uint8_t *)operand_cursor)[1];
64 int16_t attach_offset_x;
71 Actor_TracePath(script_entity, (int32_t)path_selector, INT32_MAX, INT32_MAX, 0);
79 if (attach_offset_x > 0)
92 uint32_t flags = script_entity->
flags;
102 uint8_t *operand_cursor = (*script_cursor_inout + 1);
104 *script_cursor_inout = operand_cursor;
106 uint8_t input_source_index = operand_cursor[-1];
118 uint32_t input_state_index;
127 bool has_nonnegative_lives = (int16_t)player_record->
lives_remaining >= 0;
131 if (!has_nonnegative_lives)
143 int32_t pause_entity_index = 0;
151 if (pause_reference_actor)
159 if (!entity || !script_cursor_inout)
162 int32_t pause_mode = 0;
163 uint8_t *operand_cursor = (*script_cursor_inout + 1);
165 *script_cursor_inout = (operand_cursor);
166 pause_mode = (uint8_t)(operand_cursor[-1]);
192 pkg_resource_current_level_data_3->
cam_current = NULL;
231 actor_collision_list_head = (
struct Actor **)(collision_head);
242 else if (!has_player_controller)
252 *(uint32_t *)actor_collision_list_head = (uint32_t)(collision_head->
list_next);
254 collision_head = (
struct Actor *)(*(uint32_t *)actor_collision_list_head);
255 }
while (collision_head);
261 if (pkg_resource_current_level_data_2->
entity_count > 0)
263 int32_t pause_entity_count;
274 uint32_t flags_1 = entity_array_1->
flags;
278 entity_array_1->
flags = flags_1;
299 uint32_t flags_2 = entity_array_1->
flags;
302 entity_array_1->
flags = flags_2;
311 pause_entity_index += 1;
312 entity_array_1 = &entity_array_1[1];
314 }
while (pause_entity_index < pause_entity_count);
330 int32_t resume_entity_index = 0;
335 int32_t resume_entity_count;
339 if (entity_array != entity)
350 uint32_t flags_3 =
flags;
354 entity_array->
flags = flags_3;
362 resume_entity_index += 1;
363 entity_array = &entity_array[1];
365 }
while (resume_entity_index < resume_entity_count);
387 uint8_t *operand_cursor = &(*script_cursor_inout)[1];
389 *script_cursor_inout = operand_cursor;
398 uint32_t wait_delta = 0;
399 int16_t animation_id = 0;
401 uint8_t *operand_cursor = (*script_cursor_inout + 2);
403 *script_cursor_inout = (operand_cursor);
404 wait_delta = (uint32_t)(operand_cursor[-2]) << 8;
405 wait_delta |= operand_cursor[-1];
406 *script_cursor_inout = (&operand_cursor[2]);
410 animation_id = (uint32_t)(*(uint8_t *)operand_cursor) << 8;
411 animation_id |= operand_cursor[1];
421 *script_cursor_inout = (&operand_cursor[wait_delta]);
429 uint8_t *operand_cursor = (*script_cursor_inout + 1);
431 *script_cursor_inout = (operand_cursor);
437 *script_cursor_inout = (&operand_cursor[4]);
443 *script_cursor_inout = (&operand_cursor[4]);
445 int32_t property_value = (uint32_t)(*(uint8_t *)operand_cursor) << 24;
447 property_value |= (uint32_t)(operand_cursor[2]) << 8;
448 property_value |= (uint32_t)(operand_cursor[1]) << 16;
449 property_value |= operand_cursor[3];
458 uint8_t *operand_cursor = (*script_cursor_inout + 1);
460 *script_cursor_inout = (operand_cursor);
471 int16_t actor_selector = 0;
472 uint8_t *operand_cursor = &(*script_cursor_inout)[2];
474 *script_cursor_inout = operand_cursor;
475 actor_selector = (uint32_t)(operand_cursor[-2]) << 8;
476 actor_selector |= operand_cursor[-1];
477 *script_cursor_inout = &operand_cursor[1];
496 if (actor_selector > 0)
506 uint32_t wait_delta = 0;
507 uint8_t *operand_cursor = (*script_cursor_inout + 2);
509 *script_cursor_inout = (operand_cursor);
510 wait_delta = (uint32_t)(operand_cursor[0xfffffffe]) << 8;
511 wait_delta |= operand_cursor[-1];
512 *script_cursor_inout = (&operand_cursor[1]);
514 uint8_t transition_id = *(uint8_t *)operand_cursor;
516 *script_cursor_inout = (&operand_cursor[2]);
518 uint8_t mode_byte = operand_cursor[1];
523 *script_cursor_inout = (&operand_cursor[6]);
525 int32_t start_delay = (uint32_t)(operand_cursor[2]) << 24;
528 start_delay |= (uint32_t)(operand_cursor[4]) << 8;
529 start_delay |= (uint32_t)(operand_cursor[3]) << 16;
530 start_delay |= operand_cursor[5];
531 *script_cursor_inout = (&operand_cursor[0xa]);
535 int32_t mid_duration = (uint32_t)(operand_cursor[8]) << 8;
537 mid_duration |= (uint32_t)(operand_cursor[6]) << 24;
538 mid_duration |= (uint32_t)(operand_cursor[7]) << 16;
539 mid_duration |= operand_cursor[9];
540 *script_cursor_inout = (&operand_cursor[0xe]);
544 int32_t end_duration = (uint32_t)(operand_cursor[0xc]) << 8;
546 end_duration |= (uint32_t)(operand_cursor[0xa]) << 24;
547 end_duration |= (uint32_t)(operand_cursor[0xb]) << 16;
548 end_duration |= operand_cursor[0xd];
554 *script_cursor_inout = (&operand_cursor[0xa]);
556 int32_t direct_mid_duration = (uint32_t)(operand_cursor[6]) << 24;
558 direct_mid_duration |= (uint32_t)(operand_cursor[7]) << 16;
559 direct_mid_duration |= (uint32_t)(operand_cursor[8]) << 8;
560 direct_mid_duration |= operand_cursor[9];
563 *script_cursor_inout = (&operand_cursor[0xe]);
572 int16_t selected_entity_index = (uint16_t)entity_index_quotient + (int16_t)(entity_index_quotient >> 0x1f);
583 *script_cursor_inout = (&operand_cursor[wait_delta]);
591 uint32_t fail_delta = 0;
592 uint8_t *operand_cursor = (*script_cursor_inout + 2);
594 *script_cursor_inout = operand_cursor;
595 fail_delta = (uint32_t)(operand_cursor[0xfffffffe]) << 8;
596 fail_delta |= operand_cursor[-1];
597 *script_cursor_inout = &operand_cursor[1];
599 uint8_t input_device = *operand_cursor;
601 *script_cursor_inout = &operand_cursor[2];
603 uint8_t button_id = operand_cursor[1];
605 *script_cursor_inout = &operand_cursor[3];
608 *script_cursor_inout = &operand_cursor[fail_delta];
#define ACTOR_LIFECYCLE_DISABLED
#define ACTOR_BEHAVIOR_GROUND_TRACKING
#define ACTOR_BEHAVIOR_WORKLIST_MEMBER
#define ACTOR_LIFECYCLE_DESTROYING
void Actor_AddToCollisionList(struct Actor_State *actor)
void Actor_ReleaseBindings(struct Player_ControllerRecordView *record)
int32_t Actor_TracePath(struct Entity *entity, int32_t target_selector, int32_t max_path_distance, int32_t best_path_distance, int32_t trace_flags)
int32_t Actor_GetAnimationWaitStatus(struct Actor_State *actor, int32_t anim_seq_index)
void Actor_ReleaseAttachment(struct Actor_MovementRecordView *record)
void Actor_SnapToPosition(struct Actor_State *actor)
#define Actor_CollisionListHead
void Script_OpCheckButtonState(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpPauseToggle(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpSetEntityIndex(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpSetPlayerState(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpSetActorProperty(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpUpdateCollisionAndSetFlag(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpClearActorProperty(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpRemoveActor(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpWaitForAnimation(struct Entity *entity, uint8_t **script_cursor_inout)
void Script_OpTriggerLevelTransition(struct Entity *entity, uint8_t **script_cursor_inout)
#define g_animationTimerState
void Audio_StartMusicWithFade(struct Audio_MusicStreamRecord *stream_record)
void Audio_StopOrUpdateSoundsAtPosition(int32_t sound_index_or_mode, struct Math_Vec3I32 *position, char looping_only)
void Audio_StopMusicAndPause(void)
#define Audio_TriggerMusicTransition_CurrentTrackIndex
#define g_cameraTransitionCountdown
#define g_pauseCameraDistance
#define g_pauseCameraOrbitAngleDeg
#define g_pauseCameraHeight
@ COMPONENT_PHASE_PAUSE_ATTACHMENT
@ COMPONENT_PHASE_DEFERRED_PROJECTILE
void Component_UpdateCollisionDetection(struct Component_CollisionRecord *collision_records, int32_t slot_count, struct Actor_State *actor, struct Actor_State *other_actor, struct Math_Vec3I32 *test_pos)
void Projectile_DestroyAllLiveActors(void)
#define ENTITY_FLAG_COLLISION_LIST_UNLINKED
#define ENTITY_FLAG_PAUSE_EXEMPT
#define ENTITY_INDEX_RECIPROCAL
#define ENTITY_FLAG_BIT_1
#define ENTITY_FLAG_BIT_0
#define ENTITY_FLAG_ACTIVE_WORKLIST_REQUEST
#define ENTITY_FLAG_SCRIPT_PAUSED
#define ENTITY_FLAG_RESTORE_DEFAULTS
void Entity_SetActorProperty(struct Entity *entity, enum Actor_PropID prop_id, int32_t value)
struct Actor_State * Entity_GetCurrentOrFirstActiveActor(void)
void Entity_DestroyActor(struct Entity *entity, int32_t restore_defaults)
#define GAME_TRANSITION_FADE_COUNTDOWN
#define GAME_PAUSE_FRAMES
#define GAME_TRANSITION_SCRIPT_PAUSED
@ GAME_MODE_PAUSE_BLOCKED
void Player_InitializeState(struct Entity *entity, struct Pkg_ActorRecord *record)
#define Game_FrameTransitionFlags
#define g_currentGameMode
@ LEVEL_TRANSITION_DEFAULT
BOOL Level_TriggerTransition(int32_t target_level_index, int32_t transition_mode, struct Level_TransitionTimingData const *transition_timing)
#define g_levelTransitionState
#define g_levelTransitionFlag
#define pkg_resource_current_level_data
void Powerup_Cleanup(void)
void Powerup_InitializeSystem(void)
#define SCRIPT_DEFAULT_PAUSE_CAMERA_OFFSET
#define SCRIPT_FLAG_INDEX_MASK
#define SCRIPT_FLAG_BIT_UNIT
#define SCRIPT_PLAYER_PAUSE_ATTACHMENT
#define SCRIPT_PAUSE_DETACH_TICKS
#define SCRIPT_ANIMATION_PENDING
#define SCRIPT_DEFAULT_PAUSE_ORBIT_DEGREES
@ SCRIPT_INPUT_ANY_BUTTON
#define SCRIPT_CAMERA_FOV_SCALE
struct Actor * global_type_g_scriptPauseToggleState
#define Script_OpPauseToggle_SavedActorWorldRenderPosZ
#define g_scriptCurrentEntity
#define g_scriptPauseToggleState
#define Script_OpPauseToggle_SavedActorWorldRenderPosX
#define Script_OpPauseToggle_SavedActorWorldRenderPosY
struct Math_Vec3I32 world_render_pos
struct Pkg_ActorRecord * record_ptr
uint8_t movement_handler_index
struct Math_Vec3I32 * position_ptr
struct Actor * runtime_actor
struct Math_Vec3I32 path_result
int16_t default_anim_state
struct Pkg_CameraDef * cam_default
struct Pkg_CameraDef * cam_current
int16_t current_entity_index
struct Entity * entity_array
int32_t mid_duration_fp12
int32_t end_duration_fp12
int16_t owner_entity_index
uint8_t input_source_index
void Trail_ResetBone(void)
#define g_pauseTargetDistance
#define g_screenBorderStateFlag
#define g_pauseTargetRotationAngle
#define g_pauseTargetYOffset