apetavern / grubs

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

Sudden Death #298

Closed DrewBritt closed 1 year ago

DrewBritt commented 1 year ago

Addresses #275, adding Sudden Death functionality.

https://github.com/apetavern/sbox-grubs/assets/43252311/b608d412-8767-4083-9d25-9560c631ff19

After a configured round delay, Sudden Death activates, lowering the position of the terrain every round. A "round" is considered a full rotation of players, and is currently determined by PlayerTurnQueue being empty (refilled after check).

Players can view the state of Sudden Death with the indicator in the bottom right, which either displays the number of rounds until Sudden Death, or "ACTIVE".

sdrounds

sdactive

Config settings have also been added to adjust the delay of Sudden Death (gr_sd_delay), the intensity of the movements (gr_sd_aggression), as well as whether all Grubs have their health set to 1 on Sudden Death start (gr_sd_onehealth). Please let me know if these (specifically the delay) should have their defaults tweaked before merge, I admittedly haven't played a lot of Worms so I'm not sure what would feel best.