apetavern / grubs

A worms-inspired artillery game for s&box with randomly generated levels.
MIT License
34 stars 7 forks source link

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

Closed ShadowBrian closed 1 year ago

ShadowBrian commented 1 year ago

https://github.com/apetavern/sbox-grubs/assets/11138884/41d7bf28-a48d-450a-909a-a049a0ca6d6b

Not sure why or how it's doing this.

dch-GH commented 1 year ago

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

matekdev commented 1 year ago

fixed kinda