As title. No damage caused to npc's from Better NPC and no damage to bradley*.
Is there a way to adjust damage type or entitys damage types?
*normal bradley works fine, it's a spawned bradley from Convoy that doesn't take damage*
Not damaging Better NPC , Bradley
Bomb Truck detonations currently just fire high explosive rockets at high velocity with short expiration time. Damage is optionally multiplied via the DamageMult config option, but damage types is not currently adjustable. High explosive rockets have the following base damage.
- 30 Explosion
- 150 Bullet
- 300 AntiVehicle
I think this issue may be happening because the rockets do not have an associated creatorEntity, which is usually assigned the player who fired the rocket. That field gets translated to hitInfo.InitiatorPlayer, which plugins may check in the OnEntityTakeDamage hook to decide whether to block damage. Most likely, the Convoy plugin is using that hook and is blocking the damage because it was not initiated by a player. Such logic may have been introduced for PvE type servers, but standalone that logic seems arbitrary, so you may want to suggest to the Convoy plugin maintainer that they expand the OnEntityTakeDamage hook handling to simply allow damage from unknown senders.
The issue with the Better NPC plugin might be the same. Both are paid plugins, so you will likely have to talk to their maintainers to troubleshoot further.
I thought about attributing Bomb Truck explosion damage to a player, since that could provide support for triggering plugins like No Escape cooldown when a Bomb Truck is used, but the problem is that it's not clear who to attribute the damage to, since a Bomb Truck can be detonated by RF signals, which could be triggered by a variety of electrical events.
If it is necessary to attribute damage to a player, I would probably apply the following logic.
- If the RF signal was triggered by a portable RF broadcaster, assign the player who is holding that RF broadcaster.
- If the RF frequency was broadcasted by a deployed RF broadcaster, assign the player who deployed the RF broadcaster. If that player is not online, assign the player who spawned the Bomb Truck.
- If the Bomb Truck detonated due to another reason, such as being damaged to 0 health, assign the player who spawned the Bomb Truck.
- In some cases, where the cause of the Bomb Truck detonation is unclear, and if the the Bomb Truck owner is not online, the damage cannot be attributed to any player, which would still be incompatible with some plugins.
Thank you for the clear and informative answer. I'll speak to the other mod creators to see if there is a way around this. Thank you.