Support abandonedbase plugin, can it be integrated please?Suggestion

Hello,

to prevent this:

Calling hook CanLootEntity resulted in a conflict between the following plugins: VehicleLicence - False (Boolean), AbandonedBases (True (Boolean))​


on PluginReference at the end: add
, AbandonedBases​
, AFTER: 
        private object CanLootEntityInternal(BasePlayer friend, BaseEntity parentEntity)
        {
            Vehicle vehicle;
            if (!TryGetVehicle(parentEntity, out vehicle))
            {
                return null;
            }

ADD the code:
            if (Convert.ToBoolean(AbandonedBases?.Call("EventTerritory", parentEntity.transform.position)))
                return null;​

Thanks very much


 

If the issue is only hooks conflicting, then you can just change the return value of one or the other, unless you're wanting functionality included. 

 

If its the latter, then let me know to confirm thats what you want, and I'll have to work on it.



Merged post

Oh, okay, nvm, processed the message now, didn't even notice the first hook was different to the second lol mb, alright, I can look into it, thanks gamer!