comparison GUI/UI/UIPopup.cpp @ 2506:9b96a51011fb

for sound
author Ritor1
date Thu, 25 Sep 2014 10:39:49 +0600
parents a77c34acdbc9
children c7264ab7132f
comparison
equal deleted inserted replaced
2505:e3a619609dae 2506:9b96a51011fb
1856 } 1856 }
1857 if ( damage_level == 1 ) 1857 if ( damage_level == 1 )
1858 { 1858 {
1859 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1859 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1860 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 11 + 10, DMGT_FIRE); 1860 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 11 + 10, DMGT_FIRE);
1861 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); 1861 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0);
1862 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1862 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1863 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1863 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1864 v39.x = pParty->vPosition.x; 1864 v39.x = pParty->vPosition.x;
1865 v39.y = pParty->vPosition.y; 1865 v39.y = pParty->vPosition.y;
1866 1866
1881 if ( damage_level == 2 ) 1881 if ( damage_level == 2 )
1882 { 1882 {
1883 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1883 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1884 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 71 + 30, DMGT_FIRE); 1884 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 71 + 30, DMGT_FIRE);
1885 pPlayers[uActiveCharacter]->ItemsEnchant(1); 1885 pPlayers[uActiveCharacter]->ItemsEnchant(1);
1886 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); 1886 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0);
1887 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1887 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1888 1888
1889 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1889 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1890 v39.x = pParty->vPosition.x; 1890 v39.x = pParty->vPosition.x;
1891 v39.y = pParty->vPosition.y; 1891 v39.y = pParty->vPosition.y;
1907 if ( damage_level == 3 ) 1907 if ( damage_level == 3 )
1908 { 1908 {
1909 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1909 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1910 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 201 + 50, DMGT_FIRE); 1910 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 201 + 50, DMGT_FIRE);
1911 pPlayers[uActiveCharacter]->ItemsEnchant(5); 1911 pPlayers[uActiveCharacter]->ItemsEnchant(5);
1912 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); 1912 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0);
1913 1913
1914 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1914 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1915 1915
1916 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1916 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1917 v39.x = pParty->vPosition.x; 1917 v39.x = pParty->vPosition.x;
1934 if ( damage_level == 4 ) 1934 if ( damage_level == 4 )
1935 { 1935 {
1936 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1936 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1937 pPlayers[uActiveCharacter]->SetCondition(Condition_Eradicated, 0); 1937 pPlayers[uActiveCharacter]->SetCondition(Condition_Eradicated, 0);
1938 pPlayers[uActiveCharacter]->ItemsEnchant(0); 1938 pPlayers[uActiveCharacter]->ItemsEnchant(0);
1939 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); 1939 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0);
1940 1940
1941 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1941 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1942 1942
1943 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1943 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1944 v39.x = pParty->vPosition.x; 1944 v39.x = pParty->vPosition.x;