summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index a65f2a0..ce9048d 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -828,6 +828,11 @@ pain function for Alien Spawn
void ASpawn_Pain( gentity_t *self, gentity_t *attacker, int damage )
{
G_SetBuildableAnim( self, BANIM_PAIN1, qfalse );
+
+ if ( self->s.modelindex == BA_A_OVERMIND && self->health > 0 &&
+ attacker && attacker->client && attacker->client->pers.teamSelection == PTE_ALIENS )
+ G_TeamCommand( PTE_ALIENS, va( "print \"Overmind ^3DAMAGED^7 by ^1TEAMMATE^7 %s^7\n\"",
+ attacker->client->pers.netname ));
}