From c59bf3e4a718260158115451bfe2839d04a337cb Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 23 Nov 2018 20:31:58 +0100 Subject: Notify all aliens whenever the OM is hit by a teammate. --- src/game/g_buildable.c | 5 +++++ 1 file changed, 5 insertions(+) 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 )); } -- cgit