apetavern / grubs

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

Adjust landing particles radius based on fall velocity #339

Closed trundlr closed 1 month ago

trundlr commented 2 months ago

https://github.com/apetavern/grubs/blob/main/code/Pawn/Controller/GrubCharacterController.cs#L213

Currently we don't adjust the radius at all for the landing particles. The fall velocity is currently stored in the Player Controller: https://github.com/apetavern/grubs/blob/main/code/Pawn/Controller/GrubPlayerController.FallDamage.cs#L17

We'll have to fidget with the values to find something that looks good.

trundlr commented 2 months ago

@Jammie3d should know what the control point for this particle is.

Jammie3d commented 1 month ago

CP1 scales the radius, 0 is the min size and 1 is the max size (in the X axis). It should be ok to go above 1 also.