Preventing pushed cars from damaging players

Interesting edge case I've found.

Although players driving cars cannot damage other players by running into them, it's still possible to damage players by pushing a car into them.

Any idea how I can mitigate this?

[2023-02-06 00:55:58] ======================
==  STARTING TRACE  ==
==  00:55:58.32078  ==
======================
 From: ModularCar, 3module_car_spawned.entity
 To: BasePlayer, player
  Checking exclusions between [70463432, Primary Safezone] and [empty]
   Shared locations: none
   No shared locations, or no matching exclusion mapping - no exclusions
 No exclusion found - looking up RuleSet...
 Using RuleSet "default"
 No match in pre-checks; evaluating RuleSet rules...
  Initiator EntityGroup matches: cars
  Target EntityGroup matches: players
   Evaluating Rules...
    Checking direct initiator->target rules...
     Evaluating "cars->players"...
      No match found
    No direct match rules found; continuing...
     Evaluating "cars->any"...
      No match found
    No matching initiator->any rules found; continuing...
     Evaluating "any->players"...
      No match found
    No matching any->target rules found; returning default value: True

Ruleset for PVE area:

{
      "name": "safezone",
      "enabled": true,
      "defaultAllowDamage": false,
      "flags": "AuthorizedDamage, AdminsHurtSleepers, CupboardOwnership, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, NoHeliDamage, PlayerSamSitesIgnorePlayers, SelfDamage, TrapsIgnorePlayers, TurretsIgnorePlayers",
      "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",
        "cars cannot hurt players",
        "mini cannot hurt anything",
        "mlrs cannot hurt anything",
        "ch47 cannot hurt anything",
        "cars can hurt npcs",
        "mini can hurt npcs",
        "ch47 can hurt npcs",
        "scrapheli cannot hurt anything",
        "players cannot hurt players",
        "players cannot hurt traps",
        "fire cannot hurt players",
        "traps cannot hurt players",
        "mini cannot hurt mini",
        "junkyard cannot hurt anything",
        "junkyard can hurt cars"
      ]
    }
Checking exclusions between [70463432, Primary Safezone] and [empty]

 

Using RuleSet "default"

its not using the correct ruleset because there's no shared locations. either way, use the other thread for this topic too. they both have the same issue

Locked