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

[TF2] Permanent Crit Vote


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Plugin ID:
1751
Plugin Version:
0.0.4b
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Saves crit preference of the players and sets crit on or off depending on peoples preference
    Old 06-21-2010 , 02:53   [TF2] Permanent Crit Vote
    Reply With Quote #1

    TF2 Permanent Critvote
    current version 0.0.4b

    Description:

    The plugins will ask the player once for his Critvote preference and saves it. 30 Seconds after the map began it will calculate if Crits will be on or off. Players who don't have yet set a preference are not counted in the calculation.

    Features:
    • Stores Preferences using Clientprefs
    • Players can change their preference by saying "!crit"
    • Percentage of people who need to vote for on/off adjustable by cvar
    • Generates Plugin Config
    • Broadcasts the result of the calculation (after the calculation and to late joiners)
    • timers adjustable by cvar
    Commands:
    • "!crit"
    Cvars:
    • tf2_perm_crit_version - Showing Version of the Plugin
    • tf2_perm_crit_percent - Percentage of people who need to vote for Crits on in order to activate crits
    • tf2_perm_crit_show_info - Show information if Crits are on/off to late joiners
    • tf2_perm_crit_info_delay - Delay between late joining the server and announcing if Crits are on/off
    • tf2_perm_crit_calc_delay - Delay between late joining the server and announcing if Crits are on/off
    • tf2_perm_crit_pref_delay - Delay between joining the server and asking the player for his preference if it is not set. Should be shorter that the calc delay
    Installation:
    • Place the tf2_perm_crit.smx in the /sourcemod/plugins dir.
    • make sure clientprefs are activated and configured
    Changelog:
    Quote:
    0.0.4b
    announcement for late joiners was broadcasted to everybody

    0.0.4
    added announcement for late joiners (enabled by cvar)
    added several cvars to set delays

    0.0.3
    cvar for percentage instead of fixed >= 50%
    Add output how many people voted on/off

    0.0.2
    Asking players with no set preference for their preference

    0.0.1
    Initial version
    Future Updates:
    • Translations
    Bugs:
    • currently none
    Notes:

    • delete the old plugin config to generate the new one

    Thanks:

    r5053: for the original TF2 Critvote
    Grrrrrrrrrrrrrrrrrrr: for using cookies in his quake sounds [revamped] plugin..where I could look up infos on how to work with them

    Attached Files
    File Type: sp Get Plugin or Get Source (tf2_perm_crit.sp - 2510 views - 7.3 KB)
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de

    Last edited by Sillium; 07-15-2010 at 15:21.
    Sillium is offline
    stephengillon
    Member
    Join Date: Oct 2009
    Location: Canada
    Old 06-25-2010 , 20:14   Re: [TF2] Permanent Crit Vote
    Reply With Quote #2

    by 30 second after game begins do you mean each round, or map.
    __________________
    stephengillon is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 06-26-2010 , 06:59   Re: [TF2] Permanent Crit Vote
    Reply With Quote #3

    It's like in TF2 Critvote, each map.

    I corrected it in the first post ;-)
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de
    Sillium is offline
    mycologist
    SourceMod Donor
    Join Date: Sep 2008
    Location: Sep 2008
    Old 07-13-2010 , 09:24   Re: [TF2] Permanent Crit Vote
    Reply With Quote #4

    I just want to say that this plugin fixed a divide in our community over crits. Such an easy, simple solution that works great.

    I did change some of the language used because of some confusion in our community. Players thought they were controlling the server by phrases like "Crits always on". I just changed it to "I want Crits to be enabled" so that they knew it was drawing upon their choice, but not directly setting it.

    Thanks a lot for this!
    __________________


    Last edited by mycologist; 07-13-2010 at 09:27.
    mycologist is offline
    Inflikted
    SourceMod Donor
    Join Date: Jan 2009
    Old 07-13-2010 , 11:08   Re: [TF2] Permanent Crit Vote
    Reply With Quote #5

    this indeed is an interesting concept to use.. and apply on many hot debated cvar settings on our servers as well.. even for autojoin.

    nice idea
    Inflikted is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 07-13-2010 , 14:39   Re: [TF2] Permanent Crit Vote
    Reply With Quote #6

    New Version:
    Quote:
    0.0.3
    cvar for percentage instead of fixed >= 50%
    Add output how many people voted on/off
    Thanks for the feedback

    @mycologist: Next step will be the translations so changing the text will get easier ;-)

    @Inflikted: I've seen that there was a short discussion about using this for sv_alltalk on Ducksoup Gaming... so if anyone wants to use it for another Server setting... go ahead :-)
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de

    Last edited by Sillium; 07-13-2010 at 14:42.
    Sillium is offline
    SuperShadow
    SourceMod Donor
    Join Date: Jun 2008
    Location: Westminster, MD
    Old 07-13-2010 , 15:19   Re: [TF2] Permanent Crit Vote
    Reply With Quote #7

    Does it display any notification to the players that crits are either on or off for the map being played?
    SuperShadow is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 07-14-2010 , 01:25   Re: [TF2] Permanent Crit Vote
    Reply With Quote #8

    You mean after the choice has been made when someone joins the Server "late"?

    No. Nothing is shown.

    But I could show an information after X seconds of a player joining if the choice has already been made.

    edit:
    Here is an untested new (0.0.4a) Version (I can't test it here... will have to wait till evening)

    This Version adds several cvars for configuration and can show a message to late joiners if crits are on/off

    Also I changed the text in the menu to prevent misunderstandings ("Prefer Crits on" instead of "Crits always on" )

    Quote:
    • "tf2_perm_crit_percent", "0.5", "Percentage of people who need to vote for Crits on in order to activate crits"
    • "tf2_perm_crit_show_info", "1", "Show information if Crits are on/off to late joiners"
    • "tf2_perm_crit_info_delay", "30.0", "Delay between late joining the server and announcing if Crits are on/off"
    • "tf2_perm_crit_calc_delay", "30.0", "Delay between late joining the server and announcing if Crits are on/off"
    • "tf2_perm_crit_pref_delay", "25.0", "Delay between joing the server and asking the player for his preference if it is not set. Should be shorter that the calc delay"

    edit: attachement has been removed
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de

    Last edited by Sillium; 07-14-2010 at 11:26.
    Sillium is offline
    SuperShadow
    SourceMod Donor
    Join Date: Jun 2008
    Location: Westminster, MD
    Old 07-14-2010 , 07:53   Re: [TF2] Permanent Crit Vote
    Reply With Quote #9

    Actually I meant after the calculation was done each map, though having a message for new arrivals is good too.

    Since I'm reading this while at work and not able to test it, I was just trying to imagine this running on our servers. We have some players that detest crits; others that can't live without them (literally), most really don't care either way.

    The vote outcome would of course vary depending on who was logged in when the calculation completes. I just wanted to make sure that the on/off result was broadcast to the players so they knew the outcome.
    SuperShadow is offline
    Sillium
    AlliedModders Donor
    Join Date: Sep 2008
    Location: Germany
    Old 07-14-2010 , 08:20   Re: [TF2] Permanent Crit Vote
    Reply With Quote #10

    Oh yes... the result is broadcasted.
    When the vote is finished you will see the following text in the chat e.g. for crit preference of the client is on(colored):
    "[TF2-Crit Pref] Your preference is set to: Crits enabled"
    "[TF2-Crit Pref] Crits Enabled. %d Voted On, %d voted Off" <- imagine numbers here ;-)
    "[TF2-Crit Pref] To change your preference say !crit"

    For late joiners the message will look like this:
    "[TF2-Crit Pref] Crits Enabled."
    __________________
    brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

    www.unterwasserpyromanen.de
    Sillium is offline
    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 19:50.


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