From b1aa260bea0289ae24984b96c718203f1f89a0b6 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 30 Aug 2015 21:44:05 +1000 Subject: [PATCH] Add a notification when player is out of lives --- qcsrc/server/mutators/gamemode_lms.qc | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5