Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_80AE7590(EnRl *this, GlobalContext *globalCtx) {
- CsCmdActorAction* action = globalCtx->csCtx.npcActions[6];
- Player *player;
- f32 posX;
- f32 posY;
- f32 posZ;
- if (gSaveContext.sceneSetupIndex == 4 && globalCtx->sceneNum == SCENE_KENJYANOMA && globalCtx->csCtx.state != 0) {
- if (action != NULL && action->action == 2 ) {
- if (this->unk_1A8 == 0) {
- player = PLAYER;
- posX = player->actor.posRot.pos.x;
- posY = player->actor.posRot.pos.y + 80.0f;
- posZ = player->actor.posRot.pos.z;
- Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_DEMO_EFFECT, posX,
- posY, posZ, 0, 0, 0, 0xE);
- Item_Give(globalCtx, ITEM_MEDALLION_LIGHT);
- this->unk_1A8 = 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement