IQBearRide compatability?Solved

Was wondering if there was a line that I could add to the json so the bears in IQBearRide cannot attack and kill other players. Just want them to do the normal stuff, just not be able to kill players.

Thank you for looking and replying.

hi, the author of IQBearRide must implement the API from TruePVE for this

namespace Oxide.Plugins
{
    [Info("No Damage Bear Rides", "nivex", "0.1.0")]
    [Description("Prevent damage to players from ridable bears.")]
    class NoDamageBearRides : RustPlugin
    {
        private object CanEntityTakeDamage(BasePlayer player, HitInfo hitInfo)
        {
            if (hitInfo?.Initiator is Bear && hitInfo.Initiator.OwnerID.IsSteamId()) return false;
            return null;
        }
    }
}​

save this code as a plugin named NoDamageBearRides.cs and it'll work until it's implemented in the IQBearRide plugin

thank you so much :)

Locked automatically