branchrust_reboot/main/vehicles/PlayerHurtFixcancel
4 Commits over 0 Days - ∞cph!
Fix a couple of minor errors
Allow TriggerHurtNotChild to delay damage done. This is a fix attempt for drivers/passengers taking damage on vehicle exit.
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.
Add inside-vehicle damage trigger back, but with a new up direction check added. This will probably bring back to hurt on dismount (builds only), so branching for now.