comparison mm7_3.cpp @ 187:49728858c35e

On player voices
author Nomad
date Fri, 15 Feb 2013 22:38:05 +0200
parents d65528fc3bda
children 9b77686e2239
comparison
equal deleted inserted replaced
186:d65528fc3bda 187:49728858c35e
2674 _view_angle = 128; 2674 _view_angle = 128;
2675 v35 = uActiveCharacter; 2675 v35 = uActiveCharacter;
2676 if ( !uActiveCharacter ) 2676 if ( !uActiveCharacter )
2677 goto LABEL_87; 2677 goto LABEL_87;
2678 v65 = 0; 2678 v65 = 0;
2679 v63 = 63; 2679 v63 = SPEECH_63;
2680 goto LABEL_76; 2680 goto LABEL_76;
2681 case PARTY_LookDown: 2681 case PARTY_LookDown:
2682 __debugbreak(); 2682 __debugbreak();
2683 _view_angle += (signed __int64)(flt_6BE150_look_up_down_dangle * -25.0); 2683 _view_angle += (signed __int64)(flt_6BE150_look_up_down_dangle * -25.0);
2684 if ( _view_angle < -128 ) 2684 if ( _view_angle < -128 )
2685 _view_angle = -128; 2685 _view_angle = -128;
2686 v35 = uActiveCharacter; 2686 v35 = uActiveCharacter;
2687 if ( uActiveCharacter ) 2687 if ( uActiveCharacter )
2688 { 2688 {
2689 v65 = 0; 2689 v65 = 0;
2690 v63 = 64; 2690 v63 = SPEECH_64;
2691 LABEL_76: 2691 LABEL_76:
2692 pPlayers[v35]->PlaySound(v63, v65); 2692 pPlayers[v35]->PlaySound((PlayerSpeech)v63, v65);
2693 } 2693 }
2694 break; 2694 break;
2695 case PARTY_CenterView: 2695 case PARTY_CenterView:
2696 __debugbreak(); 2696 __debugbreak();
2697 _view_angle = 0; 2697 _view_angle = 0;
3505 case PARTY_LookUp: 3505 case PARTY_LookUp:
3506 _angle_x += (signed __int64)(flt_6BE150_look_up_down_dangle * 25.0); 3506 _angle_x += (signed __int64)(flt_6BE150_look_up_down_dangle * 25.0);
3507 if ( _angle_x > 128 ) 3507 if ( _angle_x > 128 )
3508 _angle_x = 128; 3508 _angle_x = 128;
3509 if (uActiveCharacter) 3509 if (uActiveCharacter)
3510 pPlayers[uActiveCharacter]->PlaySound(63, 0); 3510 pPlayers[uActiveCharacter]->PlaySound(SPEECH_63, 0);
3511 break; 3511 break;
3512 3512
3513 case PARTY_LookDown: 3513 case PARTY_LookDown:
3514 _angle_x += (signed __int64)(flt_6BE150_look_up_down_dangle * -25.0); 3514 _angle_x += (signed __int64)(flt_6BE150_look_up_down_dangle * -25.0);
3515 if ( _angle_x < -128 ) 3515 if ( _angle_x < -128 )
3516 _angle_x = -128; 3516 _angle_x = -128;
3517 if (uActiveCharacter) 3517 if (uActiveCharacter)
3518 pPlayers[uActiveCharacter]->PlaySound(64, 0); 3518 pPlayers[uActiveCharacter]->PlaySound(SPEECH_64, 0);
3519 break; 3519 break;
3520 3520
3521 case PARTY_Jump: 3521 case PARTY_Jump:
3522 if ( (!partyAtHighSlope || v108) && !bJumping && pParty->field_24 && !(pParty->uFlags & 4) && !(BYTE1(pParty->uFlags) & 2) ) 3522 if ( (!partyAtHighSlope || v108) && !bJumping && pParty->field_24 && !(pParty->uFlags & 4) && !(BYTE1(pParty->uFlags) & 2) )
3523 { 3523 {
3621 { // falling scream 3621 { // falling scream
3622 for (int i = 0; i < 4; ++i) 3622 for (int i = 0; i < 4; ++i)
3623 { 3623 {
3624 auto player = pParty->pPlayers + i; 3624 auto player = pParty->pPlayers + i;
3625 if (!player->HasEnchantedItemEquipped(72) && !player->WearsItem(529, 8) && player->CanAct()) 3625 if (!player->HasEnchantedItemEquipped(72) && !player->WearsItem(529, 8) && player->CanAct())
3626 player->PlaySound(66, 0); 3626 player->PlaySound(SPEECH_66, 0);
3627 } 3627 }
3628 } 3628 }
3629 } 3629 }
3630 else 3630 else
3631 { 3631 {
18139 v114 = _evt->v6; 18139 v114 = _evt->v6;
18140 v57 = rand() % 4; 18140 v57 = rand() % 4;
18141 LABEL_119: 18141 LABEL_119:
18142 v56 = &pParty->pPlayers[v57]; 18142 v56 = &pParty->pPlayers[v57];
18143 LABEL_120: 18143 LABEL_120:
18144 v56->PlaySound(v114, v118); 18144 v56->PlaySound((PlayerSpeech)v114, v118);
18145 ++v122; 18145 ++v122;
18146 //v4 = v124; 18146 //v4 = v124;
18147 //v5 = pSomeEVT; 18147 //v5 = pSomeEVT;
18148 //v6 = v123; 18148 //v6 = v123;
18149 //v7 = ""; 18149 //v7 = "";
18150 break; 18150 break;
18151 } 18151 }
18152 v55 = pParty->pPlayers; 18152 v55 = pParty->pPlayers;
18153 do 18153 for (int iii = 0; iii < 4; ++iii)
18154 { 18154 {
18155 v55->PlaySound(_evt->v6, 0); 18155 v55->PlaySound((PlayerSpeech)_evt->v6, 0);
18156 ++v55; 18156 ++v55;
18157 } 18157 }
18158 while ( (signed int)v55 < (signed int)pParty->pHirelings ); 18158 //while ( (signed int)v55 < (signed int)pParty->pHirelings );
18159 ++v122; 18159 ++v122;
18160 //v4 = v124; 18160 //v4 = v124;
18161 //v5 = pSomeEVT; 18161 //v5 = pSomeEVT;
18162 //v6 = v123; 18162 //v6 = v123;
18163 //v7 = ""; 18163 //v7 = "";