Advertisement
fggkyle

Untitled

Sep 7th, 2020 (edited)
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.85 KB | None | 0 0
  1. void func_80AE7590(EnRl *this, GlobalContext *globalCtx) {
  2.     CsCmdActorAction* action = globalCtx->csCtx.npcActions[6];
  3.     Player *player;
  4.     f32 posX;
  5.     f32 posY;
  6.     f32 posZ;
  7.    
  8.     if (gSaveContext.sceneSetupIndex == 4 && globalCtx->sceneNum == SCENE_KENJYANOMA && globalCtx->csCtx.state != 0) {
  9.         if (action != NULL && action->action == 2 ) {
  10.             if (this->unk_1A8 == 0) {
  11.                 player = PLAYER;
  12.                 posX = player->actor.posRot.pos.x;
  13.                 posY = player->actor.posRot.pos.y + 80.0f;
  14.                 posZ = player->actor.posRot.pos.z;
  15.                 Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_DEMO_EFFECT, posX,
  16.                 posY, posZ, 0, 0, 0, 0xE);
  17.                 Item_Give(globalCtx, ITEM_MEDALLION_LIGHT);
  18.                 this->unk_1A8 = 1;
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement