theballaam96

Racing Squawks Code (For US Final)

Nov 5th, 2025
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.23 KB | None | 0 0
  1. void CavesSquawksCode(void) {
  2.     short *paad2 = CurrentActorPointer_0->paad2;
  3.     actorData *parent = CurrentActorPointer_0->parent;
  4.     initCharSpawnerActor();
  5.     if ((CurrentActorPointer_0->obj_props_bitfield & 0x10) == 0) {
  6.         modifyCharSpawnerAttributes(0x23D, 0x23D, 0x23E);
  7.         CurrentActorPointer_0->control_state = 2;
  8.         ActorPaad->counter = 0x10;
  9.         *paad2 = 0x78;
  10.         spawnTimer(0xDC, 0x2A, 0x64);
  11.         parent = CurrentActorPointer_0->parent;
  12.         parent->control_state = 2;
  13.         parent->control_state_progress = 0;
  14.         parent->shadow_intensity = 255;
  15.         TiedCharacterSpawner->unk_46 |= 0x24;
  16.         setHUDItemAsInfinite(ITEMID_CRYSTALS, 0, 1);
  17.     }
  18.     if (parent) {
  19.         if (parent->control_state == 5) {
  20.             CurrentActorPointer_0->control_state = 0x23;
  21.             CurrentActorPointer_0->control_state_progress = 0;
  22.         }
  23.     }
  24.     if (CurrentActorPointer_0->control_state == 0x23) {
  25.         CurrentActorPointer_0->control_state = 0x37;
  26.         setHUDItemAsInfinite(ITEMID_CRYSTALS, 0, 0);
  27.         deleteActorContainer(CurrentActorPointer_0->parent);
  28.     }
  29.     int state = ringRaceHandle(0x78, 0x10);
  30.     if ((state == 1) || (state == 2))  {
  31.         if (parent) {
  32.             parent->control_state = 0;
  33.         }
  34.         CurrentActorPointer_0->control_state = 0x23;
  35.         CurrentActorPointer_0->control_state_progress = 0;
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment