diff options
-rw-r--r-- | src/game/g_weapon.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index d1f7694..085b933 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -1193,15 +1193,19 @@ qboolean CheckVenomAttack2( gentity_t *ent ) if( traceEnt->health <= 0 ) return qfalse; - if( !traceEnt->client && !( traceEnt->s.eType == ET_BUILDABLE ) ) - return qfalse; - - // only allow bites to work against buildings as they are constructing + // only allow bites to work against buildings as they are constructing if( traceEnt->s.eType == ET_BUILDABLE ) { if( traceEnt->buildableTeam == TEAM_ALIENS ) return qfalse; - damage = 6; + + 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 ) |