From dc87cba52101aa4c6ad94c652460bff8520231bd Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 22 Jun 2015 01:02:01 +0200 Subject: Remove Advanced Dretch. --- src/game/g_weapon.c | 70 ----------------------------------------------------- 1 file changed, 70 deletions(-) (limited to 'src/game/g_weapon.c') 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 @@ -1170,76 +1170,6 @@ qboolean CheckVenomAttack( gentity_t *ent ) return qtrue; } -/* -====================================================================== -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 -- cgit