summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-22 15:59:40 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-22 15:59:40 +0200
commit43763238a0187c885482283c8d7e5ae0137423b5 (patch)
tree132fe778c611b006e66795b4d47c79043a13c57e /src/game/g_active.c
parent4f02df7e08cd3f16e3e1a048749b0c688346a60a (diff)
Remove Cloak.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index a1d7944..270b179 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -839,15 +839,6 @@ void ClientTimerActions( gentity_t *ent, int msec )
client->ps.stats[ STAT_MISC ] = 0;
}
- if( ent->client->cloakActivated )
- {
- if( !( ent->client->cloakReady ) )
- {
- if( level.time - ent->client->lastCloakTime > CLOAK_TIME || ent->health <= 0 )
- ent->client->ps.eFlags &= ~EF_MOVER_STOP;
- }
- }
-
switch( weapon )
{
case WP_ABUILD:
@@ -1669,21 +1660,6 @@ void ClientThink_real( gentity_t *ent )
BG_UpgradeIsActive( UP_MEDKIT, client->ps.stats ) )
G_UseMedkit( ent );
- if( BG_InventoryContainsUpgrade( UP_CLOAK, client->ps.stats ) &&
- BG_UpgradeIsActive( UP_CLOAK, client->ps.stats ) )
- {
- if( ent->client->cloakReady )
- {
- BG_DeactivateUpgrade( UP_CLOAK, client->ps.stats );
- BG_RemoveUpgradeFromInventory( UP_CLOAK, client->ps.stats );
- ent->client->cloakActivated = qtrue;
- ent->client->cloakReady = qfalse;
- ent->client->lastCloakTime = level.time;
- ent->client->ps.eFlags |= EF_MOVER_STOP;
- }
- }
-
-
// Replenish alien health
if( level.surrenderTeam != client->pers.teamSelection &&
ent->nextRegenTime >= 0 && ent->nextRegenTime < level.time )