From: Mario Date: Sun, 30 Aug 2015 11:44:05 +0000 (+1000) Subject: Add a notification when player is out of lives X-Git-Tag: xonotic-v0.8.2~1962 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1aa260bea0289ae24984b96c718203f1f89a0b6;p=xonotic%2Fxonotic-data.pk3dir.git Add a notification when player is out of lives --- diff --git a/qcsrc/server/mutators/gamemode_lms.qc b/qcsrc/server/mutators/gamemode_lms.qc index a5707182e..85f2e1ed2 100644 --- a/qcsrc/server/mutators/gamemode_lms.qc +++ b/qcsrc/server/mutators/gamemode_lms.qc @@ -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; }