Added HasEntityInParents to BaseEntityEx with same behaviour type as GetComponentInParent. TriggerHurtNotChild now checks all parents, to handle e.g. player on flatbed on vehicle, and re-does that check each tick. This should stop players getting hit by hurt triggers when on flatbed.
Removed old commented code re recycling chassis in ModularCarGarage. Since recycler code no longer needs to be used in multiple places, reverted it to the version from main plus my note about the "entitySource == this" client bug
TriggerParent now has two intersection mode options:
- AnyIntersect, the existing default, parents the object if any part of the object intersects any part of the trigger
- OriginIntersect parents the object if the origin of the object intersects any part of the trigger
OriginIntersect has the effect of letting us only parent players if their feet touch the trigger. Now using this on vehicle module flatbeds, so we no longer scoop up players and parent them when the vehicle runs over them.
If vehicle is destroyed while waiting for the Invoke to add a module, bail out and destroy the module. Fixes "Setting parent to entity that hasn't spawned yet! (net is null)" error (it was actually spawned, but then also destroyed)