summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-06-22 01:02:01 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-06-22 01:02:01 +0200
commitdc87cba52101aa4c6ad94c652460bff8520231bd (patch)
tree0add2e6edf633a2f7c7a137f0c5238466e1f323f /src/game/g_active.c
parent88e570be6c8b732d81cdb69ce0235ef9e8ef5885 (diff)
Remove Advanced Dretch.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c68
1 files changed, 1 insertions, 67 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 42a2773..84cf017 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -521,7 +521,7 @@ void G_UseMedkit( gentity_t *ent )
BG_RemoveUpgradeFromInventory( UP_MEDKIT, client->ps.stats );
// don't poison and/or infect the client anymore
- tclient->ps.stats[ STAT_STATE ] &= ~( SS_POISONED | SS_INFECTED );
+ tclient->ps.stats[ STAT_STATE ] &= ~SS_POISONED;
tclient->poisonImmunityTime = level.time + MEDKIT_POISON_IMMUNITY_TIME;
tclient->ps.stats[ STAT_STATE ] |= SS_HEALING_2X;
@@ -966,60 +966,6 @@ void ClientTimerActions( gentity_t *ent, int msec )
0, damage, 0, MOD_POISON );
}
- //client is infected
- if( client->ps.stats[ STAT_STATE ] & SS_INFECTED )
- {
- int time = ALIEN_INFECTION_TIME;
- int damage = ALIEN_INFECTION_DMG;
-
- if( BG_InventoryContainsUpgrade( UP_BIOKIT, client->ps.stats ) )
- {
- time = ALIEN_INFECTION_TIME/2;
- damage -= BIOKIT_INFECTION_PROTECTION;
- }
-
- if( BG_InventoryContainsUpgrade( UP_BATTLESUIT, client->ps.stats ) )
- damage -= BSUIT_INFECTION_PROTECTION;
-
- if( BG_InventoryContainsUpgrade( UP_HELMET, client->ps.stats ) )
- damage -= HELMET_INFECTION_PROTECTION;
-
- if( BG_InventoryContainsUpgrade( UP_LIGHTARMOUR, client->ps.stats ) )
- damage -= LIGHTARMOUR_INFECTION_PROTECTION;
-
- //infect others who comes into contact with you
- if( client->lastInfectionTime + time > level.time )
- {
- int i, num, entityList[ MAX_GENTITIES ];
- vec3_t range = { 150, 150, 150 }, mins, maxs;
- gentity_t *target;
-
- VectorAdd( ent->s.origin, range, maxs );
- VectorSubtract( ent->s.origin, range, mins );
- num = trap_EntitiesInBox( mins, maxs, entityList, MAX_GENTITIES );
- for( i = 0; i < num; i++ )
- {
- target = &g_entities[ entityList[ i ] ];
-
- // client + not infected + human + visible + not the same + has health
- if( target->client && !( target->client->ps.stats[ STAT_STATE ] & SS_INFECTED ) &&
- target->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS &&
- G_Visible( ent, target, CONTENTS_SOLID || CONTENTS_FOG ) &&
- ent != target && target->health > 0 )
- {
- target->client->ps.stats[ STAT_STATE ] |= SS_INFECTED;
- target->client->lastInfectionTime = level.time;
- target->client->lastInfectionClient = client->lastInfectionClient;
- }
- }
- G_Damage( ent, client->lastInfectionClient, client->lastInfectionClient, NULL,
- 0, damage, 0, MOD_INFECTION );
- }
- // it's over until the next one
- else
- client->ps.stats[ STAT_STATE ] &= ~SS_INFECTED;
- }
-
// turn off life support when a team admits defeat
if( client->ps.stats[ STAT_TEAM ] == TEAM_ALIENS &&
level.surrenderTeam == TEAM_ALIENS )
@@ -2042,18 +1988,6 @@ void ClientThink_real( gentity_t *ent )
}
break;
- case WP_ALEVEL0_UPG:
- if( !CheckVenomAttack2( ent ) )
- {
- client->ps.weaponstate = WEAPON_READY;
- }
- else
- {
- client->ps.generic1 = WPM_PRIMARY;
- G_AddEvent( ent, EV_FIRE_WEAPON, 0 );
- }
- break;
-
case WP_ALEVEL1:
case WP_ALEVEL1_UPG:
CheckGrabAttack( ent );