summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorPetr Pudlak <petr.mvd@gmail.com>2015-02-20 12:14:54 +0100
committerPetr Pudlak <petr.mvd@gmail.com>2015-02-20 12:20:58 +0100
commit84745a87a8c36ab4f87d2514b7fcee6733544504 (patch)
tree64998d2f606e6a9d2a004142db9d17a7e9e07789 /src/game/g_buildable.c
parent487154dd6c254351f405a85a4264e97b2a141323 (diff)
Let acid tubes damage human structures
This also includes extending G_SelectiveRadiusDamage to include any enemy buildings.
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 7247d9a..dbe1f1d 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1505,7 +1505,9 @@ void AAcidTube_Think( gentity_t *self )
if (enemy->client && enemy->client->notrackEndTime >= level.time)
continue;
- if( enemy->client && enemy->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS )
+ if( ( enemy->client && enemy->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) ||
+ ( enemy->s.eType == ET_BUILDABLE &&
+ BG_Buildable( enemy->s.modelindex )->team == TEAM_HUMANS ) )
{
// start the attack animation
if( level.time >= self->timestamp + ACIDTUBE_REPEAT_ANIM )