summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index cbe4fd8..56f931a 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -1172,76 +1172,6 @@ qboolean CheckVenomAttack( gentity_t *ent )
/*
======================================================================
-LEVEL0_UPG
-======================================================================
-*/
-/*
-===============
-CheckVenomAttack2
-Adv Dretch
-===============
-*/
-qboolean CheckVenomAttack2( gentity_t *ent )
-{
- trace_t tr;
- gentity_t *traceEnt;
- int damage = LEVEL0_BITE_DMG_UPG;
-
- if( ent->client->ps.weaponTime )
- return qfalse;
-
- // Calculate muzzle point
- AngleVectors( ent->client->ps.viewangles, forward, right, up );
- CalcMuzzlePoint( ent, forward, right, up, muzzle );
-
- G_WideTrace( &tr, ent, LEVEL0_UPG_BITE_RANGE, LEVEL0_UPG_BITE_WIDTH,LEVEL0_UPG_BITE_WIDTH, &traceEnt );
-
- if( traceEnt == NULL )
- return qfalse;
-
- if( !traceEnt->takedamage )
- return qfalse;
-
- if( traceEnt->health <= 0 )
- return qfalse;
-
- // only allow bites to work against buildings as they are constructing
- if( traceEnt->s.eType == ET_BUILDABLE )
- {
- if( traceEnt->buildableTeam == TEAM_ALIENS )
- return qfalse;
-
- if ( !( traceEnt->s.modelindex == BA_H_MGTURRET || traceEnt->s.modelindex == BA_H_MGTURRET2 || traceEnt->s.modelindex == BA_H_TESLAGEN || !traceEnt->spawned ) )
- damage = (int)(damage * g_DretchBuildingDamage.value);
- else
- damage = (int)(damage * g_DretchTurretDamage.value);
-
- if (damage <= 0)
- return qfalse;
- }
-
- if( traceEnt->client )
- {
- if( traceEnt->client->ps.stats[ STAT_TEAM ] == TEAM_ALIENS )
- return qfalse;
- if( traceEnt->client->ps.stats[ STAT_HEALTH ] <= 0 )
- return qfalse;
- if( !( traceEnt->client->ps.stats[ STAT_STATE ] & SS_INFECTED ) )
- {
- traceEnt->client->ps.stats[ STAT_STATE ] |= SS_INFECTED;
- traceEnt->client->lastInfectionTime = level.time;
- traceEnt->client->lastInfectionClient = ent;
- }
- }
- // send blood impact
- WideBloodSpurt( ent, traceEnt, &tr, MOD_LEVEL0_BITE );
- G_Damage( traceEnt, ent, ent, forward, tr.endpos, damage, DAMAGE_NO_KNOCKBACK, MOD_LEVEL0_BITE );
- ent->client->ps.weaponTime += LEVEL0_BITE_REPEAT;
- return qtrue;
-}
-
-/*
-======================================================================
LEVEL1
======================================================================
*/