diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-04-08 08:44:41 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-04-08 08:44:41 +0200 |
commit | 8847ac53638653fd1dbe4d18c5d90e66db434047 (patch) | |
tree | c75713bf4c46e93c3470ab2010968e5a75cacd6a /src/game/g_buildable.c | |
parent | 9fd2c5dec3a26ff238a783fbfde1c299f0447b4d (diff) |
Track funds in /mystats; minor frac. evos fixes
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index c82677e..de3c800 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -672,9 +672,15 @@ void ASpawn_Die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int if( attacker->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { if( self->s.modelindex == BA_A_OVERMIND ) + { G_AddCreditToClient( attacker->client, OVERMIND_VALUE, qtrue ); + attacker->client->pers.statscounters.earned += OVERMIND_VALUE; + } else if( self->s.modelindex == BA_A_SPAWN ) + { G_AddCreditToClient( attacker->client, ASPAWN_VALUE, qtrue ); + attacker->client->pers.statscounters.earned += ASPAWN_VALUE; + } } else { @@ -2691,9 +2697,15 @@ void HSpawn_Die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int if( attacker->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { if( self->s.modelindex == BA_H_REACTOR ) + { G_AddCreditToClient( attacker->client, REACTOR_VALUE, qtrue ); + attacker->client->pers.statscounters.earned += REACTOR_VALUE; + } else if( self->s.modelindex == BA_H_SPAWN ) + { G_AddCreditToClient( attacker->client, HSPAWN_VALUE, qtrue ); + attacker->client->pers.statscounters.earned += HSPAWN_VALUE; + } } else { |