7DTD-ScriptingMod
7DTD-ScriptingMod copied to clipboard
event playerDied everything is event.damageType == "Disease"
I wrote a player death javascript based on the _event-somethingDied.js
script.
I've checked my code several times over. It seems that when a player dies to spike traps or starves to death (and probably other events with event.sourceEntityName == null
too) they died because of a "Disease" according to the parameters of the playerDied event.
Haven't looked at the ScriptingMod code yet to see what's going on.
[edit]
C# is certainly a foreign language to me but it looks like the issue is internal to 7DTD itself and not ScriptingMod. You know the codebase so I'll let you review and confirm this.
[edit]
Definitely a 7dtd issue I can't find anything in ScriptingMod that would indicate the mod's fault.
playerDamaged shows the right damageType when fatal == true
The following playerDied then shows the incorrect damageType as "disease"