Edit the lang/CustomDeathMessages.en.json file, or create another in the desired language such as CustomDeathMessages.ru.json.
CustomDeathMessages
Moved
Total Downloads: 2,828 - First Release: Dec 18, 2015 - Last Update: Nov 14, 2017
- 5/5, 12 likes
-
Wulf Community Admin
-
I actually enjoy this plugin. I also like the addition of Killed by Player. -
EntityStats/Sources/Explosives
[DOUBLEPOST=1450554958][/DOUBLEPOST]Anyway to remove specific messages? -
Can you please add in EntityStats/Sources/a Vehicle Impact? I added it to mine locally.
-
-
-
-
-
-
{"EntityStats/Sources/Hyperthermia","{Name} died hyperthermia."},
{"EntityStats/Sources/Explosives","{Name} died dyanmite."},
{"EntityStats/Sources/a Vehicle Impact","{Name} Vehicle impact"}, -
Trentu updated Custom Death Messages with a new update entry:
1.0.3
-
-
Trentu updated Custom Death Messages with a new update entry:
1.0.4
-
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 -
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.
-
To chance the message you have to edit the lang file.
@j-doe i try to fix this. -
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 -
No there is near the config folder an lang folder there you can see the messages
-
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())); } } } }