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.
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;
}
}
}thank you so much :)