Suggestion: Handle damage reflection inflicted deathsSolved

Hey there!

In such cases where PlayerA attacks PlayerB, and PlayerA dies due to Damage Reflection, there currently appears a message stating "`PlayerB` killed `PlayerA` with their ." - on a PvE server with strict no PvP rules this is highly misleading, as the attacked player is accused of having attacked the attacker. I think Damage Reflection is a thing on servers with "server.pve true" and servers (like mine) using ReflectDamage.cs from codefling.

In such cases of reflected damage I'd like to see a message "`PlayerB` killed `PlayerA` through `Damage Reflection` after being attacked by `PlayerA`".

I hope this makes sense and can be added to this excellent plugin. Thank you!

Thanks for the suggestion, I'll check this out.

Add this to your DeathNotes.json config file, under "Death Messages":

      {
        "KillerType": "Player",
        "VictimType": "Player",
        "DamageType": "Generic",
        "Messages": [
          "{victim} died due to damage deflection while attempting to murder {killer}."
        ]
      },

Unfortunately, the Rust API doesn't provide the weapon information. Also, because of the nature of the damage deflection, killer and victim are reversed. Enjoy!

Thank you 

Locked automatically