Jump to content

Courier NPC does not kill Better NPC

Pending 0.1.0

tosnar
tosnar

Posted

Hi, I noticed that when Courier NPCs shoot at Better NPCs, they don't cause any damage. Is this a bug, or can it be configured somewhere?
Thanks

walkinrey

Posted

Hmm i'm not sure on what side the problem can be

Can you check does couriernpc actually hit the betternpc? there should be blood on hit

tosnar

Posted

Yes, there was blood visible during the encounter. I'm not sure if it happens all the time or just sometimes. For example, he just shot the blue NPC by the road, but that's not a Better NPC. I'll test it out.

tosnar

Posted

So they shoot at Better NPC; blood spatters, but it doesn't kill him.

tosnar

Posted

Basically, the courier gets stuck and keeps shooting. He doesn't move forward anymore. 

walkinrey

Posted

it looks like Better NPC is denying damage, it depends on NPCSpawn, i checked its code and i can say that:

- it checks for damage range, it can be controlled in config, if damage range is more than in config then it's denying damage
- if npcspawn can't target couriernpc, then it won't allow damage too, probably it's the case?

to check is npcspawn can target other npc, it uses next checks:

- checks for npc attack mode from config
- checks for npc sense range from config
- then checks whitelist and blacklists

i think it can be fixed by editing the config file without editing code 🙂
however i only checked npcspawn, maybe betternpc have some other checks but i don't think so

tosnar

Posted

Damage doesn't work on all NPCs spawned by the NpcSpawn plugin. I just can't find the setting you're talking about. Can you help?

2.3m

Downloads

Total number of downloads.

10.6k

Customers

Total customers served.

153.2k

Files Sold

Total number of files sold.

3.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.