Ejemplo n.º 1
0
        private void OnClientReceiveMessage(DeathMessage message)
        {
            var playerName   = PlayerJoin.PlayerNames.TryGetValue(message.SenderId, out var n) ? n : message.PlayerName;
            var deathMessage = Necronomicon.GetPhrase(message.DeathType);

            DebugLog.All(string.Format(deathMessage, playerName));
        }
        public override void OnReceiveRemote(bool server, PlayerDeathMessage message)
        {
            var playerName   = QSBPlayerManager.GetPlayer(message.AboutId).Name;
            var deathMessage = Necronomicon.GetPhrase(message.EnumValue, message.NecronomiconIndex);

            DebugLog.ToAll(string.Format(deathMessage, playerName));
        }
Ejemplo n.º 3
0
        public override void OnReceiveRemote()
        {
            var player       = QSBPlayerManager.GetPlayer(From);
            var playerName   = player.Name;
            var deathMessage = Necronomicon.GetPhrase(Value, NecronomiconIndex);

            if (deathMessage != null)
            {
                DebugLog.ToAll(string.Format(deathMessage, playerName));
            }

            RespawnManager.Instance.OnPlayerDeath(player);
        }