ACF-Team / ACF-3

ACF
MIT License
69 stars 56 forks source link

Fix driver damage forwarding #303

Closed brandonsturgeon closed 2 years ago

brandonsturgeon commented 2 years ago

The SquishyDamage call here is being given a Trace that hits a Vehicle, not a player. That means the function double-damages the vehicle and never hits the driver.

This creates a new Trace object and updates it to pretend like it's hitting the driver before being passed into SquishyDamage.

I have not personally tested this yet.