AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Permanent Crit Vote (https://forums.alliedmods.net/showthread.php?t=130179)

Sillium 06-21-2010 02:53

[TF2] Permanent Crit Vote
 
1 Attachment(s)
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


stephengillon 06-25-2010 20:14

Re: [TF2] Permanent Crit Vote
 
by 30 second after game begins do you mean each round, or map.

Sillium 06-26-2010 06:59

Re: [TF2] Permanent Crit Vote
 
It's like in TF2 Critvote, each map.

I corrected it in the first post ;-)

mycologist 07-13-2010 09:24

Re: [TF2] Permanent Crit Vote
 
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!

Inflikted 07-13-2010 11:08

Re: [TF2] Permanent Crit Vote
 
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

Sillium 07-13-2010 14:39

Re: [TF2] Permanent Crit Vote
 
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 :D

@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 :-)

SuperShadow 07-13-2010 15:19

Re: [TF2] Permanent Crit Vote
 
Does it display any notification to the players that crits are either on or off for the map being played?

Sillium 07-14-2010 01:25

Re: [TF2] Permanent Crit Vote
 
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

SuperShadow 07-14-2010 07:53

Re: [TF2] Permanent Crit Vote
 
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.

Sillium 07-14-2010 08:20

Re: [TF2] Permanent Crit Vote
 
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."


All times are GMT -4. The time now is 17:00.

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