diff options
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index a5fd8a44..12953de0 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1065,6 +1065,12 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, targ->client->ps.stats[STAT_HEALTH] = targ->health; } + //TA: add to the attackers "account" on the target + if( targ->client && attacker->client && + targ->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS && + attacker->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + targ->credits[ attacker->client->ps.clientNum ] += take; + if ( targ->health <= 0 ) { if ( client ) targ->flags |= FL_NO_KNOCKBACK; |