Mercurial > mm7
comparison mm7_3.cpp @ 165:572d821561f3
MenuID
author | Ritor1 |
---|---|
date | Thu, 14 Feb 2013 14:48:43 +0600 |
parents | a0e7ad5425d4 |
children | 71b13d70f5a6 |
comparison
equal
deleted
inserted
replaced
164:4b61b82a0bf7 | 165:572d821561f3 |
---|---|
15614 | 15614 |
15615 | 15615 |
15616 //----- (00444A51) -------------------------------------------------------- | 15616 //----- (00444A51) -------------------------------------------------------- |
15617 char *__cdecl TransitionUI_Draw() | 15617 char *__cdecl TransitionUI_Draw() |
15618 { | 15618 { |
15619 MapInfo *v0; // esi@5 | 15619 MapInfo *pMapInfo; // esi@5 |
15620 char *v1; // eax@6 | 15620 char *v1; // eax@6 |
15621 char *result; // eax@12 | 15621 char *result; // eax@12 |
15622 std::string v3; // [sp-18h] [bp-84h]@11 | 15622 std::string v3; // [sp-18h] [bp-84h]@11 |
15623 unsigned int v4; // [sp-10h] [bp-7Ch]@12 | 15623 unsigned int v4; // [sp-10h] [bp-7Ch]@12 |
15624 int v5; // [sp-Ch] [bp-78h]@12 | 15624 int v5; // [sp-Ch] [bp-78h]@12 |
15631 | 15631 |
15632 memcpy(&v8, pPrimaryWindow, sizeof(v8)); | 15632 memcpy(&v8, pPrimaryWindow, sizeof(v8)); |
15633 v10 = pMapStats->GetMapInfo(pCurrentMapName); | 15633 v10 = pMapStats->GetMapInfo(pCurrentMapName); |
15634 v9 = IndoorLocation::GetLocationIndex(dword_591164_teleport_map_name); | 15634 v9 = IndoorLocation::GetLocationIndex(dword_591164_teleport_map_name); |
15635 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 15635 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); |
15636 pRenderer->DrawTextureIndexed( | 15636 pRenderer->DrawTextureIndexed(pNPCPortraits_x - 4, pNPCPortraits_y - 4, (Texture *)(uTextureID_50795C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50795C] : 0)); |
15637 _4E5E50_transui_x - 4, | 15637 pRenderer->DrawTextureIndexed(pNPCPortraits_x, pNPCPortraits_y, pTexture_outside); |
15638 _4E5EE0_transui_y - 4, | |
15639 (Texture *)(uTextureID_50795C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50795C] : 0)); | |
15640 pRenderer->DrawTextureIndexed(_4E5E50_transui_x, _4E5EE0_transui_y, pTexture_outside); | |
15641 uTextureID_507B04 = uTextureID_right_panel; | 15638 uTextureID_507B04 = uTextureID_right_panel; |
15642 pRenderer->DrawTextureTransparent( | 15639 pRenderer->DrawTextureTransparent(468, 0, (Texture *)(uTextureID_right_panel != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_right_panel] : 0)); |
15643 0x1D4u, | 15640 pRenderer->DrawTextureIndexed(556, 451, (Texture *)(uTextureID_x_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); |
15644 0, | 15641 pRenderer->DrawTextureIndexed(476, 451, (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0)); |
15645 (Texture *)(uTextureID_right_panel != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_right_panel] : 0)); | |
15646 pRenderer->DrawTextureIndexed( | |
15647 0x22Cu, | |
15648 0x1C3u, | |
15649 (Texture *)(uTextureID_x_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); | |
15650 pRenderer->DrawTextureIndexed( | |
15651 0x1DCu, | |
15652 0x1C3u, | |
15653 (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0)); | |
15654 if ( (pVideoPlayer->AnyMovieLoaded() || v9) && *dword_591164_teleport_map_name != 48 ) | 15642 if ( (pVideoPlayer->AnyMovieLoaded() || v9) && *dword_591164_teleport_map_name != 48 ) |
15655 v10 = pMapStats->GetMapInfo(dword_591164_teleport_map_name); | 15643 v10 = pMapStats->GetMapInfo(dword_591164_teleport_map_name); |
15656 v0 = &pMapStats->pInfos[v10]; | 15644 pMapInfo = &pMapStats->pInfos[v10]; |
15657 v8.uFrameX = 493; | 15645 v8.uFrameX = 493; |
15658 v8.uFrameWidth = 126; | 15646 v8.uFrameWidth = 126; |
15659 v8.uFrameZ = 366; | 15647 v8.uFrameZ = 366; |
15660 v8.DrawTitleText(pFontCreate, 0, 5u, 0, v0->pName, 3u); | 15648 v8.DrawTitleText(pFontCreate, 0, 5u, 0, pMapInfo->pName, 3); |
15661 v8.uFrameX = 483; | 15649 v8.uFrameX = 483; |
15662 v8.uFrameWidth = 148; | 15650 v8.uFrameWidth = 148; |
15663 v8.uFrameZ = 334; | 15651 v8.uFrameZ = 334; |
15664 if ( uCurrentHouse_Animation ) | 15652 if ( uCurrentHouse_Animation ) |
15665 { | 15653 { |
15667 } | 15655 } |
15668 else | 15656 else |
15669 { | 15657 { |
15670 if ( v10 ) | 15658 if ( v10 ) |
15671 { | 15659 { |
15672 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[409], v0->pName);// "Do you wish to leave %s?" | 15660 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[409], pMapInfo->pName);// "Do you wish to leave %s?" |
15673 v1 = pTmpBuf; | 15661 v4 = (212 - pFontCreate->CalcTextHeight(pTmpBuf, &v8, 0, 0)) / 2 + 101; |
15674 goto LABEL_12; | 15662 result = v8.DrawTitleText(pFontCreate, 0, v4, 0, pTmpBuf, 3); |
15663 dword_5B5924 = 1; | |
15664 return result; | |
15675 } | 15665 } |
15676 v1 = ""; | 15666 v1 = ""; |
15677 } | 15667 } |
15678 if ( !v1 ) | 15668 if ( !v1 ) |
15679 { | 15669 { |
15680 MessageBoxW(nullptr, L"No transition text found!", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Events.cpp:1410", 0); | 15670 MessageBoxW(nullptr, L"No transition text found!", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Events.cpp:1410", 0); |
15681 v1 = ""; | 15671 v1 = ""; |
15682 } | 15672 } |
15683 LABEL_12: | |
15684 v7 = 3; | |
15685 v6 = v1; | |
15686 v5 = 0; | |
15687 v4 = (212 - pFontCreate->CalcTextHeight(v1, &v8, 0, 0)) / 2 + 101; | 15673 v4 = (212 - pFontCreate->CalcTextHeight(v1, &v8, 0, 0)) / 2 + 101; |
15688 result = v8.DrawTitleText(pFontCreate, 0, v4, v5, v6, v7); | 15674 result = v8.DrawTitleText(pFontCreate, 0, v4, 0, v1, 3); |
15689 dword_5B5924 = 1; | 15675 dword_5B5924 = 1; |
15690 return result; | 15676 return result; |
15691 } | 15677 } |
15692 | 15678 |
15693 | 15679 |
15766 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); | 15752 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); |
15767 v0 = pMapStats->GetMapInfo(pDestinationMapName); | 15753 v0 = pMapStats->GetMapInfo(pDestinationMapName); |
15768 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 15754 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); |
15769 pRenderer->DrawTextureTransparent(0x1D4u, 0, | 15755 pRenderer->DrawTextureTransparent(0x1D4u, 0, |
15770 (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0)); | 15756 (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0)); |
15771 pRenderer->DrawTextureIndexed(_4E5E50_transui_x, _4E5EE0_transui_y, pTexture_outside); | 15757 pRenderer->DrawTextureIndexed(pNPCPortraits_x, pNPCPortraits_y, pTexture_outside); |
15772 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, | 15758 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, |
15773 (Texture *)(uTextureID_x_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); | 15759 (Texture *)(uTextureID_x_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); |
15774 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, | 15760 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, |
15775 (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0)); | 15761 (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0)); |
15776 if ( v0 ) | 15762 if ( v0 ) |
16003 *(int *)v54 = v1; | 15989 *(int *)v54 = v1; |
16004 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); | 15990 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); |
16005 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); | 15991 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); |
16006 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); | 15992 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); |
16007 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 15993 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); |
16008 pRenderer->DrawTextureTransparent( | 15994 pRenderer->DrawTextureTransparent(0x1D4u, 0, (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0)); |
16009 0x1D4u, | 15995 pRenderer->DrawTextureIndexed(pNPCPortraits_x - 4, pNPCPortraits_y - 4, (Texture *)(uTextureID_50795C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50795C] : 0)); |
16010 0, | 15996 pRenderer->DrawTextureIndexed(pNPCPortraits_x, pNPCPortraits_y, pDialogueNPCPortraits[0]); |
16011 (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0)); | |
16012 pRenderer->DrawTextureIndexed( | |
16013 _4E5E50_transui_x - 4, | |
16014 _4E5EE0_transui_y - 4, | |
16015 (Texture *)(uTextureID_50795C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50795C] : 0)); | |
16016 pRenderer->DrawTextureIndexed(_4E5E50_transui_x, _4E5EE0_transui_y, pDialogueNPCPortraits[0]); | |
16017 v3 = v0->uProfession; | 15997 v3 = v0->uProfession; |
16018 if ( v3 ) | 15998 if ( v3 ) |
16019 { | 15999 { |
16020 v4 = pTmpBuf; | 16000 v4 = pTmpBuf; |
16021 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v0->pName, aNPCProfessionNames[v3]); | 16001 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v0->pName, aNPCProfessionNames[v3]); |
16985 | 16965 |
16986 switch (_evt->v4) | 16966 switch (_evt->v4) |
16987 { | 16967 { |
16988 case EVENT_CheckSeason: | 16968 case EVENT_CheckSeason: |
16989 if ( !sub_4465DF_check_season(_evt->v5) ) | 16969 if ( !sub_4465DF_check_season(_evt->v5) ) |
16990 goto LABEL_291; | 16970 { |
16971 ++v122; | |
16972 //v4 = v124; | |
16973 //v5 = pSomeEVT; | |
16974 //v6 = v123; | |
16975 //v7 = ""; | |
16976 break; | |
16977 } | |
16991 v11 = _evt->v6; | 16978 v11 = _evt->v6; |
16992 goto LABEL_130; | 16979 goto LABEL_130; |
16993 case EVENT_ShowMovie: | 16980 case EVENT_ShowMovie: |
16994 strcpy(Source, (char *)&_evt->v7); | 16981 strcpy(Source, (char *)&_evt->v7); |
16995 v12 = (char *)&item.uExpireTime + strlen(Source) + 7; | 16982 v12 = (char *)&item.uExpireTime + strlen(Source) + 7; |
16996 if ( *v12 == 32 ) | 16983 if ( *v12 == 32 ) |
16997 *v12 = 0; | 16984 *v12 = 0; |
16998 if ( pVideoPlayer->field_54 ) | 16985 if ( pVideoPlayer->field_54 ) |
16999 pVideoPlayer->Unload(); | 16986 pVideoPlayer->Unload(); |
17000 pVideoPlayer->bStopBeforeSchedule = 0; | 16987 pVideoPlayer->bStopBeforeSchedule = 0; |
17001 pVideoPlayer->field_40 = 0; | 16988 pVideoPlayer->pResetflag = 0; |
17002 if (pAsyncMouse) | 16989 if (pAsyncMouse) |
17003 pAsyncMouse->Suspend(); | 16990 pAsyncMouse->Suspend(); |
17004 v128 = pCurrentScreen; | 16991 v128 = pCurrentScreen; |
17005 //v13 = &pSomeEVT[v9]; | 16992 //v13 = &pSomeEVT[v9]; |
17006 //v14 = (unsigned __int8)v13[5]; | 16993 //v14 = (unsigned __int8)v13[5]; |
17012 VideoPlayer::MovieLoop(v16, 0, v14, 1); | 16999 VideoPlayer::MovieLoop(v16, 0, v14, 1); |
17013 if ( !_strcmpi(v16, "arbiter good") ) | 17000 if ( !_strcmpi(v16, "arbiter good") ) |
17014 { | 17001 { |
17015 pParty->uAlignment = 0; | 17002 pParty->uAlignment = 0; |
17016 v18 = 0; | 17003 v18 = 0; |
17017 LABEL_23: | |
17018 LOBYTE(v17) = 1; | 17004 LOBYTE(v17) = 1; |
17019 SetUserInterface(v18, v17); | 17005 SetUserInterface(v18, v17); |
17020 goto LABEL_28; | 17006 if ( !v15 || v128 == 3 ) |
17007 { | |
17008 pCurrentScreen = v128; | |
17009 if ( v128 == 3 ) | |
17010 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; | |
17011 if ( v128 == 13 ) | |
17012 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); | |
17013 } | |
17014 if (pAsyncMouse) | |
17015 pAsyncMouse->Resume(); | |
17016 ++v122; | |
17017 //v4 = v124; | |
17018 //v5 = pSomeEVT; | |
17019 //v6 = v123; | |
17020 //v7 = ""; | |
17021 break; | |
17021 } | 17022 } |
17022 if ( !_strcmpi(v16, "arbiter evil") ) | 17023 if ( !_strcmpi(v16, "arbiter evil") ) |
17023 { | 17024 { |
17024 v18 = 2; | 17025 v18 = 2; |
17025 pParty->uAlignment = 2; | 17026 pParty->uAlignment = 2; |
17026 goto LABEL_23; | 17027 LOBYTE(v17) = 1; |
17028 SetUserInterface(v18, v17); | |
17029 if ( !v15 || v128 == 3 ) | |
17030 { | |
17031 pCurrentScreen = v128; | |
17032 if ( v128 == 3 ) | |
17033 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; | |
17034 if ( v128 == 13 ) | |
17035 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); | |
17036 } | |
17037 if (pAsyncMouse) | |
17038 pAsyncMouse->Resume(); | |
17039 ++v122; | |
17040 //v4 = v124; | |
17041 //v5 = pSomeEVT; | |
17042 //v6 = v123; | |
17043 //v7 = ""; | |
17044 break; | |
17027 } | 17045 } |
17028 if ( !_strcmpi(v16, "pcout01") ) // moving to harmondale from emerald isle | 17046 if ( !_strcmpi(v16, "pcout01") ) // moving to harmondale from emerald isle |
17029 { | 17047 { |
17030 Rest(0x2760u); | 17048 Rest(0x2760u); |
17031 pParty->RestAndHeal(); | 17049 pParty->RestAndHeal(); |
17032 pParty->field_764 = 0; | 17050 pParty->field_764 = 0; |
17033 } | 17051 } |
17034 LABEL_28: | |
17035 if ( !v15 || v128 == 3 ) | 17052 if ( !v15 || v128 == 3 ) |
17036 { | 17053 { |
17037 pCurrentScreen = v128; | 17054 pCurrentScreen = v128; |
17038 if ( v128 == 3 ) | 17055 if ( v128 == 3 ) |
17039 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; | 17056 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; |
17040 if ( v128 == 13 ) | 17057 if ( v128 == 13 ) |
17041 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); | 17058 pVideoPlayer->_4BF28F(pAnimatedRooms[uCurrentHouse_Animation].field_0, 1u); |
17042 } | 17059 } |
17043 if (pAsyncMouse) | 17060 if (pAsyncMouse) |
17044 pAsyncMouse->Resume(); | 17061 pAsyncMouse->Resume(); |
17045 goto LABEL_291; | 17062 ++v122; |
17063 //v4 = v124; | |
17064 //v5 = pSomeEVT; | |
17065 //v6 = v123; | |
17066 //v7 = ""; | |
17067 break; | |
17046 case EVENT_CheckSkill: | 17068 case EVENT_CheckSkill: |
17047 v19 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((unsigned int)_evt->v10 << 8)) << 8)) << 8); | 17069 v19 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((unsigned int)_evt->v10 << 8)) << 8)) << 8); |
17048 if ( v127 < 0 ) | 17070 if ( v127 < 0 ) |
17049 goto LABEL_47; | 17071 goto LABEL_47; |
17050 if ( v127 <= 3 ) | 17072 if ( v127 <= 3 ) |
17072 v139 = v22; | 17094 v139 = v22; |
17073 while ( v23 < v19 || !*(&v136 + _evt->v6) ) | 17095 while ( v23 < v19 || !*(&v136 + _evt->v6) ) |
17074 { | 17096 { |
17075 ++v20; | 17097 ++v20; |
17076 if ( v20 >= 4 ) | 17098 if ( v20 >= 4 ) |
17077 goto LABEL_291; | 17099 { |
17100 ++v122; | |
17101 //v4 = v124; | |
17102 //v5 = pSomeEVT; | |
17103 //v6 = v123; | |
17104 //v7 = ""; | |
17105 break; | |
17106 } | |
17078 } | 17107 } |
17079 LABEL_50: | |
17080 v11 = _evt->v11; | 17108 v11 = _evt->v11; |
17081 goto LABEL_130; | 17109 goto LABEL_130; |
17082 } | 17110 } |
17083 LABEL_47: | 17111 LABEL_47: |
17084 //v10 = (ByteArray *)&v5[v9]; | 17112 //v10 = (ByteArray *)&v5[v9]; |
17088 v136 = 1; | 17116 v136 = 1; |
17089 v137 = v24 & 0x40; | 17117 v137 = v24 & 0x40; |
17090 v138 = v24 & 0x80; | 17118 v138 = v24 & 0x80; |
17091 v139 = v24 & 0x100; | 17119 v139 = v24 & 0x100; |
17092 if ( (v24 & 0x3F) >= v19 && *(&v136 + _evt->v6) ) | 17120 if ( (v24 & 0x3F) >= v19 && *(&v136 + _evt->v6) ) |
17093 goto LABEL_50; | 17121 { |
17094 goto LABEL_291; | 17122 v11 = _evt->v11; |
17123 goto LABEL_130; | |
17124 } | |
17125 ++v122; | |
17126 //v4 = v124; | |
17127 //v5 = pSomeEVT; | |
17128 //v6 = v123; | |
17129 //v7 = ""; | |
17130 break; | |
17095 case EVENT_SpeakNPC: | 17131 case EVENT_SpeakNPC: |
17096 if ( a3 ) | 17132 if ( a3 ) |
17097 { | 17133 { |
17098 //Actor::Actor(&Dst); | 17134 //Actor::Actor(&Dst); |
17099 memset(&Dst, 0, 0x344u); | 17135 memset(&Dst, 0, 0x344u); |
17107 else | 17143 else |
17108 { | 17144 { |
17109 bDialogueUI_InitializeActor_NPC_ID = _evt->v5 | 17145 bDialogueUI_InitializeActor_NPC_ID = _evt->v5 |
17110 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8); | 17146 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8); |
17111 } | 17147 } |
17112 goto LABEL_291; | 17148 ++v122; |
17149 //v4 = v124; | |
17150 //v5 = pSomeEVT; | |
17151 //v6 = v123; | |
17152 //v7 = ""; | |
17153 break; | |
17113 case EVENT_ChangeEvent: | 17154 case EVENT_ChangeEvent: |
17114 v25 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8); | 17155 v25 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((unsigned int)_evt->v8 << 8)) << 8)) << 8); |
17115 if ( v25 ) | 17156 if ( v25 ) |
17116 { | 17157 { |
17117 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = _evt->v5 - 124; | 17158 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = _evt->v5 - 124; |
17120 { | 17161 { |
17121 v26 = _5C3420_pDecoration; | 17162 v26 = _5C3420_pDecoration; |
17122 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = 0; | 17163 stru_5E4C90._decor_events[_5C3420_pDecoration->_idx_in_stru123 - 75] = 0; |
17123 LOBYTE(v26->field_2) |= 0x20u; | 17164 LOBYTE(v26->field_2) |= 0x20u; |
17124 } | 17165 } |
17125 goto LABEL_291; | 17166 ++v122; |
17167 //v4 = v124; | |
17168 //v5 = pSomeEVT; | |
17169 //v6 = v123; | |
17170 //v7 = ""; | |
17171 break; | |
17126 case EVENT_SetNPCGreeting: | 17172 case EVENT_SetNPCGreeting: |
17127 v27 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17173 v27 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17128 v28 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 17174 v28 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17129 pNPCStats->pNewNPCData[v27].uFlags &= 0xFFFFFFFCu; | 17175 pNPCStats->pNewNPCData[v27].uFlags &= 0xFFFFFFFCu; |
17130 pNPCStats->pNewNPCData[v27].greet = v28; | 17176 pNPCStats->pNewNPCData[v27].greet = v28; |
17131 goto LABEL_291; | 17177 ++v122; |
17178 //v4 = v124; | |
17179 //v5 = pSomeEVT; | |
17180 //v6 = v123; | |
17181 //v7 = ""; | |
17182 break; | |
17132 case EVENT_SetNPCTopic: | 17183 case EVENT_SetNPCTopic: |
17133 v29 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17184 v29 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17134 v30 = _evt->v10 + ((_evt->v11 + ((_evt->v12 + ((uint)_evt->v13 << 8)) << 8)) << 8); | 17185 v30 = _evt->v10 + ((_evt->v11 + ((_evt->v12 + ((uint)_evt->v13 << 8)) << 8)) << 8); |
17135 v31 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17186 v31 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17136 v32 = _evt->v9; | 17187 v32 = _evt->v9; |
17194 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); | 17245 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); |
17195 ptr_F8B1E8 = pNPCTopics[90].pText; | 17246 ptr_F8B1E8 = pNPCTopics[90].pText; |
17196 } | 17247 } |
17197 } | 17248 } |
17198 } | 17249 } |
17199 goto LABEL_291; | 17250 ++v122; |
17251 //v4 = v124; | |
17252 //v5 = pSomeEVT; | |
17253 //v6 = v123; | |
17254 //v7 = ""; | |
17255 break; | |
17200 case EVENT_NPCSetItem: | 17256 case EVENT_NPCSetItem: |
17201 sub_448518_npc_set_item( | 17257 sub_448518_npc_set_item(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17202 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17258 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); |
17203 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17259 ++v122; |
17204 _evt->v13); | 17260 //v4 = v124; |
17205 goto LABEL_291; | 17261 //v5 = pSomeEVT; |
17262 //v6 = v123; | |
17263 //v7 = ""; | |
17264 break; | |
17206 case EVENT_SetActorItem: | 17265 case EVENT_SetActorItem: |
17207 Actor::GiveItem( | 17266 Actor::GiveItem(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17208 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17267 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); |
17209 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17268 ++v122; |
17210 _evt->v13); | 17269 //v4 = v124; |
17211 goto LABEL_291; | 17270 //v5 = pSomeEVT; |
17271 //v6 = v123; | |
17272 //v7 = ""; | |
17273 break; | |
17212 case EVENT_SetNPCGroupNews: | 17274 case EVENT_SetNPCGroupNews: |
17213 pNPCStats->pGroups_copy[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)] = _evt->v9 + ((uint)_evt->v10 << 8); | 17275 pNPCStats->pGroups_copy[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)] = _evt->v9 + ((uint)_evt->v10 << 8); |
17214 goto LABEL_291; | 17276 ++v122; |
17277 //v4 = v124; | |
17278 //v5 = pSomeEVT; | |
17279 //v6 = v123; | |
17280 //v7 = ""; | |
17281 break; | |
17215 case EVENT_SetActorGroup: | 17282 case EVENT_SetActorGroup: |
17216 __debugbreak(); | 17283 __debugbreak(); |
17217 *(&pActors[0].uGroup + 0x11000000 * _evt->v8 + 209 * (_evt->v5 + ((_evt->v6 + ((uint)_evt->v7 << 8)) << 8))) = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 17284 *(&pActors[0].uGroup + 0x11000000 * _evt->v8 + 209 * (_evt->v5 + ((_evt->v6 + ((uint)_evt->v7 << 8)) << 8))) = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17218 goto LABEL_291; | 17285 ++v122; |
17286 //v4 = v124; | |
17287 //v5 = pSomeEVT; | |
17288 //v6 = v123; | |
17289 //v7 = ""; | |
17290 break; | |
17219 case EVENT_ChangeGroup: | 17291 case EVENT_ChangeGroup: |
17220 v38 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17292 v38 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17221 v39 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 17293 v39 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17222 v40 = uNumActors; | 17294 v40 = uNumActors; |
17223 __debugbreak(); | 17295 __debugbreak(); |
17224 if ( (signed int)uNumActors > 0 ) | 17296 if ( (signed int)uNumActors > 0 ) |
17225 { | 17297 { |
17226 v41 = pActors;//[0].uGroup; | 17298 v41 = pActors;//[0].uGroup; |
17227 do | 17299 do |
17228 { | 17300 { |
17229 if ( v41->uGroup == v38 ) | 17301 if ( v41->uGroup == v38 ) |
17230 v41->uGroup = v39; | 17302 v41->uGroup = v39; |
17231 ++v41; | 17303 ++v41; |
17232 --v40; | 17304 --v40; |
17233 } | 17305 } |
17234 while ( v40 ); | 17306 while ( v40 ); |
17235 } | 17307 } |
17236 goto LABEL_291; | 17308 ++v122; |
17309 //v4 = v124; | |
17310 //v5 = pSomeEVT; | |
17311 //v6 = v123; | |
17312 //v7 = ""; | |
17313 break; | |
17237 case EVENT_ChangeGroupAlly: | 17314 case EVENT_ChangeGroupAlly: |
17238 v42 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17315 v42 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17239 v43 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 17316 v43 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17240 v44 = uNumActors; | 17317 v44 = uNumActors; |
17241 __debugbreak(); | 17318 __debugbreak(); |
17242 if ( (signed int)uNumActors > 0 ) | 17319 if ( (signed int)uNumActors > 0 ) |
17243 { | 17320 { |
17244 v45 = pActors;//[0].uAlly; | 17321 v45 = pActors;//[0].uAlly; |
17245 do | 17322 do |
17246 { | 17323 { |
17247 if ( v45->uGroup == v42 ) | 17324 if ( v45->uGroup == v42 ) |
17248 v45->uAlly = v43; | 17325 v45->uAlly = v43; |
17249 ++v45; | 17326 ++v45; |
17250 --v44; | 17327 --v44; |
17251 } | 17328 } |
17252 while ( v44 ); | 17329 while ( v44 ); |
17253 } | 17330 } |
17254 goto LABEL_291; | 17331 ++v122; |
17332 //v4 = v124; | |
17333 //v5 = pSomeEVT; | |
17334 //v6 = v123; | |
17335 //v7 = ""; | |
17336 break; | |
17255 case EVENT_MoveNPC: | 17337 case EVENT_MoveNPC: |
17256 pNPCStats->pNewNPCData[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)].house = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 17338 pNPCStats->pNewNPCData[_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8)].house = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17257 if ( ptr_507BC0 ) | 17339 if ( ptr_507BC0 ) |
17258 { | 17340 { |
17259 v46 = ptr_507BC0->ptr_1C; | 17341 v46 = ptr_507BC0->ptr_1C; |
17290 { | 17372 { |
17291 if ( v46 == (void *)553 ) | 17373 if ( v46 == (void *)553 ) |
17292 pVideoPlayer->bLoopPlaying = 0; | 17374 pVideoPlayer->bLoopPlaying = 0; |
17293 } | 17375 } |
17294 } | 17376 } |
17295 goto LABEL_291; | 17377 ++v122; |
17378 //v4 = v124; | |
17379 //v5 = pSomeEVT; | |
17380 //v6 = v123; | |
17381 //v7 = ""; | |
17382 break; | |
17296 case EVENT_Jmp: | 17383 case EVENT_Jmp: |
17297 //v124 = -1; | 17384 //v124 = -1; |
17298 v122 = _evt->v5 - 1; | 17385 v122 = _evt->v5 - 1; |
17299 goto LABEL_291; | 17386 ++v122; |
17387 //v4 = v124; | |
17388 //v5 = pSomeEVT; | |
17389 //v6 = v123; | |
17390 //v7 = ""; | |
17391 break; | |
17300 case EVENT_ShowFace: | 17392 case EVENT_ShowFace: |
17301 v50 = _evt->v5; | 17393 v50 = _evt->v5; |
17302 if ( (unsigned __int8)v50 <= 3u ) | 17394 if ( (unsigned __int8)v50 <= 3u ) |
17303 { | 17395 { |
17304 v117 = 0; | 17396 v117 = 0; |
17305 v113 = _evt->v6; | 17397 v113 = _evt->v6; |
17306 v53 = (unsigned __int8)v50; | 17398 v53 = (unsigned __int8)v50; |
17307 goto LABEL_108; | 17399 v52 = &pParty->pPlayers[v53]; |
17400 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); | |
17401 ++v122; | |
17402 //v4 = v124; | |
17403 //v5 = pSomeEVT; | |
17404 //v6 = v123; | |
17405 //v7 = ""; | |
17406 break; | |
17308 } | 17407 } |
17309 if ( v50 == 4 ) | 17408 if ( v50 == 4 ) |
17310 { | 17409 { |
17311 v117 = 0; | 17410 v117 = 0; |
17312 v113 = _evt->v6; | 17411 v113 = _evt->v6; |
17313 v52 = pPlayers[uActiveCharacter]; | 17412 v52 = pPlayers[uActiveCharacter]; |
17314 goto LABEL_109; | 17413 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); |
17414 ++v122; | |
17415 //v4 = v124; | |
17416 //v5 = pSomeEVT; | |
17417 //v6 = v123; | |
17418 //v7 = ""; | |
17419 break; | |
17315 } | 17420 } |
17316 if ( v50 != 5 ) | 17421 if ( v50 != 5 ) |
17317 { | 17422 { |
17318 v117 = 0; | 17423 v117 = 0; |
17319 v113 = _evt->v6; | 17424 v113 = _evt->v6; |
17320 v53 = rand() % 4; | 17425 v53 = rand() % 4; |
17321 LABEL_108: | |
17322 v52 = &pParty->pPlayers[v53]; | 17426 v52 = &pParty->pPlayers[v53]; |
17323 LABEL_109: | |
17324 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); | 17427 v52->PlayEmotion((CHARACTER_EXPRESSION_ID)v113, v117); |
17325 goto LABEL_291; | 17428 ++v122; |
17429 //v4 = v124; | |
17430 //v5 = pSomeEVT; | |
17431 //v6 = v123; | |
17432 //v7 = ""; | |
17433 break; | |
17326 } | 17434 } |
17327 v51 = pParty->pPlayers; | 17435 v51 = pParty->pPlayers; |
17328 do | 17436 do |
17329 { | 17437 { |
17330 v51->PlayEmotion((CHARACTER_EXPRESSION_ID)_evt->v6, 0); | 17438 v51->PlayEmotion((CHARACTER_EXPRESSION_ID)_evt->v6, 0); |
17331 ++v51; | 17439 ++v51; |
17332 } | 17440 } |
17333 while ( (signed int)v51 < (signed int)pParty->pHirelings ); | 17441 while ( (signed int)v51 < (signed int)pParty->pHirelings ); |
17334 LABEL_291: | 17442 //LABEL_291: |
17335 ++v122; | 17443 ++v122; |
17336 //v4 = v124; | 17444 //v4 = v124; |
17337 //v5 = pSomeEVT; | 17445 //v5 = pSomeEVT; |
17338 //v6 = v123; | 17446 //v6 = v123; |
17339 //v7 = ""; | 17447 //v7 = ""; |
17361 v57 = rand() % 4; | 17469 v57 = rand() % 4; |
17362 LABEL_119: | 17470 LABEL_119: |
17363 v56 = &pParty->pPlayers[v57]; | 17471 v56 = &pParty->pPlayers[v57]; |
17364 LABEL_120: | 17472 LABEL_120: |
17365 v56->PlaySound(v114, v118); | 17473 v56->PlaySound(v114, v118); |
17366 goto LABEL_291; | 17474 ++v122; |
17475 //v4 = v124; | |
17476 //v5 = pSomeEVT; | |
17477 //v6 = v123; | |
17478 //v7 = ""; | |
17479 break; | |
17367 } | 17480 } |
17368 v55 = pParty->pPlayers; | 17481 v55 = pParty->pPlayers; |
17369 do | 17482 do |
17370 { | 17483 { |
17371 v55->PlaySound(_evt->v6, 0); | 17484 v55->PlaySound(_evt->v6, 0); |
17372 ++v55; | 17485 ++v55; |
17373 } | 17486 } |
17374 while ( (signed int)v55 < (signed int)pParty->pHirelings ); | 17487 while ( (signed int)v55 < (signed int)pParty->pHirelings ); |
17375 goto LABEL_291; | 17488 ++v122; |
17489 //v4 = v124; | |
17490 //v5 = pSomeEVT; | |
17491 //v6 = v123; | |
17492 //v7 = ""; | |
17493 break; | |
17376 case EVENT_ForPartyMember: | 17494 case EVENT_ForPartyMember: |
17377 v127 = _evt->v5; | 17495 v127 = _evt->v5; |
17378 goto LABEL_291; | 17496 ++v122; |
17497 //v4 = v124; | |
17498 //v5 = pSomeEVT; | |
17499 //v6 = v123; | |
17500 //v7 = ""; | |
17501 break; | |
17379 case EVENT_SummonItem: | 17502 case EVENT_SummonItem: |
17380 sub_42F7EB_DropItemAt( | 17503 sub_42F7EB_DropItemAt(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17381 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | |
17382 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17504 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), |
17383 _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8), | 17505 _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8), |
17384 _evt->v17 + ((_evt->v18 + ((_evt->v19 + ((uint)_evt->v20 << 8)) << 8)) << 8), | 17506 _evt->v17 + ((_evt->v18 + ((_evt->v19 + ((uint)_evt->v20 << 8)) << 8)) << 8), |
17385 _evt->v21 + ((_evt->v22 + ((_evt->v23 + ((uint)_evt->v24 << 8)) << 8)) << 8), | 17507 _evt->v21 + ((_evt->v22 + ((_evt->v23 + ((uint)_evt->v24 << 8)) << 8)) << 8), |
17386 _evt->v25, | 17508 _evt->v25, _evt->v26, 0, 0); |
17387 _evt->v26, | 17509 ++v122; |
17388 0, | 17510 //v4 = v124; |
17389 0); | 17511 //v5 = pSomeEVT; |
17390 goto LABEL_291; | 17512 //v6 = v123; |
17513 //v7 = ""; | |
17514 break; | |
17391 case EVENT_Compare: | 17515 case EVENT_Compare: |
17392 v58 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 17516 v58 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17393 if ( v127 == 5 ) | 17517 if ( v127 == 5 ) |
17394 { | 17518 { |
17395 v130 = 0; | 17519 v130 = 0; |
17396 v59 = pParty->pPlayers; | 17520 v59 = pParty->pPlayers; |
17397 while ( 1 ) | 17521 while ( 1 ) |
17398 { | 17522 { |
17399 LOBYTE(v60) = v59->CompareVariable( | 17523 LOBYTE(v60) = v59->CompareVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v58); |
17400 (enum VariableType)(_evt->v5 | |
17401 + ((uint)_evt->v6 << 8)), | |
17402 v58); | |
17403 if ( v60 ) | 17524 if ( v60 ) |
17404 break; | 17525 break; |
17405 ++v130; | 17526 ++v130; |
17406 ++v59; | 17527 ++v59; |
17407 if ( (signed int)v59 >= (signed int)pParty->pHirelings ) | 17528 if ( (signed int)v59 >= (signed int)pParty->pHirelings ) |
17408 goto LABEL_291; | 17529 { |
17530 ++v122; | |
17531 //v4 = v124; | |
17532 //v5 = pSomeEVT; | |
17533 //v6 = v123; | |
17534 //v7 = ""; | |
17535 break; | |
17536 } | |
17409 } | 17537 } |
17410 LABEL_129: | 17538 LABEL_129: |
17411 v11 = _evt->v11; | 17539 v11 = _evt->v11; |
17412 goto LABEL_130; | 17540 goto LABEL_130; |
17413 } | 17541 } |
17440 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), | 17568 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), |
17441 v58); | 17569 v58); |
17442 LABEL_140: | 17570 LABEL_140: |
17443 if ( v62 ) | 17571 if ( v62 ) |
17444 goto LABEL_129; | 17572 goto LABEL_129; |
17445 goto LABEL_291; | 17573 ++v122; |
17574 //v4 = v124; | |
17575 //v5 = pSomeEVT; | |
17576 //v6 = v123; | |
17577 //v7 = ""; | |
17578 break; | |
17446 case EVENT_IsActorAlive: | 17579 case EVENT_IsActorAlive: |
17447 v62 = IsActorAlive( | 17580 v62 = IsActorAlive( |
17448 _evt->v5, | 17581 _evt->v5, |
17449 _evt->v6 + ((_evt->v7 + ((_evt->v8 + ((uint)_evt->v9 << 8)) << 8)) << 8), | 17582 _evt->v6 + ((_evt->v7 + ((_evt->v8 + ((uint)_evt->v9 << 8)) << 8)) << 8), |
17450 _evt->v10); | 17583 _evt->v10); |
17455 { | 17588 { |
17456 v64 = 0; | 17589 v64 = 0; |
17457 if ( (void *)pParty->pPickedItem.uItemID == v63 ) | 17590 if ( (void *)pParty->pPickedItem.uItemID == v63 ) |
17458 { | 17591 { |
17459 pMouse->RemoveHoldingItem(); | 17592 pMouse->RemoveHoldingItem(); |
17460 goto LABEL_291; | 17593 ++v122; |
17594 //v4 = v124; | |
17595 //v5 = pSomeEVT; | |
17596 //v6 = v123; | |
17597 //v7 = ""; | |
17598 break; | |
17461 } | 17599 } |
17462 v65 = 0; | 17600 v65 = 0; |
17463 v66 = pPlayers[uActiveCharacter]; | 17601 v66 = pPlayers[uActiveCharacter]; |
17464 v67 = (int)v66->pInventoryIndices; | 17602 v67 = (int)v66->pInventoryIndices; |
17465 do | 17603 do |
17466 { | 17604 { |
17467 if ( *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v67 + 5] == v63 ) | 17605 if ( *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v67 + 5] == v63 ) |
17468 { | 17606 { |
17469 v66->RemoveItemAtInventoryIndex(v65); | 17607 v66->RemoveItemAtInventoryIndex(v65); |
17470 goto LABEL_291; | 17608 ++v122; |
17609 //v4 = v124; | |
17610 //v5 = pSomeEVT; | |
17611 //v6 = v123; | |
17612 //v7 = ""; | |
17613 break; | |
17471 } | 17614 } |
17472 ++v65; | 17615 ++v65; |
17473 v67 += 4; | 17616 v67 += 4; |
17474 } | 17617 } |
17475 while ( (signed int)v65 < 126 ); | 17618 while ( (signed int)v65 < 126 ); |
17478 do | 17621 do |
17479 { | 17622 { |
17480 if ( *(int *)v69 && *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v69 + 5] == v63 ) | 17623 if ( *(int *)v69 && *(void **)&v66->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * *(int *)v69 + 5] == v63 ) |
17481 { | 17624 { |
17482 *(&v66->pEquipment.uOffHand + v68) = 0; | 17625 *(&v66->pEquipment.uOffHand + v68) = 0; |
17483 goto LABEL_291; | 17626 ++v122; |
17627 //v4 = v124; | |
17628 //v5 = pSomeEVT; | |
17629 //v6 = v123; | |
17630 //v7 = ""; | |
17631 break; | |
17484 } | 17632 } |
17485 ++v68; | 17633 ++v68; |
17486 v69 += 4; | 17634 v69 += 4; |
17487 } | 17635 } |
17488 while ( v68 < 16 ); | 17636 while ( v68 < 16 ); |
17520 v64 = 1; | 17668 v64 = 1; |
17521 } | 17669 } |
17522 LABEL_170: | 17670 LABEL_170: |
17523 v125 += 4; | 17671 v125 += 4; |
17524 if ( v125 > (signed int)&pPlayers[4] ) | 17672 if ( v125 > (signed int)&pPlayers[4] ) |
17525 goto LABEL_291; | 17673 { |
17674 ++v122; | |
17675 //v4 = v124; | |
17676 //v5 = pSomeEVT; | |
17677 //v6 = v123; | |
17678 //v7 = ""; | |
17679 break; | |
17680 } | |
17526 } | 17681 } |
17527 } | 17682 } |
17528 v75 = v127; | 17683 v75 = v127; |
17529 if ( v127 != 5 ) | 17684 if ( v127 != 5 ) |
17530 { | 17685 { |
17535 if ( v127 != 4 ) | 17690 if ( v127 != 4 ) |
17536 { | 17691 { |
17537 if ( v127 == 6 ) | 17692 if ( v127 == 6 ) |
17538 goto LABEL_180; | 17693 goto LABEL_180; |
17539 LABEL_183: | 17694 LABEL_183: |
17540 ((Player *)v6)->SubtractVariable( | 17695 ((Player *)v6)->SubtractVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v63); |
17541 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), | 17696 ++v122; |
17542 v63); | 17697 //v4 = v124; |
17543 goto LABEL_291; | 17698 //v5 = pSomeEVT; |
17699 //v6 = v123; | |
17700 //v7 = ""; | |
17701 break; | |
17544 } | 17702 } |
17545 if ( uActiveCharacter ) | 17703 if ( uActiveCharacter ) |
17546 { | 17704 { |
17547 v6 = pPlayers[uActiveCharacter]; | 17705 v6 = pPlayers[uActiveCharacter]; |
17548 goto LABEL_182; | 17706 goto LABEL_182; |
17564 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), | 17722 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), |
17565 v63); | 17723 v63); |
17566 ++v76; | 17724 ++v76; |
17567 } | 17725 } |
17568 while ( (signed int)v76 < (signed int)pParty->pHirelings ); | 17726 while ( (signed int)v76 < (signed int)pParty->pHirelings ); |
17569 goto LABEL_291; | 17727 ++v122; |
17728 //v4 = v124; | |
17729 //v5 = pSomeEVT; | |
17730 //v6 = v123; | |
17731 //v7 = ""; | |
17732 break; | |
17570 case EVENT_Set: | 17733 case EVENT_Set: |
17571 v77 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 17734 v77 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17572 v78 = v127; | 17735 v78 = v127; |
17573 if ( v127 != 5 ) | 17736 if ( v127 != 5 ) |
17574 { | 17737 { |
17579 if ( v127 != 4 ) | 17742 if ( v127 != 4 ) |
17580 { | 17743 { |
17581 if ( v127 == 6 ) | 17744 if ( v127 == 6 ) |
17582 goto LABEL_194; | 17745 goto LABEL_194; |
17583 LABEL_197: | 17746 LABEL_197: |
17584 ((Player *)v6)->SetVariable( | 17747 ((Player *)v6)->SetVariable((enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), v77); |
17585 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), | 17748 ++v122; |
17586 v77); | 17749 //v4 = v124; |
17587 goto LABEL_291; | 17750 //v5 = pSomeEVT; |
17751 //v6 = v123; | |
17752 //v7 = ""; | |
17753 break; | |
17588 } | 17754 } |
17589 if ( uActiveCharacter ) | 17755 if ( uActiveCharacter ) |
17590 { | 17756 { |
17591 v6 = pPlayers[uActiveCharacter]; | 17757 v6 = pPlayers[uActiveCharacter]; |
17592 goto LABEL_196; | 17758 goto LABEL_196; |
17608 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), | 17774 (enum VariableType)(_evt->v5 + ((uint)_evt->v6 << 8)), |
17609 v77); | 17775 v77); |
17610 ++v79; | 17776 ++v79; |
17611 } | 17777 } |
17612 while ( (signed int)v79 < (signed int)pParty->pHirelings ); | 17778 while ( (signed int)v79 < (signed int)pParty->pHirelings ); |
17613 goto LABEL_291; | 17779 ++v122; |
17780 //v4 = v124; | |
17781 //v5 = pSomeEVT; | |
17782 //v6 = v123; | |
17783 //v7 = ""; | |
17784 break; | |
17614 case EVENT_Add: | 17785 case EVENT_Add: |
17615 v80 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 17786 v80 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17616 v81 = v127; | 17787 v81 = v127; |
17617 if ( v127 != 5 ) | 17788 if ( v127 != 5 ) |
17618 { | 17789 { |
17656 while ( (signed int)v82 < (signed int)pParty->pHirelings ); | 17827 while ( (signed int)v82 < (signed int)pParty->pHirelings ); |
17657 LABEL_212: | 17828 LABEL_212: |
17658 v83 = _evt->v5 + ((uint)_evt->v6 << 8); | 17829 v83 = _evt->v5 + ((uint)_evt->v6 << 8); |
17659 if ( v83 == 21 || v83 == 22 || v83 == 23 || v83 == 24 ) | 17830 if ( v83 == 21 || v83 == 22 || v83 == 23 || v83 == 24 ) |
17660 viewparams->bRedrawGameUI = 1; | 17831 viewparams->bRedrawGameUI = 1; |
17661 goto LABEL_291; | 17832 ++v122; |
17833 //v4 = v124; | |
17834 //v5 = pSomeEVT; | |
17835 //v6 = v123; | |
17836 //v7 = ""; | |
17837 break; | |
17662 case EVENT_InputString: | 17838 case EVENT_InputString: |
17663 if ( !dword_597F18 ) | 17839 if ( !dword_597F18 ) |
17664 { | 17840 { |
17665 strcpy( | 17841 strcpy( |
17666 GameUI_StatusBar_TimedString, | 17842 GameUI_StatusBar_TimedString, |
17688 LABEL_130: | 17864 LABEL_130: |
17689 //v124 = -1; | 17865 //v124 = -1; |
17690 LABEL_131: | 17866 LABEL_131: |
17691 v122 = v11 - 1; | 17867 v122 = v11 - 1; |
17692 } | 17868 } |
17693 goto LABEL_291; | 17869 ++v122; |
17870 //v4 = v124; | |
17871 //v5 = pSomeEVT; | |
17872 //v6 = v123; | |
17873 //v7 = ""; | |
17874 break; | |
17694 case EVENT_RandomGoTo: | 17875 case EVENT_RandomGoTo: |
17695 //v124 = -1; | 17876 //v124 = -1; |
17696 v11 = (unsigned __int8)*(&_evt->v5 | 17877 v11 = (unsigned __int8)*(&_evt->v5 + rand() % ((_evt->v5 != 0) + (_evt->v6 != 0) + (_evt->v7 != 0) + (_evt->v8 != 0) + (_evt->v9 != 0) |
17697 + rand() | |
17698 % ((_evt->v5 != 0) | |
17699 + (_evt->v6 != 0) | |
17700 + (_evt->v7 != 0) | |
17701 + (_evt->v8 != 0) | |
17702 + (_evt->v9 != 0) | |
17703 + (_evt->v10 != 0))); | 17878 + (_evt->v10 != 0))); |
17704 goto LABEL_131; | 17879 goto LABEL_131; |
17705 case EVENT_ReceiveDamage: | 17880 case EVENT_ReceiveDamage: |
17706 v85 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 17881 v85 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17707 v86 = _evt->v5; | 17882 v86 = _evt->v5; |
17713 goto LABEL_233; | 17888 goto LABEL_233; |
17714 } | 17889 } |
17715 if ( v86 == 4 ) | 17890 if ( v86 == 4 ) |
17716 { | 17891 { |
17717 if ( !uActiveCharacter ) | 17892 if ( !uActiveCharacter ) |
17718 goto LABEL_291; | 17893 { |
17894 ++v122; | |
17895 //v4 = v124; | |
17896 //v5 = pSomeEVT; | |
17897 //v6 = v123; | |
17898 //v7 = ""; | |
17899 break; | |
17900 } | |
17719 v119 = _evt->v6; | 17901 v119 = _evt->v6; |
17720 v88 = pPlayers[uActiveCharacter]; | 17902 v88 = pPlayers[uActiveCharacter]; |
17721 v115 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 17903 v115 = _evt->v7 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17722 goto LABEL_234; | 17904 goto LABEL_234; |
17723 } | 17905 } |
17728 v89 = rand() % 4; | 17910 v89 = rand() % 4; |
17729 LABEL_233: | 17911 LABEL_233: |
17730 v88 = &pParty->pPlayers[v89]; | 17912 v88 = &pParty->pPlayers[v89]; |
17731 LABEL_234: | 17913 LABEL_234: |
17732 v88->ReceiveDamage(v115, v119); | 17914 v88->ReceiveDamage(v115, v119); |
17733 goto LABEL_291; | 17915 ++v122; |
17916 //v4 = v124; | |
17917 //v5 = pSomeEVT; | |
17918 //v6 = v123; | |
17919 //v7 = ""; | |
17920 break; | |
17734 } | 17921 } |
17735 v87 = pParty->pPlayers; | 17922 v87 = pParty->pPlayers; |
17736 do | 17923 do |
17737 { | 17924 { |
17738 v87->ReceiveDamage(v85, _evt->v6); | 17925 v87->ReceiveDamage(v85, _evt->v6); |
17739 ++v87; | 17926 ++v87; |
17740 } | 17927 } |
17741 while ( (signed int)v87 < (signed int)pParty->pHirelings ); | 17928 while ( (signed int)v87 < (signed int)pParty->pHirelings ); |
17742 goto LABEL_291; | 17929 ++v122; |
17930 //v4 = v124; | |
17931 //v5 = pSomeEVT; | |
17932 //v6 = v123; | |
17933 //v7 = ""; | |
17934 break; | |
17743 case EVENT_ToggleIndoorLight: | 17935 case EVENT_ToggleIndoorLight: |
17744 pIndoor->ToggleLight(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9); | 17936 pIndoor->ToggleLight(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9); |
17745 goto LABEL_291; | 17937 ++v122; |
17938 //v4 = v124; | |
17939 //v5 = pSomeEVT; | |
17940 //v6 = v123; | |
17941 //v7 = ""; | |
17942 break; | |
17746 case EVENT_SetFacesBit: | 17943 case EVENT_SetFacesBit: |
17747 sub_44892E_set_faces_bit( | 17944 sub_44892E_set_faces_bit(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17748 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17945 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); |
17749 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17946 ++v122; |
17750 _evt->v13); | 17947 //v4 = v124; |
17751 goto LABEL_291; | 17948 //v5 = pSomeEVT; |
17949 //v6 = v123; | |
17950 //v7 = ""; | |
17951 break; | |
17752 case EVENT_ToggleChestFlag: | 17952 case EVENT_ToggleChestFlag: |
17753 Chest::ToggleFlag( | 17953 Chest::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17754 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17954 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); |
17755 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17955 ++v122; |
17756 _evt->v13); | 17956 //v4 = v124; |
17757 goto LABEL_291; | 17957 //v5 = pSomeEVT; |
17958 //v6 = v123; | |
17959 //v7 = ""; | |
17960 break; | |
17758 case EVENT_ToggleActorFlag: | 17961 case EVENT_ToggleActorFlag: |
17759 Actor::ToggleFlag( | 17962 Actor::ToggleFlag(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17760 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17963 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), _evt->v13); |
17761 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17964 ++v122; |
17762 _evt->v13); | 17965 //v4 = v124; |
17763 goto LABEL_291; | 17966 //v5 = pSomeEVT; |
17967 //v6 = v123; | |
17968 //v7 = ""; | |
17969 break; | |
17764 case EVENT_ToggleActorGroupFlag: | 17970 case EVENT_ToggleActorGroupFlag: |
17765 ToggleActorGroupFlag( | 17971 ToggleActorGroupFlag( |
17766 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 17972 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), |
17767 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), | 17973 _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8), |
17768 _evt->v13); | 17974 _evt->v13); |
17769 goto LABEL_291; | 17975 ++v122; |
17976 //v4 = v124; | |
17977 //v5 = pSomeEVT; | |
17978 //v6 = v123; | |
17979 //v7 = ""; | |
17980 break; | |
17770 case EVENT_SetSnow: | 17981 case EVENT_SetSnow: |
17771 if ( !_evt->v5 ) | 17982 if ( !_evt->v5 ) |
17772 pWeather->bRenderSnow = _evt->v6 != 0; | 17983 pWeather->bRenderSnow = _evt->v6 != 0; |
17773 goto LABEL_291; | 17984 ++v122; |
17985 //v4 = v124; | |
17986 //v5 = pSomeEVT; | |
17987 //v6 = v123; | |
17988 //v7 = ""; | |
17989 break; | |
17774 case EVENT_StatusText: | 17990 case EVENT_StatusText: |
17775 v90 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 17991 v90 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17776 if ( _5C3420_pDecoration ) | 17992 if ( _5C3420_pDecoration ) |
17777 { | 17993 { |
17778 if ( _5C3420_pDecoration == (LevelDecoration *)1 ) | 17994 if ( _5C3420_pDecoration == (LevelDecoration *)1 ) |
17779 { | 17995 { |
17780 ptr_F8B1E8 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; | 17996 ptr_F8B1E8 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; |
17781 goto LABEL_291; | 17997 ++v122; |
17998 //v4 = v124; | |
17999 //v5 = pSomeEVT; | |
18000 //v6 = v123; | |
18001 //v7 = ""; | |
18002 break; | |
17782 } | 18003 } |
17783 if ( a3 == 1 ) | 18004 if ( a3 == 1 ) |
17784 { | 18005 { |
17785 v91 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; | 18006 v91 = pNPCTopics[v90-1].pText;//(&dword_721664)[8 * v90]; |
17786 LABEL_248: | 18007 //LABEL_248: |
17787 ShowStatusBarString(v91, 2u); | 18008 ShowStatusBarString(v91, 2u); |
17788 goto LABEL_291; | 18009 ++v122; |
18010 //v4 = v124; | |
18011 //v5 = pSomeEVT; | |
18012 //v6 = v123; | |
18013 //v7 = ""; | |
18014 break; | |
17789 } | 18015 } |
17790 } | 18016 } |
17791 else | 18017 else |
17792 { | 18018 { |
17793 if ( a3 == 1 ) | 18019 if ( a3 == 1 ) |
17794 { | 18020 { |
17795 v91 = &pLevelStr[pLevelStrOffsets[v90]]; | 18021 v91 = &pLevelStr[pLevelStrOffsets[v90]]; |
17796 goto LABEL_248; | 18022 ShowStatusBarString(v91, 2u); |
18023 ++v122; | |
18024 //v4 = v124; | |
18025 //v5 = pSomeEVT; | |
18026 //v6 = v123; | |
18027 //v7 = ""; | |
18028 break; | |
17797 } | 18029 } |
17798 } | 18030 } |
17799 goto LABEL_291; | 18031 ++v122; |
18032 //v4 = v124; | |
18033 //v5 = pSomeEVT; | |
18034 //v6 = v123; | |
18035 //v7 = ""; | |
18036 break; | |
17800 case EVENT_ShowMessage: | 18037 case EVENT_ShowMessage: |
17801 v92 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 18038 v92 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17802 if ( _5C3420_pDecoration ) | 18039 if ( _5C3420_pDecoration ) |
17803 { | 18040 { |
17804 v93 = (char *)pNPCTopics[v92-1].pText;//(&dword_721664)[8 * v92]; | 18041 v93 = (char *)pNPCTopics[v92-1].pText;//(&dword_721664)[8 * v92]; |
17807 } | 18044 } |
17808 else | 18045 else |
17809 { | 18046 { |
17810 strcpy(byte_5B0938, &pLevelStr[pLevelStrOffsets[v92]]); | 18047 strcpy(byte_5B0938, &pLevelStr[pLevelStrOffsets[v92]]); |
17811 } | 18048 } |
17812 goto LABEL_291; | 18049 ++v122; |
18050 //v4 = v124; | |
18051 //v5 = pSomeEVT; | |
18052 //v6 = v123; | |
18053 //v7 = ""; | |
18054 break; | |
17813 case EVENT_CastSpell: | 18055 case EVENT_CastSpell: |
17814 sub_448DF8_cast_spell( | 18056 sub_448DF8_cast_spell(_evt->v5, _evt->v6, _evt->v7, _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8), |
17815 _evt->v5, | |
17816 _evt->v6, | |
17817 _evt->v7, | |
17818 _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8), | |
17819 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), | 18057 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), |
17820 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), | 18058 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), |
17821 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), | 18059 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), |
17822 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8), | 18060 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8), |
17823 _evt->v28 + ((_evt->v29 + ((_evt->v30 + ((uint)_evt->v31 << 8)) << 8)) << 8)); | 18061 _evt->v28 + ((_evt->v29 + ((_evt->v30 + ((uint)_evt->v31 << 8)) << 8)) << 8)); |
17824 goto LABEL_291; | 18062 ++v122; |
18063 //v4 = v124; | |
18064 //v5 = pSomeEVT; | |
18065 //v6 = v123; | |
18066 //v7 = ""; | |
18067 break; | |
17825 case EVENT_SetTexture: | 18068 case EVENT_SetTexture: |
17826 sub_44861E_set_texture(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), (char *)&_evt->v9); | 18069 sub_44861E_set_texture(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), (char *)&_evt->v9); |
17827 goto LABEL_291; | 18070 ++v122; |
18071 //v4 = v124; | |
18072 //v5 = pSomeEVT; | |
18073 //v6 = v123; | |
18074 //v7 = ""; | |
18075 break; | |
17828 case EVENT_SetSprite: | 18076 case EVENT_SetSprite: |
17829 SetDecorationSprite( | 18077 SetDecorationSprite(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), _evt->v9, (char *)&_evt->v10); |
17830 _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8), | 18078 ++v122; |
17831 _evt->v9, | 18079 //v4 = v124; |
17832 (char *)&_evt->v10); | 18080 //v5 = pSomeEVT; |
17833 goto LABEL_291; | 18081 //v6 = v123; |
18082 //v7 = ""; | |
18083 break; | |
17834 case EVENT_SummonMonsters: | 18084 case EVENT_SummonMonsters: |
17835 sub_448CF4_spawn_monsters( | 18085 sub_448CF4_spawn_monsters(_evt->v5, _evt->v6, _evt->v7, |
17836 _evt->v5, | |
17837 _evt->v6, | |
17838 _evt->v7, | |
17839 _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8), | 18086 _evt->v8 + ((_evt->v9 + ((_evt->v10 + ((uint)_evt->v11 << 8)) << 8)) << 8), |
17840 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), | 18087 _evt->v12 + ((_evt->v13 + ((_evt->v14 + ((uint)_evt->v15 << 8)) << 8)) << 8), |
17841 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), | 18088 _evt->v16 + ((_evt->v17 + ((_evt->v18 + ((uint)_evt->v19 << 8)) << 8)) << 8), |
17842 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), | 18089 _evt->v20 + ((_evt->v21 + ((_evt->v22 + ((uint)_evt->v23 << 8)) << 8)) << 8), |
17843 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8)); | 18090 _evt->v24 + ((_evt->v25 + ((_evt->v26 + ((uint)_evt->v27 << 8)) << 8)) << 8)); |
17844 goto LABEL_291; | 18091 ++v122; |
18092 //v4 = v124; | |
18093 //v5 = pSomeEVT; | |
18094 //v6 = v123; | |
18095 //v7 = ""; | |
18096 break; | |
17845 case EVENT_MouseOver: | 18097 case EVENT_MouseOver: |
17846 case EVENT_LocationName: | 18098 case EVENT_LocationName: |
17847 --v122; | 18099 --v122; |
17848 goto LABEL_291; | 18100 ++v122; |
18101 //v4 = v124; | |
18102 //v5 = pSomeEVT; | |
18103 //v6 = v123; | |
18104 //v7 = ""; | |
18105 break; | |
17849 case EVENT_ChangeDoorState: | 18106 case EVENT_ChangeDoorState: |
17850 sub_449A49_door_switch_animation(_evt->v5, _evt->v6); | 18107 sub_449A49_door_switch_animation(_evt->v5, _evt->v6); |
17851 goto LABEL_291; | 18108 ++v122; |
18109 //v4 = v124; | |
18110 //v5 = pSomeEVT; | |
18111 //v6 = v123; | |
18112 //v7 = ""; | |
18113 break; | |
17852 case EVENT_OpenChest: | 18114 case EVENT_OpenChest: |
17853 if ( !Chest::Open(_evt->v5) ) | 18115 if ( !Chest::Open(_evt->v5) ) |
17854 goto LABEL_301; | 18116 goto LABEL_301; |
17855 goto LABEL_291; | 18117 ++v122; |
18118 //v4 = v124; | |
18119 //v5 = pSomeEVT; | |
18120 //v6 = v123; | |
18121 //v7 = ""; | |
18122 break; | |
17856 case EVENT_MoveToMap: | 18123 case EVENT_MoveToMap: |
17857 v94 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 18124 v94 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17858 v135 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 18125 v135 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17859 v132 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 18126 v132 = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17860 v126 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8); | 18127 v126 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8); |
17865 v134 = v96 + ((_evt->v26 + ((_evt->v27 + ((uint)_evt->v28 << 8)) << 8)) << 8); | 18132 v134 = v96 + ((_evt->v26 + ((_evt->v27 + ((uint)_evt->v28 << 8)) << 8)) << 8); |
17866 if ( _evt->v29 || _evt->v30 ) | 18133 if ( _evt->v29 || _evt->v30 ) |
17867 { | 18134 { |
17868 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode ) | 18135 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode ) |
17869 pRenderer->_49FD3A(); | 18136 pRenderer->_49FD3A(); |
17870 sub_444839_move_map( | 18137 sub_444839_move_map(_evt->v29, _evt->v30, v135, v132, v126, v129, v95, v134, (char *)&_evt->v31); |
17871 _evt->v29, | |
17872 _evt->v30, | |
17873 v135, | |
17874 v132, | |
17875 v126, | |
17876 v129, | |
17877 v95, | |
17878 v134, | |
17879 (char *)&_evt->v31); | |
17880 dword_5C3418 = uEventID; | 18138 dword_5C3418 = uEventID; |
17881 dword_5C341C = v122 + 1; | 18139 dword_5C341C = v122 + 1; |
17882 goto LABEL_301; | 18140 goto LABEL_301; |
17883 } | 18141 } |
17884 _5B65AC_npcdata_fame_or_other = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); | 18142 _5B65AC_npcdata_fame_or_other = _evt->v9 + ((_evt->v10 + ((_evt->v11 + ((uint)_evt->v12 << 8)) << 8)) << 8); |
17956 pIcons_LOD->_40F9C5(); | 18214 pIcons_LOD->_40F9C5(); |
17957 } | 18215 } |
17958 goto LABEL_302; | 18216 goto LABEL_302; |
17959 } | 18217 } |
17960 } | 18218 } |
17961 goto LABEL_291; | 18219 ++v122; |
18220 //v4 = v124; | |
18221 //v5 = pSomeEVT; | |
18222 //v6 = v123; | |
18223 //v7 = ""; | |
18224 break; | |
17962 case EVENT_PlaySound: | 18225 case EVENT_PlaySound: |
17963 v120 = 0; | 18226 v120 = 0; |
17964 v116 = 0; | 18227 v116 = 0; |
17965 v111 = 0; | 18228 v111 = 0; |
17966 v110 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8); | 18229 v110 = _evt->v13 + ((_evt->v14 + ((_evt->v15 + ((uint)_evt->v16 << 8)) << 8)) << 8); |
17976 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); | 18239 + ((_evt->v8 + ((_evt->v9 + ((uint)_evt->v10 << 8)) << 8)) << 8); |
17977 pItemsTable->GenerateItem(_evt->v5, _evt->v6, &item); | 18240 pItemsTable->GenerateItem(_evt->v5, _evt->v6, &item); |
17978 if ( v102 ) | 18241 if ( v102 ) |
17979 item.uItemID = v102; | 18242 item.uItemID = v102; |
17980 pParty->SetHoldingItem(&item); | 18243 pParty->SetHoldingItem(&item); |
17981 goto LABEL_291; | 18244 ++v122; |
18245 //v4 = v124; | |
18246 //v5 = pSomeEVT; | |
18247 //v6 = v123; | |
18248 //v7 = ""; | |
18249 break; | |
17982 case EVENT_SpeakInHouse: | 18250 case EVENT_SpeakInHouse: |
17983 v103 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); | 18251 v103 = _evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8); |
17984 if ( EnterHouse((enum HOUSE_TYPE)(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8))) ) | 18252 if ( EnterHouse((enum HOUSE_TYPE)(_evt->v5 + ((_evt->v6 + ((_evt->v7 + ((uint)_evt->v8 << 8)) << 8)) << 8))) ) |
17985 { | 18253 { |
17986 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode ) | 18254 if ( pRenderer->pRenderD3D && !pRenderer->bWindowMode ) |
17995 ptr_507BC0->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, "", 0); | 18263 ptr_507BC0->CreateButton(0xB1u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 2u, 0x32u, "", 0); |
17996 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); | 18264 ptr_507BC0->CreateButton(0x124u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 3u, 0x33u, "", 0); |
17997 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); | 18265 ptr_507BC0->CreateButton(0x197u, 0x1A8u, 0x1Fu, 0, 2, 94, 0x6Eu, 4u, 0x34u, "", 0); |
17998 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); | 18266 ptr_507BC0->CreateButton(0, 0, 0, 0, 1, 0, 0xB0u, 0, 9u, "", 0); |
17999 } | 18267 } |
18000 goto LABEL_291; | 18268 ++v122; |
18269 //v4 = v124; | |
18270 //v5 = pSomeEVT; | |
18271 //v6 = v123; | |
18272 //v7 = ""; | |
18273 break; | |
18001 case EVENT_PressAnyKey: | 18274 case EVENT_PressAnyKey: |
18002 v121 = 33; | 18275 v121 = 33; |
18003 v105 = v122 + 1; | 18276 v105 = v122 + 1; |
18004 goto LABEL_295; | 18277 goto LABEL_295; |
18005 case EVENT_Exit: | 18278 case EVENT_Exit: |
18006 goto LABEL_301; | 18279 goto LABEL_301; |
18007 default: | 18280 default: |
18008 goto LABEL_291; | 18281 ++v122; |
18282 //v4 = v124; | |
18283 //v5 = pSomeEVT; | |
18284 //v6 = v123; | |
18285 //v7 = ""; | |
18286 break; | |
18009 } | 18287 } |
18010 } | 18288 } |
18011 //++v4; | 18289 //++v4; |
18012 //v124 = v4; | 18290 //v124 = v4; |
18013 //if ( v4 >= (signed int)uSomeEVT_NumEvents ) | 18291 //if ( v4 >= (signed int)uSomeEVT_NumEvents ) |