diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:37:49 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:07 +0000 |
commit | 919e7694290b4ac307034a9e0bfd4e8ab41c4663 (patch) | |
tree | bbce4c9a283c6c74ec731e6ff458bc992ce8b078 /src/game/g_active.c | |
parent | c3c3eb6c7d56ea3e53aca885486d3427f9c0f2e6 (diff) |
* Builders get one score point per 10 seconds
* Score points from killing buildables is now 1.5x
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 418b89c6..c74dda37 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -589,6 +589,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) client = ent->client; client->time100 += msec; client->time1000 += msec; + client->time10000 += msec; while ( client->time100 >= 100 ) { @@ -741,6 +742,21 @@ void ClientTimerActions( gentity_t *ent, int msec ) client->voiceEnthusiasm = 0.0f; } + while( client->time10000 >= 10000 ) + { + client->time10000 -= 10000; + + if( ent->client->ps.weapon == WP_ABUILD || + ent->client->ps.weapon == WP_ABUILD2 ) + { + AddScore( ent, ALIEN_BUILDER_SCOREINC ); + } + else if( ent->client->ps.weapon == WP_HBUILD ) + { + AddScore( ent, HUMAN_BUILDER_SCOREINC ); + } + } + // Regenerate Adv. Dragoon barbs if( client->ps.weapon == WP_ALEVEL3_UPG ) { |