Car to animal damage is not tracedSolved

Afternoon All

I'm trying to work out why I can damage animals with cars despite having the "cars cannot hurt anything" rule. When I run a trace the results suggest that the plugin is only assesing the damage between the modules of the car itself and the animal it is hurting is not being assessed. I think the same behaviour exists with sleeping players but I'm on a test server alone at the moment so I can't test that right now.

When I run a trace, jump in a car and drive at an animal I get the following output

From: ModularCar, 2module_car_spawned.entity
To: VehicleModuleEngine, 1module_engine
No shared locations (empty location) - no exclusions
No exclusion found - looking up RuleSet...
Using RuleSet "default"
No match in pre-checks; evaluating RuleSet rules...
Initator EntityGroup matches: cars
Target EntityGroup matches: cars
Evaluating Rules...
Checking direct initiator->target rules...
Evaluating "cars->cars"...
No match found
No direct match rules found; continuing...
Evaluating "cars->any"...
Match found; allow damage? False

Anyone have any experience with this?

that's not the right trace for car and npc

nivex

that's not the right trace for car and npc

Thats all thats in the log, there are no entries at all for the bear that was killed. Is there anyway to run a trace targetted at an entitiy of interest?

Merged post

I made a quick vid showing the trace, it picks up bear to player, then just picks up car to car despite the hit marker on the bear. The bears dies if you carry on hitting it so it is definitely taking damage that isn't registering.

YouTube demonstration



Merged post

I've just checked the combat log to be sure, it is being picked up there as player to entity damage.

Screenshot

I'm actually trying to get it to trace a particular entity of interest but it's proven difficult so far. maybe in the future I can get it working properly

post your config so I can reproduce this, from pastebin please

I backed up my config file earlier and let the plugin create a new default config, it does exactly the same thing. I'll put it on pastebin just in case but it is just the straight default config file completely un-edited.

https://pastebin.com/ik1uEZ7x

it might be the HumanNPCDamage flag bypassing the rule, but i've had this working using the default config.

nivex

it might be the HumanNPCDamage flag bypassing the rule, but i've had this working using the default config.

Sorry I couldn't reply earlier, I was getting error 500 from umod. You've pointed me to my error by making me read the description of HumanNPCDamage flag. I found some helpful text in the section, I was trying to use animals as a test not realising that the TruePVE does not control damage to animals in any way. 

I've got a sleeper on my server now and I can't replicate what we were seeing on a public server, more investigation work for me to do yet. This can be marked as solved.

ok well just tell me if you need help again

Locked automatically