CustomDeathMessages

Moved

Total Downloads: 2,828 - First Release: Dec 18, 2015 - Last Update: Nov 14, 2017

5/5, 12 likes
  1. Wulf

    Wulf Community Admin

    Edit the lang/CustomDeathMessages.en.json file, or create another in the desired language such as CustomDeathMessages.ru.json.
     
  2. I think this comment is useless...

    I actually enjoy this plugin. I also like the addition of Killed by Player.
     
  3. EntityStats/Sources/Explosives
    [DOUBLEPOST=1450554958][/DOUBLEPOST]Anyway to remove specific messages?
     
  4. Can you please add in EntityStats/Sources/a Vehicle Impact? I added it to mine locally.
     
  5. same. How can we fix this?
     
  6. Add manualy in ur plugin
     
  7. Give pls example how to fix car and explosions death
     
  8. Added in a plugin
     
  9. thanks
     
  10. {"EntityStats/Sources/Hyperthermia","{Name} died hyperthermia."},
    {"EntityStats/Sources/Explosives","{Name} died dyanmite."},
    {"EntityStats/Sources/a Vehicle Impact","{Name} Vehicle impact"},
     
  11. Locate the CustomDeathMessages.en.json and edit it i guess ?
     
  12. Last edited by a moderator: Dec 23, 2015
  13. Trentu updated Custom Death Messages with a new update entry:

    1.0.4

     
  14. The plugin has a bug. Sometimes the color tag in the communications plug becomes incomplete (screenshot attached) in which case the color of chat slipping and chat instead of the color output tag (. It does not happen often, about 1-2 times per hour, could fix it?
    http://s014.radikal.ru/i329/1512/6a/fc51e80bc14c.png - screenshot
     
  15. i dont understand. the json file is very short. All the text is in the cs file. so i edit that file to say what i want, reupload. Everything is fine via the logs. But it doesnt work in game.
     
  16. To chance the message you have to edit the lang file.
    @j-doe i try to fix this.
     
  17. Im clueless and this is my first time putting a server up. I have put the plugin in the correct folder, changed some of the killed by names.
    Sadly when someone dies its just the default stuff. Do i need to make any config changes or am i ment to add something to
    {
    Config["TextColor"] = "#FFBF00";
    Config["ServerColor"] = "#80FF00";
    Config["ServerName"] = "Server";
    SaveConfig();
    }

    Any help would be great, sorry to pester
     
  18. No there is near the config folder an lang folder there you can see the messages
     
  19. Code:
    void OnPlayerDeath(PlayerSession session, EntityEffectSourceData data)
            {
                var Killer = data.EntitySource;
                var Victim = session.WorldPlayerEntity;
                if(Killer != null)
                {
                    PlayerStatManager manager = Killer.GetComponentInParent<PlayerStatManager>();
                    if(manager != null)
                    {
                        PlayerIdentity playerident = manager.AttachedIdentity;                    string iname = string.Empty;
                        var ehserver = Killer.GetComponentInParent<EquippedHandlerBase>();
                        if(ehserver != null)
                        {
                            var equipeditem = ehserver.GetEquippedItem();
                            if(equipeditem != null)
                            {
                                var iitem = equipeditem.Item;
                                if(iitem != null)
                                {
                                    iname = iitem.GetIconName();
                                }
                            }
                        }
                        if (playerident != null)
                        {
                            Interface.Oxide.LogInfo(string.Format("{0} {1} killed {2} {3} with {4} on {8} ({5}dmg) from {6}m ({7} velocity)", playerident.SteamId.ToString(), playerident.Name, session.SteamId.ToString(), session.Name, iname == string.Empty ? "Unknown" : iname, data.Value.ToString(), UnityEngine.Vector3.Distance(Killer.transform.position, Victim.transform.position).ToString(), data.Velocity.magnitude.ToString(), data.Hitbox.ToString()));
                        }
                    }
                }
            }
    maybe this can help you get the items used to kill (wont work for throwable spears things i guess)