diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-23 20:31:58 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-11-23 20:31:58 +0100 |
commit | c59bf3e4a718260158115451bfe2839d04a337cb (patch) | |
tree | 2d9b86187ae21ebd55acb3ac99d1dc2d506d25a4 | |
parent | 63c1562608d62bac9e3c9917e7ee47b79aef73a5 (diff) |
Notify all aliens whenever the OM is hit by a teammate.
-rw-r--r-- | src/game/g_buildable.c | 5 |
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 )); } |