From 01d000a4e2c509ffa0d628a37ae24115ea6bf1be Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 12 Nov 2018 21:30:01 +0100 Subject: Prototype anti-stacking system --- src/game/g_combat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/g_combat.c') 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; -- cgit