Mercurial > mm7
comparison Events.cpp @ 1036:7f8be9f9769e
player recieve damage
author | Gloval |
---|---|
date | Wed, 22 May 2013 22:25:44 +0400 |
parents | 3a5c8df8381d |
children | 682ba1c83fd3 |
comparison
equal
deleted
inserted
replaced
1034:aa848c90181f | 1036:7f8be9f9769e |
---|---|
1035 { | 1035 { |
1036 v119 = _evt->v6; | 1036 v119 = _evt->v6; |
1037 v115 = EVT_DWORD(_evt->v7 ); | 1037 v115 = EVT_DWORD(_evt->v7 ); |
1038 v89 = (unsigned __int8)v86; | 1038 v89 = (unsigned __int8)v86; |
1039 v88 = &pParty->pPlayers[v89]; | 1039 v88 = &pParty->pPlayers[v89]; |
1040 v88->ReceiveDamage(v115, v119); | 1040 v88->ReceiveDamage(v115, (DAMAGE_TYPE)v119); |
1041 ++curr_seq_num; | 1041 ++curr_seq_num; |
1042 v4 = v124; | 1042 v4 = v124; |
1043 break; | 1043 break; |
1044 } | 1044 } |
1045 if ( v86 == 4 ) | 1045 if ( v86 == 4 ) |
1054 break; | 1054 break; |
1055 } | 1055 } |
1056 v119 = _evt->v6; | 1056 v119 = _evt->v6; |
1057 v88 = pPlayers[uActiveCharacter]; | 1057 v88 = pPlayers[uActiveCharacter]; |
1058 v115 = EVT_DWORD(_evt->v7 ); | 1058 v115 = EVT_DWORD(_evt->v7 ); |
1059 v88->ReceiveDamage(v115, v119); | 1059 v88->ReceiveDamage(v115, (DAMAGE_TYPE)v119); |
1060 ++curr_seq_num; | 1060 ++curr_seq_num; |
1061 v4 = v124; | 1061 v4 = v124; |
1062 break; | 1062 break; |
1063 } | 1063 } |
1064 if ( v86 != 5 ) | 1064 if ( v86 != 5 ) |
1065 { | 1065 { |
1066 v119 = _evt->v6; | 1066 v119 = _evt->v6; |
1067 v115 = EVT_DWORD(_evt->v7 ); | 1067 v115 = EVT_DWORD(_evt->v7 ); |
1068 v89 = rand() % 4; | 1068 v89 = rand() % 4; |
1069 v88 = &pParty->pPlayers[v89]; | 1069 v88 = &pParty->pPlayers[v89]; |
1070 v88->ReceiveDamage(v115, v119); | 1070 v88->ReceiveDamage(v115, (DAMAGE_TYPE)v119); |
1071 ++curr_seq_num; | 1071 ++curr_seq_num; |
1072 v4 = v124; | 1072 v4 = v124; |
1073 | 1073 |
1074 //v6 = v123; | 1074 //v6 = v123; |
1075 //v7 = ""; | 1075 //v7 = ""; |
1076 break; | 1076 break; |
1077 } | 1077 } |
1078 v87 = pParty->pPlayers; | 1078 v87 = pParty->pPlayers; |
1079 do | 1079 do |
1080 { | 1080 { |
1081 v87->ReceiveDamage(v85, _evt->v6); | 1081 v87->ReceiveDamage(v85, (DAMAGE_TYPE)_evt->v6); |
1082 ++v87; | 1082 ++v87; |
1083 } | 1083 } |
1084 while ( (signed int)v87 < (signed int)pParty->pHirelings ); | 1084 while ( (signed int)v87 < (signed int)pParty->pHirelings ); |
1085 ++curr_seq_num; | 1085 ++curr_seq_num; |
1086 v4 = v124; | 1086 v4 = v124; |