1. Is there a current hook for OnEntityDeath or OnUserDeath in covalence. I can't seem to find anything. Any tips?

    Could we get this added by chance?
     
    Last edited by a moderator: Oct 4, 2016
  2. Covalence has no generic DeathHandler for all games.
    Those functions are only game specific controlled.
     
  3. I was thinking somthing that just outputs a victim and attacker.

    It would be somthing like so

    This for Rust. Wouldn't be just adding it to the games oxide project files?
    Code:
    void OnEntityDeath(BaseCombatEntity Entity, HitInfo info)
            {
                try
                {
                    var victim = covalence.Players.GetPlayer(Entity.ToPlayer().UserIDString);
                    var attacker = covalence.Players.GetPlayer(info.Initiator.ToPlayer().UserIDString);
                    Interface.Call("OnUserKilled", victim, attacker);
                }
                catch { }
            }
     
  4. Wulf

    Wulf Community Admin

    No, not quite that simple. We're working on adding some universal hooks though soon.