added checks for the executeforwards
This commit is contained in:
parent
16f402ae49
commit
d09a8e1aac
|
@ -225,10 +225,13 @@ void Client_Damage_End(void* mValue){
|
||||||
TA = 0;
|
TA = 0;
|
||||||
if ( (mPlayer->teamId == pAttacker->teamId) && (mPlayer != pAttacker) )
|
if ( (mPlayer->teamId == pAttacker->teamId) && (mPlayer != pAttacker) )
|
||||||
TA = 1;
|
TA = 1;
|
||||||
|
if (g_damage_info > 0)
|
||||||
MF_ExecuteForward(g_damage_info, pAttacker->index, mPlayer->index, damage, weapon, aim, TA);
|
MF_ExecuteForward(g_damage_info, pAttacker->index, mPlayer->index, damage, weapon, aim, TA);
|
||||||
|
|
||||||
if( !mPlayer->IsAlive() ){
|
if( !mPlayer->IsAlive() ){
|
||||||
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
|
pAttacker->saveKill(mPlayer,weapon,( aim == 1 ) ? 1:0 ,TA);
|
||||||
|
|
||||||
|
if (g_death_info > 0)
|
||||||
MF_ExecuteForward(g_death_info, pAttacker->index, mPlayer->index, damage, weapon, aim, TA);
|
MF_ExecuteForward(g_death_info, pAttacker->index, mPlayer->index, damage, weapon, aim, TA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user