Raised This Month: $51 Target: $400
 12% 

Map Election v0.6 (Updated May 11, 2016)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Kom64t
Junior Member
Join Date: Apr 2016
Plugin ID:
5109
Plugin Version:
0.6
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides map voting and immediately showing the choice users. Players can agree during voting and change their choice to any map.
    Old 04-05-2016 , 07:38   Map Election v0.6 (Updated May 11, 2016)
    Reply With Quote #1

    Map Election



    The plugin works like RTV (Rock The Vote) till the moment vote. While voting, the panel is displayed all the time of voting. The player can see a selection of other players and can change their choice in favor of the other map.

    In the period of voting, plugin sets sv_alltalk 1, that allows players to additionally discuss the choice of map.

    Voting starts at the beginning of the round.
    Plugin sets mp_freeztime equal to voting time. Thus, the world stops at the time of the vote, and the players can fully concentrate on the vote.

    In my opinion this interface allows to reach a consensus between the players.

    Плагин работает подобно RTV до момента голосования. Во время голосования панель выбора карт отображается всё время голосования. Игрок может видеть выбор других игроков и изменить свой выбор в пользу другой карты.

    На время голосования плагин включает sv_alltalk 1, что дает возможность игрокам дополнительно обсудить выбор карты.
    Голосование запускается в начале раунда, предворительно выставив mp_freeztime равно времени голосования. Т.о. игровой мир как бы останавливается на время голосования и игроки полностью могут состредоточиться на голосовании.

    Plugin Game: Any (But tested in CSS only)

    Installation instructions:
    Download the attached zip archive and extract to your game folder.
    Install archive contain:

    addons
    sourcemod
    .├plugins
    .│.└map_Election.smx
    .└transletion
    ...└map_Elections.phrases.txt


    Usage:

    say <key_word> [map_name]

    Now key_words are: votemap, карту.
    You can set any key words in CVAR sm_votemap_keywords. National words supported, but case sensitive.
    Vous pouvez définir l'une quelconque des mots-clés dans CVAR 'sm_votemap_keywords'. Mot national pris en charge, mais sensible.

    CVAR
    sm_votemap_keywords - Key words for demand map vote. Delimiter is ;
    sm_menu_item_fill - Character for customization fill space before items

    sm_mapvote_voteduration - Duration voting in seconds
    sm_rtv_minplayers - Number of players required before RTV will be enabled.
    sm_vote_delay - Delay between votes

    Used:
    mp_freezetime
    sv_alltalk

    Plans:
    -Add translations support
    -Add select maps for vote like RTV.
    -Add sound accompaniment.
    -Add cvar for customizing key_word
    -Convert more internal stuff into CVARS current work


    Changelog
    Spoiler


    Get Source
    Attached Files
    File Type: zip Map_Election.zip (22.4 KB, 336 views)

    Last edited by Kom64t; 05-11-2016 at 09:27. Reason: ver 0.6
    Kom64t is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 04-05-2016 , 09:17   Re: Map Election
    Reply With Quote #2

    Quote:
    Plugin Game: Any
    sounds will work only in CSGO and maps only for CSS or CSGO
    Quote:
    \nКто-нибудь наберите в чате карту"
    It may be necessary to allocate somehow the word "карту"? Хотя бы апострофами.
    И индикацию количества голосов хорошо бы сделать не пробелами, а каким-нибудь другим символом. Например, "|". Или даже лучше числом проголосовавших за каждый из вариантов.
    Quote:
    Leave_the_current_map
    Maybe text "Don't change" is much better?
    PHP Code:
    public int  MenuHandler1(Menu menuMenuAction actionint param1/*-client*/int param2/*-menu item*/){ 
    Why not just
    PHP Code:
    public int  MenuHandler1(Menu menuMenuAction actionint clientint item
    ?
    PHP Code:
    PrintToChatAll("\4======================");
    PrintToChatAll("\4Результаты голосования");    
    PrintToChatAll("\4----------------------"); 
    =
    PHP Code:
    PrintToChatAll("\4======================\n\4Результаты голосования\n\4----------------------"); 
    or better
    PHP Code:
    PrintToChatAll("\4======================\n\4%T\n\4----------------------""Results'); 
    =)
    PHP Code:
    if (IsClientConnected(i))
            if (
    IsClientInGame(i))            
                if (!
    IsFakeClient(i)) 
    =
    PHP Code:
    if (IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i)) 
    PHP Code:
    Format(Title,MENU_ITEM_LEN,"%t [осталось %d сек]","MenuTitle",g_vote_countdown); 
    better this:
    PHP Code:
    Format(Title,MENU_ITEM_LEN,"%t","MenuTitle",g_vote_countdown); 
    and in translation files this:
    PHP Code:
        "MenuTitle"
        
    {
            
    "ru"            "Сделай свой выбор [осталось {1}сек]."
        

    and this:
    PHP Code:
        "MenuTitle"
        
    {
            
    "#format"        "{1:d}"
            "en"            "Make Your choise [{1}sec remaining]."
        

    __________________

    Last edited by Grey83; 04-06-2016 at 08:31. Reason: correction of example translation
    Grey83 is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 04-06-2016 , 08:01   Re: Map Election
    Reply With Quote #3

    Quote:
    Originally Posted by Grey83 View Post
    and in translation files this:
    PHP Code:
        "MenuTitle"
        
    {
            
    "#format"        "{1:d}"
            "ru"            "Сделай свой выбор [осталось {1}сек]."
        

    and this:
    PHP Code:
        "MenuTitle"
        
    {
            
    "#format"        "{1:d}"
            "en"            "Make Your choise [{1}sec remaining]."
        

    And the Distributing Language Files documentation says #format only in the main (English) translation file, as there is technically only one format for one specific phrase. :-)
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].
    DarkDeviL is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 04-06-2016 , 08:31   Re: Map Election
    Reply With Quote #4

    arne1288, thanks for being corrected me.
    __________________
    Grey83 is offline
    mazdarx8
    Veteran Member
    Join Date: Aug 2014
    Old 04-06-2016 , 08:54   Re: Map Election
    Reply With Quote #5

    Is this working with UMC Mapcycle?
    mazdarx8 is offline
    ClassicGuzzi
    Veteran Member
    Join Date: Oct 2013
    Location: Argentina
    Old 04-06-2016 , 11:19   Re: Map Election
    Reply With Quote #6

    Question: can you still see the menu when you already voted? Can you press any option again to revote (change your vote)?
    __________________
    ClassicGuzzi is offline
    Kom64t
    Junior Member
    Join Date: Apr 2016
    Old 04-08-2016 , 08:25   Re: Map Election
    Reply With Quote #7

    Quote:
    Originally Posted by ClassicGuzzi View Post
    Question: can you still see the menu when you already voted?
    Yes
    Quote:
    Originally Posted by ClassicGuzzi View Post
    Can you press any option again to revote (change your vote)?
    Yes
    Kom64t is offline
    Kom64t
    Junior Member
    Join Date: Apr 2016
    Old 04-08-2016 , 09:22   Re: Map Election
    Reply With Quote #8

    Quote:
    Originally Posted by mazdarx8 View Post
    Is this working with UMC Mapcycle?
    It will be reviewed.
    Kom64t is offline
    Kom64t
    Junior Member
    Join Date: Apr 2016
    Old 05-11-2016 , 09:42   Re: Map Election v0.6 (Updated May 11, 2016)
    Reply With Quote #9

    Version 0.6 released.
    Kom64t is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:13.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode