"RuleSets": [
{
"name": "default",
"enabled": true,
"defaultAllowDamage": true,
"flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, PlayerSamSitesIgnorePlayers, TrapsIgnorePlayers, TurretsIgnorePlayers,NpcsCanHurtAnything",
"rules": [
"anything can hurt dispensers",
"anything can hurt resources",
"anything can hurt barricades",
"anything can hurt traps",
"anything can hurt heli",
"anything can hurt npcs",
"anything can hurt players",
"nothing can hurt ch47",
"nothing can hurt cars",
"nothing can hurt mini",
"nothing can hurt snowmobiles",
"nothing can hurt ridablehorses",
"cars cannot hurt anything",
"mini cannot hurt anything",
"ch47 can hurt anything",
"scrapheli cannot hurt anything",
"players cannot hurt players",
"players cannot hurt traps",
"guards can hurt players",
"fire can hurt players",
"traps cannot hurt players",
"highwalls can hurt players",
"barricades can hurt players",
"mini cannot hurt mini",
"npcs can hurt players",
"npcs can hurt anything",
"junkyard cannot hurt anything",
"junkyard can hurt cars",
"players cannot hurt tugboats",
"heliturrets can hurt players"
]
}
],
Hello, I was wondering how to make NPCS can damage buildings? I added NpcsCanHurtAnything to have no effect.
hi, that is how. it is not going to override LockedBoxesImmortal or LockedDoorsImmortal though.
He does work, but I see a problem. If NpcsCanHurtAnything is set, players can also deal damage to their own buildings, thus losing the meaning of pve.
NpcsCanHurtAnything has nothing to do with player damage
"defaultAllowDamage": true,
you have this set to true. it should be false on a PVE server.
Thanks for your reply, I have now set false. Most NPCS work. The boss in the https://codefling.com/plugins/boss-monster, but I found this plugin does not belong to the NPCS in the collection, they can't deal damage to buildings.
np. that's not an issue with TruePVE so you will have to ask that dev to fix it.
BossMonster uses the npcs from NpcSpawn which is 1) blocking the damage from multiplegrenadelauncher in the hooks OnEntityTakeDamage (line 2036) and CanEntityTakeDamage (line 2108), and 2) explosive.timed and rocket.launcher do not appear to be equippable or usable.