apetavern/grubs

Arc projectiles (Specifically the petrol bomb) seem to trigger early when arced upwards

Closed this issue · 2 comments

sbox-dev_yv1BNmT686.mp4

Not sure why or how it's doing this.

dch-GH commented

It's because when the arc gadget simulation runs out of segments it defaults to exploding the projectile, ignoring if the explosive component's ExplodeAfter is <= 0. I'll see about fixing it.
https://github.com/apetavern/sbox-grubs/blob/9458d42f8c8b8c0a14041981e7ec80815d350da9/code/Weapons/Gadget/Components/ArcPhysicsGadgetComponent.cs#L68

fixed kinda