comparison Actor.cpp @ 1036:7f8be9f9769e

player recieve damage
author Gloval
date Wed, 22 May 2013 22:25:44 +0400
parents 3a5c8df8381d
children d48c762de563
comparison
equal deleted inserted replaced
1034:aa848c90181f 1036:7f8be9f9769e
990 a1b = 1; 990 a1b = 1;
991 v57 = &pPlayers[1]; 991 v57 = &pPlayers[1];
992 do 992 do
993 { 993 {
994 v58 = (*v57)->GetActualWillpower(); 994 v58 = (*v57)->GetActualWillpower();
995 v59 = (*v57)->_48EA1B_get_static_effect(v58); 995 v59 = (*v57)->GetParameterBonus(v58);
996 v60 = (*v57)->GetActualIntelligence(); 996 v60 = (*v57)->GetActualIntelligence();
997 v61 = ((*v57)->_48EA1B_get_static_effect(v60) + v59) >> 1; 997 v61 = ((*v57)->GetParameterBonus(v60) + v59) >> 1;
998 v62 = (*v57)->GetActualLuck(); 998 v62 = (*v57)->GetActualLuck();
999 v63 = v61 + (*v57)->_48EA1B_get_static_effect(v62) + 30; 999 v63 = v61 + (*v57)->GetParameterBonus(v62) + 30;
1000 if ( rand() % v63 < 30 ) 1000 if ( rand() % v63 < 30 )
1001 { 1001 {
1002 v64 = 6048; 1002 v64 = 6048;
1003 do 1003 do
1004 { 1004 {
3112 if ( v3 ) 3112 if ( v3 )
3113 { 3113 {
3114 if ( (signed __int64)v2->pActorBuffs[3].uExpireTime <= 0 ) 3114 if ( (signed __int64)v2->pActorBuffs[3].uExpireTime <= 0 )
3115 { 3115 {
3116 v12 = 0; 3116 v12 = 0;
3117 v11 = 0; 3117
3118 v10 = 0;
3119 v9 = 0;
3120 v8 = -1; 3118 v8 = -1;
3121 } 3119 }
3122 else 3120 else
3123 { 3121 {
3124 v4 = v2->pActorBuffs[3].uPower - 2; 3122 v4 = v2->pActorBuffs[3].uPower - 2;
3140 else 3138 else
3141 { 3139 {
3142 v6 = 33075; 3140 v6 = 33075;
3143 } 3141 }
3144 v12 = v6; 3142 v12 = v6;
3145 v11 = 0; 3143
3146 v10 = 0;
3147 v9 = 0;
3148 v8 = 0; 3144 v8 = 0;
3149 } 3145 }
3150 pAudioPlayer->PlaySound((SoundID)(signed __int16)v3, PID(OBJECT_Actor, uActorID), 0, v8, v9, v10, v11, v12); 3146 pAudioPlayer->PlaySound((SoundID)(signed __int16)v3, PID(OBJECT_Actor, uActorID), 0, v8, 0, 0, 0, v12);
3151 } 3147 }
3152 } 3148 }
3153 3149
3154 //----- (00402AD7) -------------------------------------------------------- 3150 //----- (00402AD7) --------------------------------------------------------
3155 void Actor::Pursue1(unsigned int uActorID, unsigned int a2, signed int arg0, signed int uActionLength, AIDirection *pDir) 3151 void Actor::Pursue1(unsigned int uActorID, unsigned int a2, signed int arg0, signed int uActionLength, AIDirection *pDir)