Raised This Month: $32 Target: $400
 8% 

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
chundo
Senior Member
Join Date: May 2008
Old 07-06-2008 , 01:47   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #111

Quote:
Originally Posted by GriMz View Post
thank you, i see a much better use for this now, can it deliver 2 commands at once by chance?

if not maybe i can hack up both plugins and compile them into one..
Sure, just separate commands with a semicolon in the "command" parameter.
__________________
chundo is offline
Bury
Junior Member
Join Date: May 2008
Old 07-07-2008 , 14:46   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #112

Hi, i want some help in doing this and if it is actually possible (which i'm sure it is)

Basically i wanted an in depth mapvote with categories:
First the users pick from the "options"/categories of say these
"Traditional"
"Fun"
"Skill"
"Deathmatch"

and each of the categories have a .cfg with the mapnames. Once the category gets chosen, it roles out the map names and the users vote for the map, so essentially you are voting twice, i'm not too sure if you can do it in one command option or have it relay onto another, i'm unsure and any help would be appreciated.
Bury is offline
chundo
Senior Member
Join Date: May 2008
Old 07-07-2008 , 17:36   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #113

It's possible (well, except for the file reading part - you'll have to hardcode map lists in the vote config), but it's a little messy. This is a very basic example, you'll want to customize the vote options to suit your server, and you'll also need to set sm_vote_delay to "0" since it involves two subsequent votes.

Code:
"Votes"
{
    "votemap_categories"
    {
        "title"         "Choose a map category"
        "command"       "sm_cvote votemap_#1"
        "options"
        {
             "traditional"   "Traditional"
             "fun"           "Fun"
             "skill"         "Skill"
             "deathmatch"    "Deathmatch"
        }        
    }
    "votemap_traditional"
    {
        "title"         "Choose a map"
        "command"       "changelevel #1"
        "options"
        {
            "cp_dustbowl"    "cp_dustbowl"
            "pl_goldrush"    "pl_goldrush"
            ... etc ...
        }
    }
    "votemap_fun"
    {
        ... etc ...
    }
    ... etc ...
}
__________________
chundo is offline
Bury
Junior Member
Join Date: May 2008
Old 07-07-2008 , 19:42   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #114

It works in a sense, but there are a few issues that isn't making the vote complete.

It is reading it as non-continuous votes

For example, they vote for the category and say Skill wins, then it shows that skill won- but no skill maps appear after to be able to vote for. I put it into a .cfg called mapvoting and put this inside it

Code:
"Votes"
{
    "votemap_categories"
    {
        "title"         "for the next map please choose a category"
        "command"       "sm_cvote votemap_#1"
        "options"
        {
             "traditional"   "Traditional"
             "fun"           "Surf"
             "skill"         "Fun/Other"
             "deathmatch"    "Deathmatch"
        }        
    }
    "votemap_traditional"
    {
        "title"         "Choose a traditional map"
        "command"       "sm_setnextmap #1"
        "options"
        {
            "cp_dustbowl"    "cp_dustbowl"
            "pl_goldrush"    "pl_goldrush"
            "cp_gravelpit"    "cp_gravelpit"
            "ctf_2fort"    "ctf_2fort"
            "cp_fastlane"    "cp_fastlane"
            "ctf_turbine"    "ctf_turbine"
            "cp_badlands"    "cp_badlands"
            "cp_granary"    "cp_granary"
            "cp_well"    "cp_well"
            "tc_hydo"    "tc_hydo"
        }
    }
    "votemap_surf"
    {
        "title"         "Choose a surf map"
        "command"       "sm_setnextmap #1"
        "options"
    {
            "surf_air_arena_v3"    "surf_air_arena_v3"
        }
    }
    "votemap_fun"
    {
        "title"         "Choose a fun map"
        "command"       "sm_setnextmap #1"
        "options"
    {
            "ctf_hallofdeath"    "ctf_hallofdeath"
            "falling_cp"    "falling_cp"
            "MARIO_KART"    "MARIO_KART"
        }
    }
    "votemap_deathmatch"
    {
        "title"         "Choose a deathmatch map"
        "command"       "sm_setnextmap #1"
        "options"
    {
            "gpt_classrestrict_tdm"    "gpt_classrestrict_tdm"
        }
    }

}

Last edited by Bury; 07-07-2008 at 19:46.
Bury is offline
chundo
Senior Member
Join Date: May 2008
Old 07-08-2008 , 02:50   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #115

Looks like I wasn't resetting the current vote record before executing the command, so it thought the first vote was still taking place and aborted the second vote. It'll be changed in the next release to accommodate multi-level votes.
__________________
chundo is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 07-08-2008 , 03:13   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #116

You can set it up so it first has a four option vote for your four groups then it that vote initializes a second vote that picks maps from the group.
willy1234x1 is offline
Bury
Junior Member
Join Date: May 2008
Old 07-08-2008 , 07:37   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #117

Quote:
Originally Posted by willy1234x1 View Post
You can set it up so it first has a four option vote for your four groups then it that vote initializes a second vote that picks maps from the group.
How? and does it trigger the relevant map pool for the category?
Bury is offline
chundo
Senior Member
Join Date: May 2008
Old 07-08-2008 , 11:08   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #118

Quote:
Originally Posted by willy1234x1 View Post
You can set it up so it first has a four option vote for your four groups then it that vote initializes a second vote that picks maps from the group.
That's what my example did. And it won't work yet.
__________________
chundo is offline
GriMz
Senior Member
Join Date: Jul 2007
Old 07-08-2008 , 15:04   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #119

Quote:
Originally Posted by chundo View Post
Sure, just separate commands with a semicolon in the "command" parameter.
thank you chundo, the players will love this.
__________________
GriMz is offline
mryoung
Junior Member
Join Date: Feb 2008
Location: Reims, France
Old 07-10-2008 , 07:41   Re: Custom Votes v0.5.2 (6/29)
Reply With Quote #120

Hi !

First of all, thanks for this plugin ... Well made!

I would like to create a setnextmap vote based on a custom maplist file ... but I don't get what should be done with the following:

Quote:
Originally Posted by chundo View Post
mapcycle - Parameter is a map from the mapcycle. Custom mapcycles can be used by adding a section to maplist.cfg called "cvote_<votename>".
Can you show me an example of what has to be done to achieve this kind of configuration ?

Thanks in advance for your answer.
Cya!

EDIT: Nevermind ... I just find the maplists.cfg file ... I didn't understand that you talk about this sourcemod file
__________________
:: mRyOuNg ::

Last edited by mryoung; 07-10-2008 at 08:12.
mryoung is offline
Send a message via ICQ to mryoung Send a message via MSN to mryoung Send a message via Skype™ to mryoung
Reply


Thread Tools
Display Modes

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 17:38.


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