Stats(except displaying), PlayerInfo, marker fix

This commit is contained in:
eray orçunus
2020-08-13 23:39:55 +03:00
parent cdebea71f3
commit b54bb62c94
25 changed files with 952 additions and 331 deletions

View File

@ -4730,9 +4730,11 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
} else {
CDarkel::RegisterKillNotByPlayer(this, method);
}
if (method == WEAPONTYPE_DROWNING)
if (method == WEAPONTYPE_DROWNING) {
bIsInTheAir = false;
// TODO(Miami): timesDrowned
if (FindPlayerPed() == this)
CStats::TimesDrowned++;
}
return true;
}