Jump to content

Zombie horde is immune to damage

Closed 0.1.1 0.1.2

StrifeZ
IIIaKa

Posted

Hello, thank you for reaching out. Could you please provide the link to the this plugin?

IIIaKa

Posted

Try to update to version 0.1.2

StrifeZ

Posted

seems to be working now. Thank you

  • Like 1
IIIaKa

Posted

Changed Status from Pending to Closed

Changed Fixed In to 0.1.2

IIIaKa

Posted

If the issue persists, feel free to report it in this thread.

original4d

Posted

Calling hook OnNpcTarget resulted in a conflict between the following plugins: RealPVE - False (Boolean), ZombieHorde (True (Boolean))

 

getting this error

original4d

Posted

morning its me again 

still having an issue with damaging zombies 

ZombieHorde | CHAOS (chaoscode.io) 

 

Calling hook OnNpcTarget resulted in a conflict between the following plugins: RealPVE - False (Boolean), ZombieHorde (True (Boolean))

  • Administrator
Steenamaroo

Posted

On 5/30/2024 at 7:57 AM, IIIaKa said:

Unfortunately, I haven't received any responses from the developers of these plugins.

This conflict (warning) arises from different views among plugin developers on what non-null value should be returned to prevent 'vanilla' behavior in this situation.
In my opinion, the correct value to prevent 'vanilla' behavior is the boolean value false, not true. I will stand by my position, but in any case, this warning will be resolved in the next update.

For object return hooks there is no right or wrong answer but it's generally accepted in the community that we use true or null.
true is used to cancel the vanilla behaviour, and null is used to allow vanilla behaviour to happen.

The hook are written such that any value that isn't null will cancel behaviour - You could return true, false, 1, 100, "some string"....anything that isn't null,
but the problem is that if multiple plugins try to cancel the behaviour and use different non null objects, oxide will complain about it.

In short, if you change your instances of 'return false' to 'return true' in object return hooks such as OnNpcTarget, the oxide complaints will no longer happen.

 

Note, this is not related in any way to the npc's taking damage.
OnNpcTarget governs whether or not the npcs will attack any given player or entity.

original4d

Posted

would this be in the plugin file that i change instances of 'return false' to 'return true

thanks

 

  • Administrator
Steenamaroo

Posted

My advice and information was directed at the author. 👍

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.