+MUTATOR_HOOKFUNCTION(lms_ResetMap)
+{
+ lms_lowest_lives = 999;
+ lms_next_place = player_count;
+
+ return FALSE;
+}
+
+MUTATOR_HOOKFUNCTION(lms_ResetPlayers)
+{
+ if(restart_mapalreadyrestarted || (time < game_starttime))
+ FOR_EACH_CLIENT(self)
+ if(IS_PLAYER(self))
+ PlayerScore_Add(self, SP_LMS_LIVES, LMS_NewPlayerLives());
+
+ return FALSE;
+}
+
+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";
+
+ return FALSE;
+}
+
+MUTATOR_HOOKFUNCTION(lms_PlayerDies)
+{
+ self.respawn_flags |= RESPAWN_FORCE;
+
+ return FALSE;
+}
+