]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a notification when player is out of lives
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:44:05 +0000 (21:44 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:44:05 +0000 (21:44 +1000)
qcsrc/server/mutators/gamemode_lms.qc

index a5707182e4de7125eb68a2bf48efc09c33579738..85f2e1ed237e2af51209b1bcf8235ffc0a711955 100644 (file)
@@ -49,7 +49,10 @@ MUTATOR_HOOKFUNCTION(lms_PlayerPreSpawn)
        // player is dead and becomes observer
        // FIXME fix LMS scoring for new system
        if(PlayerScore_Add(self, SP_LMS_RANK, 0) > 0)
+       {
                self.classname = "observer";
+               Send_Notification(NOTIF_ONE, self, MSG_CENTER, CENTER_LMS_NOLIVES);
+       }
 
        return false;
 }