Open albertz opened 13 years ago
Submitted by hatten-lx
I looked into the python scripts for this, and I think i can make a few solutions, but I have no clue how to make a poll. I could just check what's written after the command and make that the minimum, but that would create fights, I think i could also make so that TDM is temporarily turned off for a while. I have yet to install olx, I'll be reinstalling in a few days, so I cannot test anything that i do atm. Not that i have a clue how to submit code or so either =P Well, gotta locate the readmes.
Submitted by albertzeyer
I think it would be best if there is a way to enable/disable TDM completly. Something like "!vote disabletdm" or so. And also the other way, to enable it again.
Submitted by pelya
The user voting code is located in dedicated_control_usercommands.py from line 185 and down, just add another command into parseUserCommands() To commit your changes you should write "svn commit" at the top of OLX tree, it will invoke editor (call "export EDITOR=nano" if you don't like vi in your .bashrc config file). It will show you the list, if you don't want some files to be committed put empty log message and it will ask you if you want to abort, then run "svn revert" on these files.
Submitted by steelside
I don't think you should change the minimum amount of players, instead just have a !vote deathmatch which would turn it into a deathmatch for this and subsequent rounds (an arbitrary number or added in the vote) until it would return back to the auto TDM mode. To make it advanced you could remember who called the vote (and who voted for it) and when enough of them has left the server it could revert by itself. So kinda what albert said.
Oh, and since I've never used nano, and i hate vi, and there has been a comic dedicated to this subject, i present to you ... emacs. http://imgs.xkcd.com/comics/real_programmers.png (Footnote: you can set it to any texteditor you like, like gedit or kwrite or kate or whatever)
Submitted by albertzeyer
Also a good idea. Perhaps multiple possibilities could be implemented here and we can just see what's the best in real world.
(Good old xkcd... Btw., Hatten, if you wonder what they are talking about with the editor, you probably don't need all that info at all if you just use the command 'svn commit -m "..."'. But this bug report is really not the place to talk about how to use SVN, let's move the discussion to LXA.)
Converted from SourceForge issue 2818136, submitted by albertzeyer
It's often the case that some people want to have a DM but with too many people, it always makes a TDM game.
Perhaps an option for voting for MinPlayersForTeamGame would solve this.