djkrose / 7DTD-ScriptingMod

Adds scripting support and other useful functionality to 7 Days To Die dedicated server
19 stars 10 forks source link

event playerDied everything is event.damageType == "Disease" #30

Open credomane opened 6 years ago

credomane commented 6 years ago

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"