Mercurial > mm7
comparison mm7_5.cpp @ 332:e8fcde8ba3fc
m
author | Ritor1 |
---|---|
date | Wed, 20 Feb 2013 20:50:22 +0600 |
parents | f16ac5e65438 |
children | 405d0c4dd1b3 |
comparison
equal
deleted
inserted
replaced
331:72de4ad353c6 | 332:e8fcde8ba3fc |
---|---|
7019 } | 7019 } |
7020 | 7020 |
7021 //----- (0043CC7C) -------------------------------------------------------- | 7021 //----- (0043CC7C) -------------------------------------------------------- |
7022 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID) | 7022 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID) |
7023 { | 7023 { |
7024 Player **ppPlayer; // esi@1 | |
7025 Player *pPlayer; // ebx@1 | 7024 Player *pPlayer; // ebx@1 |
7026 enum CHARACTER_RACE pRace; // edi@1 | |
7027 signed int pSex; // eax@1 | |
7028 int v5; // edi@4 | |
7029 unsigned int v6; // ecx@9 | 7025 unsigned int v6; // ecx@9 |
7030 int v7; // ecx@10 | 7026 int v7; // ecx@10 |
7031 unsigned int v8; // eax@14 | 7027 unsigned int v8; // eax@14 |
7032 int v9; // eax@15 | 7028 int v9; // eax@15 |
7033 int v10; // edx@15 | 7029 int v10; // edx@15 |
7039 Texture *v16; // ebp@27 | 7035 Texture *v16; // ebp@27 |
7040 double v17; // st7@29 | 7036 double v17; // st7@29 |
7041 int v18; // edi@30 | 7037 int v18; // edi@30 |
7042 char *v19; // eax@30 | 7038 char *v19; // eax@30 |
7043 Texture *v20; // edi@31 | 7039 Texture *v20; // edi@31 |
7044 unsigned int v21; // eax@37 | 7040 int pBowNum; // eax@37 |
7045 int v22; // edi@38 | 7041 int v22; // edi@38 |
7046 int v23; // eax@38 | 7042 int v23; // eax@38 |
7047 int v24; // ebx@38 | 7043 int pX; // ebx@38 |
7048 int v25; // eax@38 | 7044 int v25; // eax@38 |
7049 LODFile_IconsBitmaps *v26; // ecx@42 | 7045 LODFile_IconsBitmaps *v26; // ecx@42 |
7050 Texture *v27; // edi@51 | 7046 Texture *v27; // edi@51 |
7051 double v28; // st7@51 | 7047 double v28; // st7@51 |
7052 char v29; // zf@54 | 7048 char v29; // zf@54 |
7053 char *v30; // eax@54 | 7049 char *v30; // eax@54 |
7054 unsigned int v31; // eax@59 | 7050 int pCloakNum; // eax@59 |
7055 int v32; // edx@60 | 7051 int v32; // edx@60 |
7056 int v33; // eax@65 | 7052 int v33; // eax@65 |
7057 int v34; // eax@74 | 7053 int v34; // eax@74 |
7058 int v35; // ebx@74 | 7054 int v35; // ebx@74 |
7059 unsigned int v36; // ecx@74 | 7055 int pY2; // ecx@74 |
7060 int v37; // eax@74 | 7056 int v37; // eax@74 |
7061 LODFile_IconsBitmaps *v38; // ecx@78 | 7057 LODFile_IconsBitmaps *v38; // ecx@78 |
7062 Texture *v39; // edi@85 | 7058 Texture *v39; // edi@85 |
7063 double v40; // st7@87 | 7059 double v40; // st7@87 |
7064 int v41; // edi@88 | 7060 int v41; // edi@88 |
7213 Texture *v190; // [sp-4h] [bp-50h]@235 | 7209 Texture *v190; // [sp-4h] [bp-50h]@235 |
7214 signed int v191; // [sp-4h] [bp-50h]@266 | 7210 signed int v191; // [sp-4h] [bp-50h]@266 |
7215 signed int v192; // [sp-4h] [bp-50h]@304 | 7211 signed int v192; // [sp-4h] [bp-50h]@304 |
7216 unsigned int a3; // [sp+10h] [bp-3Ch]@7 | 7212 unsigned int a3; // [sp+10h] [bp-3Ch]@7 |
7217 int a3a; // [sp+10h] [bp-3Ch]@15 | 7213 int a3a; // [sp+10h] [bp-3Ch]@15 |
7218 int a3b; // [sp+10h] [bp-3Ch]@38 | 7214 int pY; // [sp+10h] [bp-3Ch]@38 |
7219 unsigned int a3c; // [sp+10h] [bp-3Ch]@74 | |
7220 unsigned int a3d; // [sp+10h] [bp-3Ch]@106 | 7215 unsigned int a3d; // [sp+10h] [bp-3Ch]@106 |
7221 int a3e; // [sp+10h] [bp-3Ch]@129 | 7216 int a3e; // [sp+10h] [bp-3Ch]@129 |
7222 int a3f; // [sp+10h] [bp-3Ch]@168 | 7217 int a3f; // [sp+10h] [bp-3Ch]@168 |
7223 unsigned int a3g; // [sp+10h] [bp-3Ch]@216 | 7218 unsigned int a3g; // [sp+10h] [bp-3Ch]@216 |
7224 unsigned int a3h; // [sp+10h] [bp-3Ch]@274 | 7219 unsigned int a3h; // [sp+10h] [bp-3Ch]@274 |
7226 int a3j; // [sp+10h] [bp-3Ch]@336 | 7221 int a3j; // [sp+10h] [bp-3Ch]@336 |
7227 int a3k; // [sp+10h] [bp-3Ch]@362 | 7222 int a3k; // [sp+10h] [bp-3Ch]@362 |
7228 signed int a2; // [sp+14h] [bp-38h]@7 | 7223 signed int a2; // [sp+14h] [bp-38h]@7 |
7229 unsigned int a2a; // [sp+14h] [bp-38h]@15 | 7224 unsigned int a2a; // [sp+14h] [bp-38h]@15 |
7230 Texture *a2b; // [sp+14h] [bp-38h]@49 | 7225 Texture *a2b; // [sp+14h] [bp-38h]@49 |
7231 int a2c; // [sp+14h] [bp-38h]@74 | 7226 int pX2; // [sp+14h] [bp-38h]@74 |
7232 int a2d; // [sp+14h] [bp-38h]@106 | 7227 int a2d; // [sp+14h] [bp-38h]@106 |
7233 int a2e; // [sp+14h] [bp-38h]@129 | 7228 int a2e; // [sp+14h] [bp-38h]@129 |
7234 int a2f; // [sp+14h] [bp-38h]@168 | 7229 int a2f; // [sp+14h] [bp-38h]@168 |
7235 int a2g; // [sp+14h] [bp-38h]@214 | 7230 int a2g; // [sp+14h] [bp-38h]@214 |
7236 int a2h; // [sp+14h] [bp-38h]@274 | 7231 int a2h; // [sp+14h] [bp-38h]@274 |
7237 Texture *a2i; // [sp+14h] [bp-38h]@284 | 7232 Texture *a2i; // [sp+14h] [bp-38h]@284 |
7238 int a2j; // [sp+14h] [bp-38h]@312 | 7233 int a2j; // [sp+14h] [bp-38h]@312 |
7239 int a2k; // [sp+14h] [bp-38h]@336 | 7234 int a2k; // [sp+14h] [bp-38h]@336 |
7240 Player *v217; // [sp+18h] [bp-34h]@1 | |
7241 int v218; // [sp+1Ch] [bp-30h]@15 | 7235 int v218; // [sp+1Ch] [bp-30h]@15 |
7242 int v219; // [sp+1Ch] [bp-30h]@60 | |
7243 int v220; // [sp+1Ch] [bp-30h]@94 | 7236 int v220; // [sp+1Ch] [bp-30h]@94 |
7244 int v221; // [sp+1Ch] [bp-30h]@128 | 7237 int v221; // [sp+1Ch] [bp-30h]@128 |
7245 int v222; // [sp+1Ch] [bp-30h]@161 | 7238 int v222; // [sp+1Ch] [bp-30h]@161 |
7246 int v223; // [sp+1Ch] [bp-30h]@213 | 7239 int v223; // [sp+1Ch] [bp-30h]@213 |
7247 char v224; // [sp+1Ch] [bp-30h]@237 | 7240 char v224; // [sp+1Ch] [bp-30h]@237 |
7248 int v225; // [sp+1Ch] [bp-30h]@260 | 7241 int v225; // [sp+1Ch] [bp-30h]@260 |
7249 int v226; // [sp+1Ch] [bp-30h]@298 | 7242 int v226; // [sp+1Ch] [bp-30h]@298 |
7250 int v227; // [sp+1Ch] [bp-30h]@336 | 7243 int v227; // [sp+1Ch] [bp-30h]@336 |
7251 int v228; // [sp+1Ch] [bp-30h]@359 | 7244 int v228; // [sp+1Ch] [bp-30h]@359 |
7252 int v229; // [sp+20h] [bp-2Ch]@15 | 7245 int v229; // [sp+20h] [bp-2Ch]@15 |
7253 int v230; // [sp+20h] [bp-2Ch]@38 | |
7254 int v231; // [sp+20h] [bp-2Ch]@60 | |
7255 int v232; // [sp+20h] [bp-2Ch]@94 | 7246 int v232; // [sp+20h] [bp-2Ch]@94 |
7256 int v233; // [sp+20h] [bp-2Ch]@128 | 7247 int v233; // [sp+20h] [bp-2Ch]@128 |
7257 int v234; // [sp+20h] [bp-2Ch]@161 | 7248 int v234; // [sp+20h] [bp-2Ch]@161 |
7258 int v235; // [sp+20h] [bp-2Ch]@197 | 7249 int v235; // [sp+20h] [bp-2Ch]@197 |
7259 int v236; // [sp+20h] [bp-2Ch]@260 | 7250 int v236; // [sp+20h] [bp-2Ch]@260 |
7262 int pBodyComplection; // [sp+24h] [bp-28h]@6 | 7253 int pBodyComplection; // [sp+24h] [bp-28h]@6 |
7263 int v240; // [sp+28h] [bp-24h]@7 | 7254 int v240; // [sp+28h] [bp-24h]@7 |
7264 unsigned int v241; // [sp+2Ch] [bp-20h]@38 | 7255 unsigned int v241; // [sp+2Ch] [bp-20h]@38 |
7265 int v242; // [sp+2Ch] [bp-20h]@197 | 7256 int v242; // [sp+2Ch] [bp-20h]@197 |
7266 unsigned int v243; // [sp+2Ch] [bp-20h]@370 | 7257 unsigned int v243; // [sp+2Ch] [bp-20h]@370 |
7267 int v244; // [sp+34h] [bp-18h]@6 | 7258 int pFaceNum; // [sp+34h] [bp-18h]@6 |
7268 signed int v245; // [sp+34h] [bp-18h]@361 | 7259 signed int v245; // [sp+34h] [bp-18h]@361 |
7269 unsigned int uPlayerID_; // [sp+38h] [bp-14h]@1 | |
7270 int uPlayerID_a; // [sp+38h] [bp-14h]@9 | 7260 int uPlayerID_a; // [sp+38h] [bp-14h]@9 |
7271 signed int IsDwarf; // [sp+40h] [bp-Ch]@4 | 7261 signed int IsDwarf; // [sp+40h] [bp-Ch]@4 |
7272 int v249; // [sp+40h] [bp-Ch]@358 | 7262 int v249; // [sp+40h] [bp-Ch]@358 |
7273 signed int v250; // [sp+44h] [bp-8h]@1 | 7263 |
7274 | 7264 pPlayer = pPlayers[uPlayerID]; |
7275 ppPlayer = &pPlayers[uPlayerID]; | |
7276 pPlayer = *ppPlayer; | |
7277 uPlayerID_ = uPlayerID; | |
7278 v217 = *ppPlayer; | |
7279 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE); | 7265 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE); |
7280 pRace = pPlayer->GetRace(); | 7266 if ( pPlayer->GetRace() && pPlayer->GetRace() != 1 && pPlayer->GetRace() != 2 ) |
7281 pSex = pPlayer->GetSexByVoice(); | |
7282 v250 = pSex; | |
7283 if ( pRace && pRace != 1 && pRace != 2 ) | |
7284 { | 7267 { |
7285 IsDwarf = 1; | 7268 IsDwarf = 1; |
7286 v5 = (pSex != 0) + 2; | 7269 pBodyComplection = (pPlayer->GetSexByVoice() != 0) + 2; |
7287 } | 7270 } |
7288 else | 7271 else |
7289 { | 7272 { |
7290 IsDwarf = 0; | 7273 IsDwarf = 0; |
7291 v5 = pSex != 0; | 7274 pBodyComplection = pPlayer->GetSexByVoice() != 0; |
7292 } | 7275 } |
7293 pBodyComplection = v5; | 7276 pFaceNum = pPlayer->uFace; |
7294 v244 = (*ppPlayer)->uFace; | |
7295 pRenderer->ResetClip(); | 7277 pRenderer->ResetClip(); |
7296 pRenderer->DrawTextureIndexed(0x1D3u, 0, (Texture *)(uTextureID_BACKDOLL != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BACKDOLL] : 0));//Подложка | 7278 pRenderer->DrawTextureIndexed(0x1D3u, 0, (Texture *)(uTextureID_BACKDOLL != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BACKDOLL] : 0));//Подложка |
7297 if ( !IsPlayerWearingWatersuit[uPlayerID_] ) | 7279 if ( !IsPlayerWearingWatersuit[uPlayerID] )// не носит водолазный костюм |
7298 { | 7280 { |
7299 v21 = pPlayer->pEquipment.uBow; //сначала рисуется лук | 7281 pBowNum = pPlayer->pEquipment.uBow; //сначала рисуется лук |
7300 if ( !v21 ) | 7282 if ( !pBowNum ) |
7301 goto LABEL_59; | 7283 goto LABEL_59; |
7302 v230 = pPlayer->pEquipment.uBow; | 7284 v22 = (int)&pPlayer->pInventoryItems[pBowNum-1]; |
7303 v22 = (int)&v217->pInventoryItems[v21-1]; | |
7304 v23 = *(int *)v22; | 7285 v23 = *(int *)v22; |
7305 v24 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX; | 7286 pX = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[v23].uEquipX; |
7306 a3b = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY; | 7287 pY = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[v23].uEquipY; |
7307 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE); | 7288 v241 = pIcons_LOD->LoadTexture(pItemsTable->pItems[v23].pIconName, TEXTURE_16BIT_PALETTE); |
7308 v25 = *(int *)(v22 + 20); | 7289 v25 = *(int *)(v22 + 20); |
7309 if ( !(*(int *)(v22 + 20) & 0xF0) ) | 7290 if ( !(*(int *)(v22 + 20) & 0xF0) ) |
7310 { | 7291 { |
7311 if ( v25 & 2 ) | 7292 if ( v25 & 2 ) |
7312 { | 7293 { |
7313 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); | 7294 pRenderer->_4A6776(pX, pY, (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0)); |
7314 pRenderer->_4A6776(v24, a3b, v27); | |
7315 } | 7295 } |
7316 else | 7296 else |
7317 { | 7297 { |
7318 v29 = (v25 & 1) == 0; | 7298 v29 = (v25 & 1) == 0; |
7319 v30 = (char *)&pIcons_LOD->pTextures[v241]; | 7299 v30 = (char *)&pIcons_LOD->pTextures[v241]; |
7320 if ( v29 ) | 7300 if ( v29 ) |
7321 { | 7301 { |
7322 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0); | 7302 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0); |
7323 pRenderer->DrawTransparentGreenShade(v24, a3b, (Texture *)(v241 != -1 ? (int)v30 : 0)); | 7303 pRenderer->DrawTransparentGreenShade(pX, pY, (Texture *)(v241 != -1 ? (int)v30 : 0)); |
7324 } | 7304 } |
7325 else | 7305 else |
7326 { | 7306 { |
7327 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0); | 7307 v27 = (Texture *)(v241 != -1 ? (int)v30 : 0); |
7328 pRenderer->DrawTextureTransparent(v24, a3b, (Texture *)(v241 != -1 ? (int)v30 : 0)); | 7308 pRenderer->DrawTextureTransparent(pX, pY, (Texture *)(v241 != -1 ? (int)v30 : 0)); |
7329 } | 7309 } |
7330 } | 7310 } |
7331 LABEL_57: | 7311 LABEL_57: |
7332 if ( !bRingsShownInCharScreen ) | 7312 if ( !bRingsShownInCharScreen ) |
7333 pRenderer->_4A612A(v24, a3b, v27, v230); | 7313 pRenderer->_4A612A(pX, pY, v27, pBowNum); |
7334 LABEL_59: | 7314 LABEL_59: |
7335 v31 = v217->pEquipment.uCloak;// потом плащ | 7315 pCloakNum = pPlayer->pEquipment.uCloak;// потом плащ |
7336 if ( !v31 ) | 7316 if ( !pCloakNum ) |
7337 goto LABEL_93; | 7317 goto LABEL_93; |
7338 v231 = v217->pEquipment.uCloak; | 7318 v32 = (int)&pPlayer->pInventoryItems[pCloakNum-1]; |
7339 v32 = (int)&v217->pInventoryItems[v31-1]; | |
7340 v219 = v32; | |
7341 if ( *(int *)v32 != 525 ) | 7319 if ( *(int *)v32 != 525 ) |
7342 { | 7320 { |
7343 switch ( *(int *)v32 ) | 7321 switch ( *(int *)v32 ) |
7344 { | 7322 { |
7345 case 0x212: | 7323 case 0x212: |
7359 if ( v33 < 0 || v33 >= 10 ) | 7337 if ( v33 < 0 || v33 >= 10 ) |
7360 goto LABEL_93; | 7338 goto LABEL_93; |
7361 LABEL_74: | 7339 LABEL_74: |
7362 v34 = v33 + 10 * pBodyComplection; | 7340 v34 = v33 + 10 * pBodyComplection; |
7363 v35 = paperdoll_array_511828[0][v34];//Texture_Cloak | 7341 v35 = paperdoll_array_511828[0][v34];//Texture_Cloak |
7364 a2c = pPaperdoll_BodyX + paperdoll_Cloak[0][v34][0]; | 7342 pX2 = pPaperdoll_BodyX + paperdoll_Cloak[0][v34][0]; |
7365 v36 = pPaperdoll_BodyY + paperdoll_Cloak[0][v34][1]; | 7343 pY2 = pPaperdoll_BodyY + paperdoll_Cloak[0][v34][1]; |
7366 v37 = *(int *)(v32 + 20); | 7344 v37 = *(int *)(v32 + 20); |
7367 a3c = v36; | |
7368 if ( !(v37 & 0xF0) ) | 7345 if ( !(v37 & 0xF0) ) |
7369 { | 7346 { |
7370 v41 = v35 + 1; | 7347 v41 = v35 + 1; |
7371 if ( v37 & 2 ) | 7348 if ( v37 & 2 ) |
7372 { | 7349 { |
7373 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0); | 7350 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0); |
7374 pRenderer->_4A6776(a2c, v36, v42); | 7351 pRenderer->_4A6776(pX2, pY2, v42); |
7375 } | 7352 } |
7376 else | 7353 else |
7377 { | 7354 { |
7378 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0); | 7355 v42 = (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0); |
7379 pRenderer->DrawTextureTransparent(a2c, v36, v42); | 7356 pRenderer->DrawTextureTransparent(pX2, pY2, v42); |
7380 } | 7357 } |
7381 if ( !bRingsShownInCharScreen ) | 7358 if ( !bRingsShownInCharScreen ) |
7382 pRenderer->_4A612A(a2c, a3c, v42, v231); | 7359 pRenderer->_4A612A(pX2, pY2, v42, pCloakNum); |
7383 LABEL_93: | 7360 LABEL_93: |
7384 v240 = 4 * uPlayerID_ - 4; | 7361 v240 = 4 * uPlayerID - 4; |
7385 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, | 7362 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, |
7386 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); | 7363 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); |
7387 v43 = v217->pEquipment.uBody;// потом тело | 7364 v43 = pPlayer->pEquipment.uBody;// потом тело |
7388 if ( !v43 ) | 7365 if ( !v43 ) |
7389 goto LABEL_127; | 7366 goto LABEL_127; |
7390 v232 = v217->pEquipment.uBody; | 7367 v232 = pPlayer->pEquipment.uBody; |
7391 v44 = (int)&v217->pInventoryItems[v43-1]; | 7368 v44 = (int)&pPlayer->pInventoryItems[v43-1]; |
7392 v220 = v44; | 7369 v220 = v44; |
7393 if ( *(int *)v44 != 504 ) | 7370 if ( *(int *)v44 != 504 ) |
7394 { | 7371 { |
7395 if ( *(int *)v44 == 505 ) | 7372 if ( *(int *)v44 == 505 ) |
7396 { | 7373 { |
7441 } | 7418 } |
7442 } | 7419 } |
7443 if ( !bRingsShownInCharScreen ) | 7420 if ( !bRingsShownInCharScreen ) |
7444 pRenderer->_4A612A(a2d, a3d, v54, v232); | 7421 pRenderer->_4A612A(a2d, a3d, v54, v232); |
7445 LABEL_127: | 7422 LABEL_127: |
7446 v56 = v217->pEquipment.field_20; | 7423 v56 = pPlayer->pEquipment.field_20; |
7447 if ( !v56 ) | 7424 if ( !v56 ) |
7448 goto LABEL_155; | 7425 goto LABEL_155; |
7449 v233 = v217->pEquipment.field_20; | 7426 v233 = pPlayer->pEquipment.field_20; |
7450 v57 = (int)&v217->pInventoryItems[v56-1]; | 7427 v57 = (int)&pPlayer->pInventoryItems[v56-1]; |
7451 v221 = v57; | 7428 v221 = v57; |
7452 v58 = *(int *)v57; | 7429 v58 = *(int *)v57; |
7453 if ( *(int *)v57 == 529 ) | 7430 if ( *(int *)v57 == 529 ) |
7454 { | 7431 { |
7455 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1]; | 7432 a3e = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][5][1]; |
7456 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][5][0]; | 7433 a2e = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][5][0]; |
7457 v59 = papredoll_flying_feet[v244]; | 7434 v59 = papredoll_flying_feet[pFaceNum]; |
7458 } | 7435 } |
7459 else | 7436 else |
7460 { | 7437 { |
7461 if ( v58 == 512 ) | 7438 if ( v58 == 512 ) |
7462 { | 7439 { |
7506 } | 7483 } |
7507 } | 7484 } |
7508 if ( !bRingsShownInCharScreen ) | 7485 if ( !bRingsShownInCharScreen ) |
7509 pRenderer->_4A612A(a2e, a3e, v67, v233); | 7486 pRenderer->_4A612A(a2e, a3e, v67, v233); |
7510 LABEL_155: | 7487 LABEL_155: |
7511 v68 = v217; | 7488 v68 = pPlayer; |
7512 v69 = v217->pEquipment.uMainHand; | 7489 v69 = pPlayer->pEquipment.uMainHand; |
7513 uPlayerID_a = 2 * pBodyComplection; | 7490 uPlayerID_a = 2 * pBodyComplection; |
7514 if ( !v69 || (v70 = *(int *)&v217->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1) | 7491 if ( !v69 || (v70 = *(int *)&pPlayer->pInventoryItems[v69-1], pItemsTable->pItems[v70].uEquipType != 1) |
7515 && (pItemsTable->pItems[v70].uSkillType != 4 || v217->pEquipment.uOffHand) ) | 7492 && (pItemsTable->pItems[v70].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) |
7516 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], | 7493 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], |
7517 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], | 7494 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], |
7518 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); | 7495 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); |
7519 v71 = v217->pEquipment.uBelt; | 7496 v71 = pPlayer->pEquipment.uBelt; |
7520 if ( v71 ) | 7497 if ( v71 ) |
7521 { | 7498 { |
7522 v234 = v217->pEquipment.uBelt; | 7499 v234 = pPlayer->pEquipment.uBelt; |
7523 v72 = (int)&v217->pInventoryItems[v71-1]; | 7500 v72 = (int)&pPlayer->pInventoryItems[v71-1]; |
7524 v222 = v72; | 7501 v222 = v72; |
7525 if ( *(int *)v72 == 524 ) | 7502 if ( *(int *)v72 == 524 ) |
7526 { | 7503 { |
7527 v73 = 5; | 7504 v73 = 5; |
7528 } | 7505 } |
7543 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1]; | 7520 a3f = pPaperdoll_BodyY + paperdoll_Belt[0][v74][1]; |
7544 if ( IsDwarf != 1 || v73 == 5 ) | 7521 if ( IsDwarf != 1 || v73 == 5 ) |
7545 v75 = stru_511718.texids[v74]; | 7522 v75 = stru_511718.texids[v74]; |
7546 else | 7523 else |
7547 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)]; | 7524 v75 = stru_511718.texids[v73 + 7 * (pBodyComplection - 2)]; |
7548 v76 = *(int *)&v217->field_1F5[36 * v71 + 15]; | 7525 v76 = *(int *)&pPlayer->field_1F5[36 * v71 + 15]; |
7549 if ( !(*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) ) | 7526 if ( !(*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) ) |
7550 { | 7527 { |
7551 v79 = v75 + 1; | 7528 v79 = v75 + 1; |
7552 v80 = (char *)&pIcons_LOD->pTextures[v75]; | 7529 v80 = (char *)&pIcons_LOD->pTextures[v75]; |
7553 if ( v76 & 2 ) | 7530 if ( v76 & 2 ) |
7554 { | 7531 { |
7568 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81); | 7545 pRenderer->DrawTransparentGreenShade(a2f, a3f, v81); |
7569 } | 7546 } |
7570 } | 7547 } |
7571 if ( !bRingsShownInCharScreen ) | 7548 if ( !bRingsShownInCharScreen ) |
7572 pRenderer->_4A612A(a2f, a3f, v81, v234); | 7549 pRenderer->_4A612A(a2f, a3f, v81, v234); |
7573 v68 = v217; | 7550 v68 = pPlayer; |
7574 goto LABEL_192; | 7551 goto LABEL_192; |
7575 } | 7552 } |
7576 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) != 16 ) | 7553 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) != 16 ) |
7577 { | 7554 { |
7578 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 32 ) | 7555 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 32 ) |
7579 { | 7556 { |
7580 v172 = "sp28a"; | 7557 v172 = "sp28a"; |
7581 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7558 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7582 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7559 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7583 if ( dword_50C9A8 <= 0 ) | 7560 if ( dword_50C9A8 <= 0 ) |
7586 *(char *)(v222 + 20) &= 0xFu; | 7563 *(char *)(v222 + 20) &= 0xFu; |
7587 ptr_50C9A4 = 0; | 7564 ptr_50C9A4 = 0; |
7588 } | 7565 } |
7589 v78 = (double)GetTickCount() * 0.1; | 7566 v78 = (double)GetTickCount() * 0.1; |
7590 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7567 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7591 v68 = v217; | 7568 v68 = pPlayer; |
7592 goto LABEL_192; | 7569 goto LABEL_192; |
7593 } | 7570 } |
7594 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 64 ) | 7571 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 64 ) |
7595 { | 7572 { |
7596 v172 = "sp30a"; | 7573 v172 = "sp30a"; |
7597 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7574 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7598 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7575 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7599 if ( dword_50C9A8 <= 0 ) | 7576 if ( dword_50C9A8 <= 0 ) |
7602 *(char *)(v222 + 20) &= 0xFu; | 7579 *(char *)(v222 + 20) &= 0xFu; |
7603 ptr_50C9A4 = 0; | 7580 ptr_50C9A4 = 0; |
7604 } | 7581 } |
7605 v78 = (double)GetTickCount() * 0.1; | 7582 v78 = (double)GetTickCount() * 0.1; |
7606 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7583 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7607 v68 = v217; | 7584 v68 = pPlayer; |
7608 goto LABEL_192; | 7585 goto LABEL_192; |
7609 } | 7586 } |
7610 if ( (*(int *)&v217->field_1F5[36 * v71 + 15] & 0xF0) == 128 ) | 7587 if ( (*(int *)&pPlayer->field_1F5[36 * v71 + 15] & 0xF0) == 128 ) |
7611 { | 7588 { |
7612 v172 = "sp91a"; | 7589 v172 = "sp91a"; |
7613 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7590 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7614 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 7591 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
7615 if ( dword_50C9A8 <= 0 ) | 7592 if ( dword_50C9A8 <= 0 ) |
7618 *(char *)(v222 + 20) &= 0xFu; | 7595 *(char *)(v222 + 20) &= 0xFu; |
7619 ptr_50C9A4 = 0; | 7596 ptr_50C9A4 = 0; |
7620 } | 7597 } |
7621 v78 = (double)GetTickCount() * 0.1; | 7598 v78 = (double)GetTickCount() * 0.1; |
7622 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7599 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7623 v68 = v217; | 7600 v68 = pPlayer; |
7624 goto LABEL_192; | 7601 goto LABEL_192; |
7625 } | 7602 } |
7626 } | 7603 } |
7627 v172 = "sptext01"; | 7604 v172 = "sptext01"; |
7628 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; | 7605 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)]; |
7633 *(char *)(v222 + 20) &= 0xFu; | 7610 *(char *)(v222 + 20) &= 0xFu; |
7634 ptr_50C9A4 = 0; | 7611 ptr_50C9A4 = 0; |
7635 } | 7612 } |
7636 v78 = (double)GetTickCount() * 0.1; | 7613 v78 = (double)GetTickCount() * 0.1; |
7637 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); | 7614 pRenderer->_4A63E6(a2f, a3f, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255); |
7638 v68 = v217; | 7615 v68 = pPlayer; |
7639 goto LABEL_192; | 7616 goto LABEL_192; |
7640 } | 7617 } |
7641 } | 7618 } |
7642 LABEL_192: | 7619 LABEL_192: |
7643 v82 = v68->pEquipment.uMainHand; | 7620 v82 = v68->pEquipment.uMainHand; |
7706 a2h = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115); | 7683 a2h = pPaperdoll_BodyX + *(int *)((char *)&dword_4E56B0 + v115); |
7707 a3h = pPaperdoll_BodyY + *(int *)((char *)&dword_4E56B4 + v115); | 7684 a3h = pPaperdoll_BodyY + *(int *)((char *)&dword_4E56B4 + v115); |
7708 if ( v116 == pIcons_LOD->FindTextureByName("pending") ) | 7685 if ( v116 == pIcons_LOD->FindTextureByName("pending") ) |
7709 { | 7686 { |
7710 LABEL_292: | 7687 LABEL_292: |
7711 v68 = v217; | 7688 v68 = pPlayer; |
7712 LABEL_293: | 7689 LABEL_293: |
7713 if ( v244 == 12 || v244 == 13 ) | 7690 if ( pFaceNum == 12 || pFaceNum == 13 ) |
7714 { | 7691 { |
7715 v122 = papredoll_dbrds[v244]; | 7692 v122 = papredoll_dbrds[pFaceNum]; |
7716 if ( v122 != pIcons_LOD->FindTextureByName("Pending") ) | 7693 if ( v122 != pIcons_LOD->FindTextureByName("Pending") ) |
7717 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * v244 - 24], | 7694 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * pFaceNum - 24], |
7718 pPaperdoll_BodyY + pPaperdoll_Beards[2 * v244 - 23], | 7695 pPaperdoll_BodyY + pPaperdoll_Beards[2 * pFaceNum - 23], |
7719 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0)); | 7696 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0)); |
7720 } | 7697 } |
7721 v123 = v68->pEquipment.uHelm; | 7698 v123 = v68->pEquipment.uHelm; |
7722 if ( !v123 ) | 7699 if ( !v123 ) |
7723 goto LABEL_335; | 7700 goto LABEL_335; |
7724 v237 = v123; | 7701 v237 = v123; |
7725 v124 = (int)&v217->pInventoryItems[v123-1]; | 7702 v124 = (int)&pPlayer->pInventoryItems[v123-1]; |
7726 v226 = v124; | 7703 v226 = v124; |
7727 if ( *(int *)v124 != 521 ) | 7704 if ( *(int *)v124 != 521 ) |
7728 { | 7705 { |
7729 switch ( *(int *)v124 ) | 7706 switch ( *(int *)v124 ) |
7730 { | 7707 { |
7752 LABEL_312: | 7729 LABEL_312: |
7753 v126 = 2 * (v125 + 16 * pBodyComplection); | 7730 v126 = 2 * (v125 + 16 * pBodyComplection); |
7754 a2j = pPaperdoll_BodyX + dword_4E58D0[v126]; | 7731 a2j = pPaperdoll_BodyX + dword_4E58D0[v126]; |
7755 a3i = pPaperdoll_BodyY + dword_4E58D4[v126]; | 7732 a3i = pPaperdoll_BodyY + dword_4E58D4[v126]; |
7756 if ( IsDwarf != 1 || *(int *)v124 != 92 ) | 7733 if ( IsDwarf != 1 || *(int *)v124 != 92 ) |
7757 v127 = stru_511698.texids[v125 + 16 * v250]; | 7734 v127 = stru_511698.texids[v125 + 16 * pPlayer->GetSexByVoice()]; |
7758 else | 7735 else |
7759 v127 = papredoll_dbrds[11]; | 7736 v127 = papredoll_dbrds[11]; |
7760 v128 = *(int *)(v124 + 20); | 7737 v128 = *(int *)(v124 + 20); |
7761 if ( *(int *)(v124 + 20) & 0xF0 ) | 7738 if ( *(int *)(v124 + 20) & 0xF0 ) |
7762 { | 7739 { |
7846 } | 7823 } |
7847 } | 7824 } |
7848 if ( !bRingsShownInCharScreen ) | 7825 if ( !bRingsShownInCharScreen ) |
7849 pRenderer->_4A612A(a2j, a3i, v133, v237); | 7826 pRenderer->_4A612A(a2j, a3i, v133, v237); |
7850 LABEL_335: | 7827 LABEL_335: |
7851 v134 = v217->pEquipment.uMainHand; | 7828 v134 = pPlayer->pEquipment.uMainHand; |
7852 if ( !v134 ) | 7829 if ( !v134 ) |
7853 goto LABEL_358; | 7830 goto LABEL_358; |
7854 v238 = v217->pEquipment.uMainHand; | 7831 v238 = pPlayer->pEquipment.uMainHand; |
7855 v135 = (int)&v217->pInventoryItems[v134-1]; | 7832 v135 = (int)&pPlayer->pInventoryItems[v134-1]; |
7856 v227 = v135; | 7833 v227 = v135; |
7857 v136 = *(int *)v135; | 7834 v136 = *(int *)v135; |
7858 v137 = *(int *)v135; | 7835 v137 = *(int *)v135; |
7859 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX; | 7836 a2k = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v137].uEquipX; |
7860 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY; | 7837 a3j = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[v137].uEquipY; |
7887 } | 7864 } |
7888 } | 7865 } |
7889 if ( !bRingsShownInCharScreen ) | 7866 if ( !bRingsShownInCharScreen ) |
7890 pRenderer->_4A612A(a2k, a3j, v144, v238); | 7867 pRenderer->_4A612A(a2k, a3j, v144, v238); |
7891 LABEL_358: | 7868 LABEL_358: |
7892 v145 = v217->pEquipment.uOffHand; | 7869 v145 = pPlayer->pEquipment.uOffHand; |
7893 v249 = v217->pEquipment.uOffHand; | 7870 v249 = pPlayer->pEquipment.uOffHand; |
7894 if ( !v145 ) | 7871 if ( !v145 ) |
7895 goto LABEL_393; | 7872 goto LABEL_393; |
7896 v146 = (int)&v217->pInventoryItems[v145-1]; | 7873 v146 = (int)&pPlayer->pInventoryItems[v145-1]; |
7897 v228 = v146; | 7874 v228 = v146; |
7898 v147 = *(int *)v146; | 7875 v147 = *(int *)v146; |
7899 v148 = *(int *)v146; | 7876 v148 = *(int *)v146; |
7900 v149 = pItemsTable->pItems[v148].uSkillType; | 7877 v149 = pItemsTable->pItems[v148].uSkillType; |
7901 if ( v149 != 2 && v149 != 1 ) | 7878 if ( v149 != 2 && v149 != 1 ) |
8242 v95 = dword_4E5270[2 * v91 + 1]; | 8219 v95 = dword_4E5270[2 * v91 + 1]; |
8243 } | 8220 } |
8244 a3g = pPaperdoll_BodyY + v95; | 8221 a3g = pPaperdoll_BodyY + v95; |
8245 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) | 8222 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) |
8246 { | 8223 { |
8247 v68 = v217; | 8224 v68 = pPlayer; |
8248 goto LABEL_259; | 8225 goto LABEL_259; |
8249 } | 8226 } |
8250 if ( *(int *)(v242 + 516) & 0xF0 ) | 8227 if ( *(int *)(v242 + 516) & 0xF0 ) |
8251 { | 8228 { |
8252 if ( (*(int *)(v242 + 516) & 0xF0) != 16 ) | 8229 if ( (*(int *)(v242 + 516) & 0xF0) != 16 ) |
8265 v187 = 255; | 8242 v187 = 255; |
8266 v174 = 0; | 8243 v174 = 0; |
8267 v97 = (double)GetTickCount(); | 8244 v97 = (double)GetTickCount(); |
8268 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8245 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8269 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8246 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8270 v68 = v217; | 8247 v68 = pPlayer; |
8271 goto LABEL_259; | 8248 goto LABEL_259; |
8272 } | 8249 } |
8273 if ( (*(int *)(v242 + 516) & 0xF0) == 64 ) | 8250 if ( (*(int *)(v242 + 516) & 0xF0) == 64 ) |
8274 { | 8251 { |
8275 v173 = "sp30a"; | 8252 v173 = "sp30a"; |
8284 v187 = 255; | 8261 v187 = 255; |
8285 v174 = 0; | 8262 v174 = 0; |
8286 v97 = (double)GetTickCount(); | 8263 v97 = (double)GetTickCount(); |
8287 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8264 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8288 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8265 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8289 v68 = v217; | 8266 v68 = pPlayer; |
8290 goto LABEL_259; | 8267 goto LABEL_259; |
8291 } | 8268 } |
8292 if ( (*(int *)(v242 + 516) & 0xF0) == 128 ) | 8269 if ( (*(int *)(v242 + 516) & 0xF0) == 128 ) |
8293 { | 8270 { |
8294 v173 = "sp91a"; | 8271 v173 = "sp91a"; |
8303 v187 = 255; | 8280 v187 = 255; |
8304 v174 = 0; | 8281 v174 = 0; |
8305 v97 = (double)GetTickCount(); | 8282 v97 = (double)GetTickCount(); |
8306 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8283 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8307 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8284 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8308 v68 = v217; | 8285 v68 = pPlayer; |
8309 goto LABEL_259; | 8286 goto LABEL_259; |
8310 } | 8287 } |
8311 } | 8288 } |
8312 v173 = "sptext01"; | 8289 v173 = "sptext01"; |
8313 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)]; | 8290 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)]; |
8321 v187 = 255; | 8298 v187 = 255; |
8322 v174 = 0; | 8299 v174 = 0; |
8323 v97 = (double)GetTickCount(); | 8300 v97 = (double)GetTickCount(); |
8324 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8301 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8325 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8302 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8326 v68 = v217; | 8303 v68 = pPlayer; |
8327 goto LABEL_259; | 8304 goto LABEL_259; |
8328 } | 8305 } |
8329 v98 = v94 + 1; | 8306 v98 = v94 + 1; |
8330 v99 = (char *)&pIcons_LOD->pTextures[v94]; | 8307 v99 = (char *)&pIcons_LOD->pTextures[v94]; |
8331 v100 = pRenderer; | 8308 v100 = pRenderer; |
8336 v175 = a3g; | 8313 v175 = a3g; |
8337 v163 = a2g; | 8314 v163 = a2g; |
8338 v100->_4A6776(v163, v175, v188); | 8315 v100->_4A6776(v163, v175, v188); |
8339 if ( !bRingsShownInCharScreen ) | 8316 if ( !bRingsShownInCharScreen ) |
8340 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8317 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8341 v68 = v217; | 8318 v68 = pPlayer; |
8342 goto LABEL_259; | 8319 goto LABEL_259; |
8343 } | 8320 } |
8344 if ( *(char *)(v242 + 516) & 1 ) | 8321 if ( *(char *)(v242 + 516) & 1 ) |
8345 { | 8322 { |
8346 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); | 8323 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); |
8348 v176 = a3g; | 8325 v176 = a3g; |
8349 v164 = a2g; | 8326 v164 = a2g; |
8350 pRenderer->DrawTextureTransparent(v164, v176, v189); | 8327 pRenderer->DrawTextureTransparent(v164, v176, v189); |
8351 if ( !bRingsShownInCharScreen ) | 8328 if ( !bRingsShownInCharScreen ) |
8352 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8329 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8353 v68 = v217; | 8330 v68 = pPlayer; |
8354 goto LABEL_259; | 8331 goto LABEL_259; |
8355 } | 8332 } |
8356 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); | 8333 v101 = (Texture *)(v98 != 0 ? (int)v99 : 0); |
8357 v190 = v101; | 8334 v190 = v101; |
8358 v177 = a3g; | 8335 v177 = a3g; |
8359 v165 = a2g; | 8336 v165 = a2g; |
8360 pRenderer->DrawTransparentGreenShade(v165, v177, v190); | 8337 pRenderer->DrawTransparentGreenShade(v165, v177, v190); |
8361 if ( !bRingsShownInCharScreen ) | 8338 if ( !bRingsShownInCharScreen ) |
8362 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8339 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8363 v68 = v217; | 8340 v68 = pPlayer; |
8364 goto LABEL_259; | 8341 goto LABEL_259; |
8365 } | 8342 } |
8366 v102 = 17 * pBodyComplection + v90; | 8343 v102 = 17 * pBodyComplection + v90; |
8367 v94 = paperdoll_array_511290[0][v102][1]; | 8344 v94 = paperdoll_array_511290[0][v102][1]; |
8368 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) | 8345 if ( v94 == pIcons_LOD->FindTextureByName("pending") ) |
8369 { | 8346 { |
8370 v68 = v217; | 8347 v68 = pPlayer; |
8371 goto LABEL_259; | 8348 goto LABEL_259; |
8372 } | 8349 } |
8373 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; | 8350 v103 = pPaperdoll_BodyX + paperdoll_shoulder[0][v102][0]; |
8374 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1]; | 8351 v104 = pPaperdoll_BodyY + paperdoll_shoulder[0][v102][1]; |
8375 v224 = *(int *)(v242 + 516); | 8352 v224 = *(int *)(v242 + 516); |
8388 v163 = v103; | 8365 v163 = v103; |
8389 v100 = pRenderer; | 8366 v100 = pRenderer; |
8390 v100->_4A6776(v163, v175, v188); | 8367 v100->_4A6776(v163, v175, v188); |
8391 if ( !bRingsShownInCharScreen ) | 8368 if ( !bRingsShownInCharScreen ) |
8392 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8369 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8393 v68 = v217; | 8370 v68 = pPlayer; |
8394 goto LABEL_259; | 8371 goto LABEL_259; |
8395 } | 8372 } |
8396 if ( v224 & 1 ) | 8373 if ( v224 & 1 ) |
8397 { | 8374 { |
8398 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); | 8375 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); |
8401 v164 = v103; | 8378 v164 = v103; |
8402 v100 = pRenderer; | 8379 v100 = pRenderer; |
8403 pRenderer->DrawTextureTransparent(v164, v176, v189); | 8380 pRenderer->DrawTextureTransparent(v164, v176, v189); |
8404 if ( !bRingsShownInCharScreen ) | 8381 if ( !bRingsShownInCharScreen ) |
8405 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8382 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8406 v68 = v217; | 8383 v68 = pPlayer; |
8407 goto LABEL_259; | 8384 goto LABEL_259; |
8408 } | 8385 } |
8409 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); | 8386 v101 = (Texture *)(v109 != 0 ? (int)v110 : 0); |
8410 v190 = v101; | 8387 v190 = v101; |
8411 v177 = v104; | 8388 v177 = v104; |
8412 v165 = v103; | 8389 v165 = v103; |
8413 v100 = pRenderer; | 8390 v100 = pRenderer; |
8414 pRenderer->DrawTransparentGreenShade(v165, v177, v190); | 8391 pRenderer->DrawTransparentGreenShade(v165, v177, v190); |
8415 if ( !bRingsShownInCharScreen ) | 8392 if ( !bRingsShownInCharScreen ) |
8416 pRenderer->_4A612A(a2g, a3g, v101, v235); | 8393 pRenderer->_4A612A(a2g, a3g, v101, v235); |
8417 v68 = v217; | 8394 v68 = pPlayer; |
8418 goto LABEL_259; | 8395 goto LABEL_259; |
8419 } | 8396 } |
8420 v106 = v105 - 16; | 8397 v106 = v105 - 16; |
8421 if ( v106 ) | 8398 if ( v106 ) |
8422 { | 8399 { |
8435 v187 = 255; | 8412 v187 = 255; |
8436 v174 = 0; | 8413 v174 = 0; |
8437 v97 = (double)GetTickCount(); | 8414 v97 = (double)GetTickCount(); |
8438 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8415 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8439 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8416 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8440 v68 = v217; | 8417 v68 = pPlayer; |
8441 goto LABEL_259; | 8418 goto LABEL_259; |
8442 } | 8419 } |
8443 v108 = v107 - 32; | 8420 v108 = v107 - 32; |
8444 if ( !v108 ) | 8421 if ( !v108 ) |
8445 { | 8422 { |
8455 v187 = 255; | 8432 v187 = 255; |
8456 v174 = 0; | 8433 v174 = 0; |
8457 v97 = (double)GetTickCount(); | 8434 v97 = (double)GetTickCount(); |
8458 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8435 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8459 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8436 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8460 v68 = v217; | 8437 v68 = pPlayer; |
8461 goto LABEL_259; | 8438 goto LABEL_259; |
8462 } | 8439 } |
8463 if ( v108 == 64 ) | 8440 if ( v108 == 64 ) |
8464 { | 8441 { |
8465 v178 = "sp91a"; | 8442 v178 = "sp91a"; |
8474 v187 = 255; | 8451 v187 = 255; |
8475 v174 = 0; | 8452 v174 = 0; |
8476 v97 = (double)GetTickCount(); | 8453 v97 = (double)GetTickCount(); |
8477 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8454 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8478 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8455 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8479 v68 = v217; | 8456 v68 = pPlayer; |
8480 goto LABEL_259; | 8457 goto LABEL_259; |
8481 } | 8458 } |
8482 } | 8459 } |
8483 v178 = "sptext01"; | 8460 v178 = "sptext01"; |
8484 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)]; | 8461 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)]; |
8492 v187 = 255; | 8469 v187 = 255; |
8493 v174 = 0; | 8470 v174 = 0; |
8494 v97 = (double)GetTickCount(); | 8471 v97 = (double)GetTickCount(); |
8495 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), | 8472 pRenderer->_4A63E6(a2g, a3g, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), |
8496 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); | 8473 (Texture *)v96, (signed __int64)(v97 * 0.1), v174, v187); |
8497 v68 = v217; | 8474 v68 = pPlayer; |
8498 goto LABEL_259; | 8475 goto LABEL_259; |
8499 } | 8476 } |
8500 v186 = 16; | 8477 v186 = 16; |
8501 } | 8478 } |
8502 else | 8479 else |
8677 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; | 8654 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; |
8678 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 8655 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
8679 if ( dword_50C9A8 <= 0 ) | 8656 if ( dword_50C9A8 <= 0 ) |
8680 { | 8657 { |
8681 dword_50C9A8 = 0; | 8658 dword_50C9A8 = 0; |
8682 *(char *)(v219 + 20) &= 0xFu; | 8659 *(char *)(v32 + 20) &= 0xFu; |
8683 ptr_50C9A4 = 0; | 8660 ptr_50C9A4 = 0; |
8684 } | 8661 } |
8685 v40 = (double)GetTickCount() * 0.1; | 8662 v40 = (double)GetTickCount() * 0.1; |
8686 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, | 8663 pRenderer->_4A63E6(pX2, pY2, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, |
8687 (signed __int64)v40, 0, 255); | 8664 (signed __int64)v40, 0, 255); |
8688 goto LABEL_93; | 8665 goto LABEL_93; |
8689 } | 8666 } |
8690 v169 = "sptext01"; | 8667 v169 = "sptext01"; |
8691 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; | 8668 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; |
8692 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 8669 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
8693 if ( dword_50C9A8 <= 0 ) | 8670 if ( dword_50C9A8 <= 0 ) |
8694 { | 8671 { |
8695 dword_50C9A8 = 0; | 8672 dword_50C9A8 = 0; |
8696 *(char *)(v219 + 20) &= 0xFu; | 8673 *(char *)(v32 + 20) &= 0xFu; |
8697 ptr_50C9A4 = 0; | 8674 ptr_50C9A4 = 0; |
8698 } | 8675 } |
8699 v40 = (double)GetTickCount() * 0.1; | 8676 v40 = (double)GetTickCount() * 0.1; |
8700 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, | 8677 pRenderer->_4A63E6(pX2, pY2, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, |
8701 (signed __int64)v40, 0, 255); | 8678 (signed __int64)v40, 0, 255); |
8702 goto LABEL_93; | 8679 goto LABEL_93; |
8703 } | 8680 } |
8704 v169 = "sp30a"; | 8681 v169 = "sp30a"; |
8705 } | 8682 } |
8707 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; | 8684 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; |
8708 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 8685 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
8709 if ( dword_50C9A8 <= 0 ) | 8686 if ( dword_50C9A8 <= 0 ) |
8710 { | 8687 { |
8711 dword_50C9A8 = 0; | 8688 dword_50C9A8 = 0; |
8712 *(char *)(v219 + 20) &= 0xFu; | 8689 *(char *)(v32 + 20) &= 0xFu; |
8713 ptr_50C9A4 = 0; | 8690 ptr_50C9A4 = 0; |
8714 } | 8691 } |
8715 v40 = (double)GetTickCount() * 0.1; | 8692 v40 = (double)GetTickCount() * 0.1; |
8716 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, | 8693 pRenderer->_4A63E6(pX2, pY2, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, |
8717 (signed __int64)v40, 0, 255); | 8694 (signed __int64)v40, 0, 255); |
8718 goto LABEL_93; | 8695 goto LABEL_93; |
8719 } | 8696 } |
8720 v38 = pIcons_LOD; | 8697 v38 = pIcons_LOD; |
8721 v169 = "sptext01"; | 8698 v169 = "sptext01"; |
8722 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; | 8699 v39 = &pIcons_LOD->pTextures[v38->LoadTexture(v169, TEXTURE_16BIT_PALETTE)]; |
8723 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 8700 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
8724 if ( dword_50C9A8 <= 0 ) | 8701 if ( dword_50C9A8 <= 0 ) |
8725 { | 8702 { |
8726 dword_50C9A8 = 0; | 8703 dword_50C9A8 = 0; |
8727 *(char *)(v219 + 20) &= 0xFu; | 8704 *(char *)(v32 + 20) &= 0xFu; |
8728 ptr_50C9A4 = 0; | 8705 ptr_50C9A4 = 0; |
8729 } | 8706 } |
8730 v40 = (double)GetTickCount() * 0.1; | 8707 v40 = (double)GetTickCount() * 0.1; |
8731 pRenderer->_4A63E6(a2c, a3c, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, | 8708 pRenderer->_4A63E6(pX2, pY2, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, |
8732 (signed __int64)v40, 0, 255); | 8709 (signed __int64)v40, 0, 255); |
8733 goto LABEL_93; | 8710 goto LABEL_93; |
8734 } | 8711 } |
8735 v184 = 9; | 8712 v184 = 9; |
8736 break; | 8713 break; |
8763 *(char *)(v22 + 20) &= 0xFu; | 8740 *(char *)(v22 + 20) &= 0xFu; |
8764 ptr_50C9A4 = 0; | 8741 ptr_50C9A4 = 0; |
8765 } | 8742 } |
8766 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); | 8743 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); |
8767 v28 = (double)GetTickCount() * 0.1; | 8744 v28 = (double)GetTickCount() * 0.1; |
8768 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255); | 8745 pRenderer->_4A63E6(pX, pY, v27, a2b, (signed __int64)v28, 0, 255); |
8769 goto LABEL_57; | 8746 goto LABEL_57; |
8770 } | 8747 } |
8771 v168 = "sptext01"; | 8748 v168 = "sptext01"; |
8772 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)]; | 8749 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)]; |
8773 dword_50C9A8 -= pEventTimer->uTimeElapsed; | 8750 dword_50C9A8 -= pEventTimer->uTimeElapsed; |
8777 *(char *)(v22 + 20) &= 0xFu; | 8754 *(char *)(v22 + 20) &= 0xFu; |
8778 ptr_50C9A4 = 0; | 8755 ptr_50C9A4 = 0; |
8779 } | 8756 } |
8780 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); | 8757 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); |
8781 v28 = (double)GetTickCount() * 0.1; | 8758 v28 = (double)GetTickCount() * 0.1; |
8782 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255); | 8759 pRenderer->_4A63E6(pX, pY, v27, a2b, (signed __int64)v28, 0, 255); |
8783 goto LABEL_57; | 8760 goto LABEL_57; |
8784 } | 8761 } |
8785 v168 = "sp30a"; | 8762 v168 = "sp30a"; |
8786 } | 8763 } |
8787 v26 = pIcons_LOD; | 8764 v26 = pIcons_LOD; |
8793 *(char *)(v22 + 20) &= 0xFu; | 8770 *(char *)(v22 + 20) &= 0xFu; |
8794 ptr_50C9A4 = 0; | 8771 ptr_50C9A4 = 0; |
8795 } | 8772 } |
8796 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); | 8773 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); |
8797 v28 = (double)GetTickCount() * 0.1; | 8774 v28 = (double)GetTickCount() * 0.1; |
8798 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255); | 8775 pRenderer->_4A63E6(pX, pY, v27, a2b, (signed __int64)v28, 0, 255); |
8799 goto LABEL_57; | 8776 goto LABEL_57; |
8800 } | 8777 } |
8801 v26 = pIcons_LOD; | 8778 v26 = pIcons_LOD; |
8802 v168 = "sptext01"; | 8779 v168 = "sptext01"; |
8803 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)]; | 8780 a2b = &pIcons_LOD->pTextures[v26->LoadTexture(v168, TEXTURE_16BIT_PALETTE)]; |
8808 *(char *)(v22 + 20) &= 0xFu; | 8785 *(char *)(v22 + 20) &= 0xFu; |
8809 ptr_50C9A4 = 0; | 8786 ptr_50C9A4 = 0; |
8810 } | 8787 } |
8811 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); | 8788 v27 = (Texture *)(v241 != -1 ? (int)&pIcons_LOD->pTextures[v241] : 0); |
8812 v28 = (double)GetTickCount() * 0.1; | 8789 v28 = (double)GetTickCount() * 0.1; |
8813 pRenderer->_4A63E6(v24, a3b, v27, a2b, (signed __int64)v28, 0, 255); | 8790 pRenderer->_4A63E6(pX, pY, v27, a2b, (signed __int64)v28, 0, 255); |
8814 goto LABEL_57;; | 8791 goto LABEL_57;; |
8815 } | 8792 } |
8816 a3 = pPaperdoll_BodyY; | 8793 a3 = pPaperdoll_BodyY; |
8817 a2 = pPaperdoll_BodyX; | 8794 a2 = pPaperdoll_BodyX; |
8818 v240 = 4 * uPlayerID_ - 4; | 8795 v240 = 4 * uPlayerID - 4; |
8819 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, | 8796 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY, |
8820 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); | 8797 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0)); |
8821 if ( !bRingsShownInCharScreen ) | 8798 if ( !bRingsShownInCharScreen ) |
8822 pRenderer->_4A612A(a2, a3, | 8799 pRenderer->_4A612A(a2, a3, |
8823 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0), | 8800 (Texture *)(*(unsigned int *)((char *)papredoll_dbods + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dbods + v240)] : 0), |
8824 pPlayer->pEquipment.uBody); | 8801 pPlayer->pEquipment.uBody); |
8825 uPlayerID_a = 2 * v5; | 8802 uPlayerID_a = 2 * pBodyComplection; |
8826 v6 = pPlayer->pEquipment.uMainHand; | 8803 v6 = pPlayer->pEquipment.uMainHand; |
8827 if ( !v6 | 8804 if ( !v6 |
8828 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1) | 8805 || (v7 = *(int *)&pPlayer->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1) |
8829 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) | 8806 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayer->pEquipment.uOffHand) ) |
8830 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[v5][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[v5][1], | 8807 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], |
8831 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); | 8808 (Texture *)(*(unsigned int *)((char *)papredoll_dlads + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlads + v240)] : 0)); |
8832 v8 = pPlayer->pEquipment.uMainHand; | 8809 v8 = pPlayer->pEquipment.uMainHand; |
8833 if ( v8 ) | 8810 if ( v8 ) |
8834 { | 8811 { |
8835 v229 = pPlayer->pEquipment.uMainHand; | 8812 v229 = pPlayer->pEquipment.uMainHand; |
8836 v9 = (int)&v217->pInventoryItems[v8-1]; | 8813 v9 = (int)&pPlayer->pInventoryItems[v8-1]; |
8837 v10 = v5 << 7; | 8814 v10 = pBodyComplection << 7; |
8838 v218 = v9; | 8815 v218 = v9; |
8839 v11 = *(int *)v9; | 8816 v11 = *(int *)v9; |
8840 v12 = *(int *)v9; | 8817 v12 = *(int *)v9; |
8841 v13 = pPaperdoll_BodyX + paperdoll_Weapon[v5][1][0] - pItemsTable->pItems[v12].uEquipX; | 8818 v13 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[v12].uEquipX; |
8842 a2a = v13; | 8819 a2a = v13; |
8843 a3a = pPaperdoll_BodyY + *(int *)((char *)&paperdoll_Weapon[0][1][1] + v10) - pItemsTable->pItems[v12].uEquipY; | 8820 a3a = pPaperdoll_BodyY + *(int *)((char *)&paperdoll_Weapon[0][1][1] + v10) - pItemsTable->pItems[v12].uEquipY; |
8844 if ( v11 == 64 ) | 8821 if ( v11 == 64 ) |
8845 v166 = "item64v1"; | 8822 v166 = "item64v1"; |
8846 else | 8823 else |
8939 } | 8916 } |
8940 LABEL_393: | 8917 LABEL_393: |
8941 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a], | 8918 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[uPlayerID_a], |
8942 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1], | 8919 pPaperdoll_BodyY + pPaperdoll_RightHand[uPlayerID_a + 1], |
8943 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0)); | 8920 (Texture *)(*(unsigned int *)((char *)papredoll_drhs + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_drhs + v240)] : 0)); |
8944 v161 = v217->pEquipment.uMainHand; | 8921 v161 = pPlayer->pEquipment.uMainHand; |
8945 if ( v161 ) | 8922 if ( v161 ) |
8946 { | 8923 { |
8947 v162 = *(int *)&v217->pInventoryItems[v161-1]; | 8924 v162 = *(int *)&pPlayer->pInventoryItems[v161-1]; |
8948 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !v217->pEquipment.uOffHand ) | 8925 if ( pItemsTable->pItems[v162].uEquipType == 1 || pItemsTable->pItems[v162].uSkillType == 4 && !pPlayer->pEquipment.uOffHand ) |
8949 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], | 8926 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[0][uPlayerID_a], |
8950 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], | 8927 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[0][uPlayerID_a + 1], |
8951 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0)); | 8928 (Texture *)(*(unsigned int *)((char *)papredoll_dlhus + v240) != -1 ? (int)&pIcons_LOD->pTextures[*(unsigned int *)((char *)papredoll_dlhus + v240)] : 0)); |
8952 } | 8929 } |
8953 if ( !bRingsShownInCharScreen ) | 8930 if ( !bRingsShownInCharScreen ) |