Jump to content

does this plugin work with abandoned bases

Pending 0.1.19

arno1986
arno1986

Posted

does this plugin work with abandoned bases 

 

Antag0nisticWomble

Posted

Abandoned bases works fine the only part of this plugin that doesn't work with the RealPVE plugin is the shooting a building to see when it will be available to raid.

  • Like 1
IIIaKa

Posted

Hello. There is a small issue caused by the lack of inheritance for these entities in vanilla, which makes my plugin forcibly inherit them so that other players can't loot someone else's broken item containers/boxes. Because of this, a conflict occurs with AbandonedBases. I contacted @nivex so he can add an API or a hook that will allow my plugin to ignore entities associated with his plugin.

IIIaKa

Posted (edited)

 In the meantime, as a temporary solution, in AbandonedBases.cs, you can add this

else if (entity is DroppedItemContainer)
{
    Interface.CallHook("OnEntityEnteredAbandonedBase", new object[] { entity, center, radius, AllowPVP });
}

at the end of the "private void OnTriggerEnter(Collider collider)" method(line ~990), approximately at line 1055.

image.png

 

And in RealPVE.cs, before private void ForceCompleteBedMission(BasePlayer player), 53 line, add this

void OnEntityEnteredAbandonedBase(BaseEntity entity)
{
	if (entity is DroppedItemContainer)
		entity.OwnerID = 0uL;
}

 

Edited by IIIaKa
nivex

Posted

hi. ok, added this hook in the next AB update

  • Like 2
Wild Shadow

Posted

Hi, 

I've try with :
 

Quote


                else if (entity is DroppedItemContainer)
                {
                    Interface.CallHook("OnEntityEnteredAbandonedBase", new object[] { entity, center, radius, AllowPVP });
                }

This doesn't work for me.

 

IIIaKa

Posted

8 minutes ago, Wild Shadow said:

Hi, 
I've try with :

This doesn't work for me.
 

It's also necessary to make changes in RealPVE, I just forgot to mention it right away.
 

3 hours ago, IIIaKa said:

And in RealPVE.cs, before private void ForceCompleteBedMission(BasePlayer player), 53 line, add this

void OnEntityEnteredAbandonedBase(BaseEntity entity)
{
	if (entity is DroppedItemContainer)
		entity.OwnerID = 0uL;
}

 

 

  • Love 1
Wild Shadow

Posted

I tried it with several players and it works perfectly!

Thank you so much!

2.1m

Downloads

Total number of downloads.

9.7k

Customers

Total customers served.

141.4k

Files Sold

Total number of files sold.

3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.