Advertisement
fggkyle

Untitled

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