luttje / gmod-minigolf

A minigolf gamemode we made for Garry's Mod.
MIT License
5 stars 1 forks source link

Add a command to disable time limit #5

Open luttje opened 1 year ago

luttje commented 1 year ago

Is your feature request related to a problem? Please describe. A user reported to want to play for longer, without getting kicked from the hole because of a time limit.

Describe the solution you'd like A minigolf_time_limit_multiplier <amount> could solve the above and at the same time provide a new feature to adjust all time limits.

Describe alternatives you've considered A command to remove time limits. A command to adjust the time limit for the current hole. I think the above is simplest and most versatile.

Workaround Run this once after joining the game: lua_run Minigolf.Holes.CreateTimeLimit = function() end. This will just break the part that causes your attempts at the hole to end. The timer will still run on screen, but you can play forever (or until you run out of strokes).

Additional context Looking at it I believe this requires only minor changes to Minigolf.Holes.Start to remove the net message net.Start("Minigolf.SetPlayerTimeLimit") and the call to Minigolf.Holes.CreateTimeLimit