From a8c620187f089a4f7b0602d56ed5bbca9d6afd96 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Sat, 19 Jul 2014 20:07:41 +0300 Subject: The credit gain/loss at armageddon can now be customized through cvar. --- src/game/g_active.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 9a4eb00..fc32ed6 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1100,16 +1100,15 @@ void G_ArmaFreeLove( gentity_t *ent ) for( i = 0; i < g_maxclients.integer; i++ ) { - cl = level.clients + i; + cl = level.clients + i; - if( cl->ps.stats[ STAT_TEAM ] == TEAM_ALIENS ) - G_AddCreditToClient( cl, 7200, qtrue ); - else if( cl->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) - G_AddCreditToClient( cl, 4000, qtrue ); - } - trap_SendServerCommand( -1, "print \"^5A flying hotdog does its weener magic and converts buildings into pure joy!\n\"" ); - G_Sound( ent, CHAN_VOICE, G_SoundIndex( "sound/edge/hdoglove.wav" ) ); - + if( cl->ps.stats[ STAT_TEAM ] == TEAM_ALIENS ) + G_AddCreditToClient( cl, g_armageddonCreditAmount.integer, qtrue ); + else if( cl->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) + G_AddCreditToClient( cl, g_armageddonCreditAmount.integer, qtrue ); + } + trap_SendServerCommand( -1, "print \"^5A flying hotdog does its weener magic and converts buildings into pure joy!\n\"" ); + G_Sound( ent, CHAN_VOICE, G_SoundIndex( "sound/edge/hdoglove.wav" ) ); } -- cgit