summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2009-10-03 11:44:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:17 +0000
commit122de31ac2834809fb15088eda6f5278d4525fb1 (patch)
treedcb4c460a2cae6df5195bd4eb21c32a7ee309ba1 /src/game/g_active.c
parent82ef46c4c099fbfed24fa326ee6f501ad5535a30 (diff)
* voice chat stuff (no, not like TeamSpeak)
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 7b03ce0f..cbc9aa5c 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -812,6 +812,12 @@ void ClientTimerActions( gentity_t *ent, int msec )
{
G_Damage( ent, NULL, NULL, NULL, NULL, 5, DAMAGE_NO_ARMOR, MOD_SUICIDE );
}
+
+ // lose some voice enthusiasm
+ if( client->voiceEnthusiasm > 0.0f )
+ client->voiceEnthusiasm -= VOICE_ENTHUSIASM_DECAY;
+ else
+ client->voiceEnthusiasm = 0.0f;
}
// Regenerate Adv. Dragoon barbs