weapon logging support

This commit is contained in:
Lukasz Wlasinksi
2004-06-25 12:21:47 +00:00
parent a9c5228c31
commit 6d8f61c4e0
5 changed files with 65 additions and 47 deletions

View File

@ -87,9 +87,14 @@ void Client_Damage(void* mValue){
case 2:
edict_t* enemy;
if ( !mPlayer || !damage )
break;
enemy = mPlayer->pEdict->v.dmg_inflictor;
if ( !mPlayer || !damage || FNullEnt( enemy ) ) break;
if ( FNullEnt( enemy ) )
break;
if (enemy->v.flags & (FL_CLIENT | FL_FAKECLIENT) ) { // attacker is player and his active weapon
pAttacker = GET_PLAYER_POINTER(enemy);