summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-03 12:37:49 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:07 +0000
commit919e7694290b4ac307034a9e0bfd4e8ab41c4663 (patch)
treebbce4c9a283c6c74ec731e6ff458bc992ce8b078 /src/game/g_active.c
parentc3c3eb6c7d56ea3e53aca885486d3427f9c0f2e6 (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.c16
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 )
{