-
Couldn't load subscription status.
- Fork 24
Add CVar mapm_extend_map_if_no_votes
#27
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
Conversation
...which allows you to extend the current card if no one has voted.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Всё должно быть реализовано в планировщике. В ядро лишь добавить недостающий API для реализации.
|
@Mistrick done. |
|
I can not open my own request for some reason. Add cvar mapm_change_type 3 Nomination: in the chat open menu with all maps containing this name. categories to /maps that's all!, if the project still active could be nice if all this be in the votemap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Измени версию планировщика.
На пустом сервере будет вечное продление одной карты. Для меня это ломает ротацию карт. Должно ли быть больше продлений чем указано в кваре mapm_extended_map_max?
Хотел тебе оставить управление версиями. Ведь в других PR я тоже вносил в планировщик правки.
Именно этого я и добивался.
Не знаю. Можно добавить ещё один режим квара |
you must use 3rd-party plugins for this. сам же делал что продлевает timelimit при пустом сервере |
|
@JUNESYNGOTOFLEX ты вообще о чём? |
|
|
я не доглядел что он меняет карту кроме как устанавливает timelimit в 0, это почти одно и тоже в лучшем случае как я сказал это написать сторонний плагин на пару строк даже не использовав апи от этой системы. |
|
@Mistrick я добавил зависимость от |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Версию плагина нужно апнуть.
|
|
||
| new extend_map_no_votes = get_num(EXTEND_MAP_IF_NO_VOTES); | ||
|
|
||
| new bool:bNeedExtend = bool:(!total_votes && (extend_map_no_votes && g_iExtendedNum < get_num(EXTENDED_MAX))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Измени bNeedExtend на can_be_extend
Внутренняя пара скобок ничего не делает и не особо разграничивает условие.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mistrick
Может тогда вообще так:
new bool:can_be_extend = bool:(equali(map, g_sCurMap) || !total_votes && extend_map_no_votes && g_iExtendedNum < get_num(EXTENDED_MAX));
// map extended
if(can_be_extend) {
Add CVar
mapm_extend_map_if_no_votes, which allows you to extend the current map if no one has voted.