-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Cooldown API and forfeit votes #39
Comments
I'm fine with them being added, but don't plan on doing it myself. Some thoughts:
|
Alright, if I implement it soon, should I do it within the base plugin or through a third party? |
If it's going to create get5 forwards it should be in the base plugin.
I would imagine the plugin should be tracking total time disconnected since match start, and when that total time reaches some cvar I think to make this useful there may have to be a separate mechanism checking if clients originally connect when the match is loaded. Aka #7. Only checking leavers and not someone never connecting would be an incomplete feature imo. |
FYI: these features are only useful for a pugging system, which means they are pretty unlikely to be implemented anytime soon. |
I'm going to close this since I don't plan on ever implementing it, as it's not very useful for competitive plan (only for pugs/matchmaking systems). |
I'd like to constantly update get5 on my servers instead of staying behind because of some features I (horribly) implemented in my servers, hopefully you'll add them!
#1. Cooldown API
When a player leaves, let him have X minutes to reconnect. If he's not coming back, call a global forward that is something like that:
(steamid being AuthId_Engine and disconnectiontime being the unix timestamp of the moment that player left the server)
This API will be very helpful for fully automatic servers with cooldowns system. It will allow developers to ban players for an amount of time that depends on how many times they've been banned before, with SourceBans for example. I'm willing to send a pull request that does it if you add this feature!
#2. Forfeit votes
Add a command (sm_forfeit) that initializes a vote to the players of the same team. If the whole team votes yes, stop the game and make the opposite team the winners.
Also add a global forward if possible, something like
Get5_OnTeamForfeit(int team)
.Thanks for reading, good luck with development! 👍
The text was updated successfully, but these errors were encountered: