diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-12 21:30:01 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-11-16 00:08:22 +0100 |
commit | b80907f12846cbbd31c24544ba350fcfd4f2f04d (patch) | |
tree | 38bb8f3748f7b4c520c113bfe236df7ea81394dd /src/game/g_combat.c | |
parent | 600b781dd3aa296634e2a8afb11a2ac9c30e24c7 (diff) |
Prototype anti-stacking system
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index f0ea442..8dd4a44 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -507,7 +507,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int if( self->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { //nice simple happy bouncy human land - float classValue = BG_FindValueOfClass( self->client->ps.stats[ STAT_PCLASS ] ); + float classValue = BG_FindValueOfClass( self->client->ps.stats[ STAT_PCLASS ] ) * level.humanHandicap; for( i = 0; i < MAX_CLIENTS; i++ ) { @@ -540,7 +540,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int else if( self->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { //horribly complex nasty alien land - float humanValue = BG_GetValueOfHuman( &self->client->ps ); + float humanValue = BG_GetValueOfHuman( &self->client->ps ) * level.alienHandicap; int frags; int unclaimedFrags = (int)humanValue; |