From 7148805cd7831e3c33dd0965d9034ed5844e6464 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:39:26 +0000 Subject: * cg_printDuplicate changed to cg_noPrintDuplicate (i.e.now defaults to 1.1 behaviour) * only award partial credits for incomplete buildables --- src/game/g_combat.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game') diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 74feaa2c..3e86661e 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -156,6 +156,14 @@ float G_RewardAttackers( gentity_t *self ) else if( self->s.eType == ET_BUILDABLE ) { value = BG_FindValueOfBuildable( self->s.modelindex ); + + // only give partial credits for a buildable not yet completed + if( !self->spawned ) + { + value *= (float)( level.time - self->buildTime ) / + BG_FindBuildTimeForBuildable( self->s.modelindex ); + } + team = self->biteam; } else -- cgit