Mercurial > mm7
comparison mm7_4.cpp @ 1036:7f8be9f9769e
player recieve damage
author | Gloval |
---|---|
date | Wed, 22 May 2013 22:25:44 +0400 |
parents | 3a5c8df8381d |
children | ff2d888f8033 |
comparison
equal
deleted
inserted
replaced
1034:aa848c90181f | 1036:7f8be9f9769e |
---|---|
2393 v58 = 0; | 2393 v58 = 0; |
2394 if ( !sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(v12) ) | 2394 if ( !sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(v12) ) |
2395 { | 2395 { |
2396 v14 = pPlayers[v12]; | 2396 v14 = pPlayers[v12]; |
2397 v15 = (double)pPlayers[v12]->GetMaxHealth() * 0.1; | 2397 v15 = (double)pPlayers[v12]->GetMaxHealth() * 0.1; |
2398 v14->ReceiveDamage((signed __int64)v15, 0); | 2398 v14->ReceiveDamage((signed __int64)v15, DMGT_FIRE); |
2399 if ( pParty->uFlags & 4 ) | 2399 if ( pParty->uFlags & 4 ) |
2400 { | 2400 { |
2401 strcpy(GameUI_Footer_TimedString, pGlobalTXT_LocalizationStrings[660]); | 2401 strcpy(GameUI_Footer_TimedString, pGlobalTXT_LocalizationStrings[660]); |
2402 GameUI_Footer_TimeLeft = 128; | 2402 GameUI_Footer_TimeLeft = 128; |
2403 } | 2403 } |
2422 v16 = &pPlayers[1]; | 2422 v16 = &pPlayers[1]; |
2423 do | 2423 do |
2424 { | 2424 { |
2425 v17 = *v16; | 2425 v17 = *v16; |
2426 v18 = (double)(*v16)->GetMaxHealth() * 0.1; | 2426 v18 = (double)(*v16)->GetMaxHealth() * 0.1; |
2427 v17->ReceiveDamage((signed __int64)v18, 0); | 2427 v17->ReceiveDamage((signed __int64)v18, DMGT_FIRE); |
2428 if ( pParty->uFlags & 0x200 ) | 2428 if ( pParty->uFlags & 0x200 ) |
2429 { | 2429 { |
2430 strcpy(GameUI_Footer_TimedString, pGlobalTXT_LocalizationStrings[661]); | 2430 strcpy(GameUI_Footer_TimedString, pGlobalTXT_LocalizationStrings[661]); |
2431 GameUI_Footer_TimeLeft = 128; | 2431 GameUI_Footer_TimeLeft = 128; |
2432 } | 2432 } |